public class OsgiServiceRegistry
extends org.apache.camel.support.LifecycleStrategySupport
implements org.apache.camel.spi.Registry
Constructor and Description |
---|
OsgiServiceRegistry(org.osgi.framework.BundleContext bc) |
Modifier and Type | Method and Description |
---|---|
<T> Set<T> |
findByType(Class<T> type) |
<T> Map<String,T> |
findByTypeWithName(Class<T> type) |
Object |
lookup(String name) |
<T> T |
lookup(String name,
Class<T> type) |
Object |
lookupByName(String name)
It's only support to look up the ServiceReference with Class name or service PID
|
<T> T |
lookupByNameAndType(String name,
Class<T> type)
Support to lookup the Object with filter with the (name=NAME) and class type
|
<T> Map<String,T> |
lookupByType(Class<T> type) |
void |
onContextStop(org.apache.camel.CamelContext context) |
onComponentAdd, onComponentRemove, onContextStart, onEndpointAdd, onEndpointRemove, onErrorHandlerAdd, onErrorHandlerRemove, onRouteContextCreate, onRoutesAdd, onRoutesRemove, onServiceAdd, onServiceRemove, onThreadPoolAdd, onThreadPoolRemove
public OsgiServiceRegistry(org.osgi.framework.BundleContext bc)
public <T> T lookupByNameAndType(String name, Class<T> type)
lookupByNameAndType
in interface org.apache.camel.spi.Registry
public Object lookupByName(String name)
lookupByName
in interface org.apache.camel.spi.Registry
public <T> Map<String,T> findByTypeWithName(Class<T> type)
findByTypeWithName
in interface org.apache.camel.spi.Registry
public <T> Set<T> findByType(Class<T> type)
findByType
in interface org.apache.camel.spi.Registry
public Object lookup(String name)
lookup
in interface org.apache.camel.spi.Registry
public <T> T lookup(String name, Class<T> type)
lookup
in interface org.apache.camel.spi.Registry
public <T> Map<String,T> lookupByType(Class<T> type)
lookupByType
in interface org.apache.camel.spi.Registry
public void onContextStop(org.apache.camel.CamelContext context)
onContextStop
in interface org.apache.camel.spi.LifecycleStrategy
onContextStop
in class org.apache.camel.support.LifecycleStrategySupport
Apache Camel