Java 类org.apache.camel.util.LoadPropertiesException 实例源码

项目:Camel    文件:BundleContextUtils.java   
/**
 * Finds the components available on the bundle context and camel context
 */
public static Map<String, Properties> findComponents(BundleContext bundleContext, CamelContext camelContext)
    throws IOException, LoadPropertiesException {

    SortedMap<String, Properties> answer = new TreeMap<String, Properties>();
    Bundle[] bundles = bundleContext.getBundles();
    for (Bundle bundle : bundles) {
        Enumeration<URL> iter = bundle.getResources(CamelContextHelper.COMPONENT_DESCRIPTOR);
        SortedMap<String, Properties> map = CamelContextHelper.findComponents(camelContext, iter);
        answer.putAll(map);
    }
    return answer;
}
项目:Camel    文件:DefaultCamelContext.java   
public Map<String, Properties> findComponents() throws LoadPropertiesException, IOException {
    return CamelContextHelper.findComponents(this);
}
项目:Camel    文件:DefaultCamelContext.java   
public Map<String, Properties> findEips() throws LoadPropertiesException, IOException {
    return CamelContextHelper.findEips(this);
}
项目:Camel    文件:BlueprintCamelContext.java   
@Override
public Map<String, Properties> findComponents() throws LoadPropertiesException, IOException {
    return BundleContextUtils.findComponents(bundleContext, this);
}
项目:Camel    文件:OsgiDefaultCamelContext.java   
@Override
public Map<String, Properties> findComponents() throws LoadPropertiesException, IOException {
    return BundleContextUtils.findComponents(bundleContext, this);
}
项目:microservice-bundle    文件:ManagedCamelContext.java   
@Override
public Map<String, Properties> findComponents() throws LoadPropertiesException, IOException {
  return context.findComponents();
}
项目:microservice-bundle    文件:ManagedCamelContext.java   
@Override
public Map<String, Properties> findEips() throws LoadPropertiesException, IOException {
  return context.findEips();
}
项目:dropwizard-camel    文件:ManagedCamelContext.java   
@Override
public Map<String, Properties> findComponents() throws LoadPropertiesException, IOException {
    return context.findComponents();
}
项目:dropwizard-camel    文件:ManagedCamelContext.java   
@Override
public Map<String, Properties> findEips() throws LoadPropertiesException, IOException {
    return context.findEips();
}
项目:Camel    文件:CamelContext.java   
/**
 * Find information about all the Camel components available in the classpath and {@link org.apache.camel.spi.Registry}.
 *
 * @return a map with the component name, and value with component details.
 * @throws LoadPropertiesException is thrown if error during classpath discovery of the components
 * @throws IOException is thrown if error during classpath discovery of the components
 */
Map<String, Properties> findComponents() throws LoadPropertiesException, IOException;
项目:Camel    文件:CamelContext.java   
/**
 * Find information about all the EIPs from camel-core.
 *
 * @return a map with node id, and value with EIP details.
 * @throws LoadPropertiesException is thrown if error during classpath discovery of the EIPs
 * @throws IOException is thrown if error during classpath discovery of the EIPs
 */
Map<String, Properties> findEips() throws LoadPropertiesException, IOException;