public abstract class AbstractServiceRegistry extends ServiceSupport implements ServiceRegistry
ServiceRegistry.Selector
shutdown, 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, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deregister, register
protected AbstractServiceRegistry()
protected AbstractServiceRegistry(String id)
protected AbstractServiceRegistry(String id, CamelContext camelContext)
public int getOrder()
Ordered
Integer.MAX_VALUE
or eg Ordered.LOWEST
.getOrder
in interface ServiceRegistry
getOrder
in interface Ordered
public void setOrder(int order)
public void setCamelContext(CamelContext camelContext)
CamelContextAware
CamelContext
setCamelContext
in interface CamelContextAware
camelContext
- the Camel contextpublic CamelContext getCamelContext()
CamelContextAware
CamelContext
getCamelContext
in interface CamelContextAware
public void setAttributes(Map<String,Object> attributes)
public void setAttribute(String key, Object value)
public Map<String,Object> getAttributes()
ServiceRegistry
getAttributes
in interface ServiceRegistry
Apache Camel