public abstract class AbstractServiceRegistry extends ServiceSupport implements ServiceRegistry
ServiceRegistry.Selectorshutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Modifier | Constructor and Description |
|---|---|
protected |
AbstractServiceRegistry() |
protected |
AbstractServiceRegistry(String id) |
protected |
AbstractServiceRegistry(String id,
CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getAttributes()
Attributes associated to the service.
|
CamelContext |
getCamelContext()
Get the
CamelContext |
String |
getId()
Returns the id
|
int |
getOrder()
Gets the order.
|
void |
setAttribute(String key,
Object value) |
void |
setAttributes(Map<String,Object> attributes) |
void |
setCamelContext(CamelContext camelContext)
Injects the
CamelContext |
void |
setId(String id)
Sets the id
|
void |
setOrder(int order) |
doResume, doShutdown, doStart, doStop, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitderegister, registerprotected AbstractServiceRegistry()
protected AbstractServiceRegistry(String id)
protected AbstractServiceRegistry(String id, CamelContext camelContext)
public int getOrder()
OrderedInteger.MAX_VALUE or eg Ordered.LOWEST.getOrder in interface ServiceRegistrygetOrder in interface Orderedpublic void setOrder(int order)
public void setCamelContext(CamelContext camelContext)
CamelContextAwareCamelContextsetCamelContext in interface CamelContextAwarecamelContext - the Camel contextpublic CamelContext getCamelContext()
CamelContextAwareCamelContextgetCamelContext in interface CamelContextAwarepublic void setAttributes(Map<String,Object> attributes)
public void setAttribute(String key, Object value)
public Map<String,Object> getAttributes()
ServiceRegistrygetAttributes in interface ServiceRegistryApache Camel