/** * 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; }
public Map<String, Properties> findComponents() throws LoadPropertiesException, IOException { return CamelContextHelper.findComponents(this); }
public Map<String, Properties> findEips() throws LoadPropertiesException, IOException { return CamelContextHelper.findEips(this); }
@Override public Map<String, Properties> findComponents() throws LoadPropertiesException, IOException { return BundleContextUtils.findComponents(bundleContext, this); }
@Override public Map<String, Properties> findComponents() throws LoadPropertiesException, IOException { return context.findComponents(); }
@Override public Map<String, Properties> findEips() throws LoadPropertiesException, IOException { return context.findEips(); }
/** * 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;
/** * 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;