|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.services.AbstractBootstrapService
public abstract class AbstractBootstrapService
The purpose of AbstractBootstrapService is to enable creation
of dynamic services, destinations, and adapters. MessageBroker
creates an instance of this class and calls initialize after all
of the server components are created but right before they are started.
MessageBroker also calls start as server starts and
stop as server stops. Subclasses should have their dynamic
component creation code in one of initialize, start,
and stop methods depending on when they want their components
to be created.
| Constructor Summary | |
|---|---|
AbstractBootstrapService()
Default constructor which is no-op. |
|
| Method Summary | |
|---|---|
String |
getId()
Returns the id of the AbstractBootstrapService. |
MessageBroker |
getMessageBroker()
Returns the MessageBroker managing this AbstractBootstrapService |
abstract void |
initialize(String id,
ConfigMap properties)
Called by the MessageBroker after all of the server
components are created but right before they are started. |
boolean |
isManaged()
Always unmanaged. |
void |
setId(String id)
Sets the id of the AbstractBootstrapService. |
void |
setManaged(boolean enableManagement)
Management is always disabled. |
void |
setMessageBroker(MessageBroker broker)
Sets the MessageBroker managing this AbstractBootstrapService. |
abstract void |
start()
Called by the MessageBroker as server starts. |
abstract void |
stop()
Called by the MessageBroker as server stops. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface flex.messaging.services.Service |
|---|
addDefaultChannel, addDestination, createDestination, describeService, getDefaultAdapter, getDefaultChannels, getDestination, getDestination, getDestinations, getRegisteredAdapters, registerAdapter, removeDefaultChannel, removeDestination, serviceCommand, serviceMessage, setDefaultAdapter, setDefaultChannels, unregisterAdapter |
| Methods inherited from interface flex.management.Manageable |
|---|
getControl, setControl |
| Methods inherited from interface flex.messaging.FlexComponent |
|---|
isStarted |
| Constructor Detail |
|---|
public AbstractBootstrapService()
| Method Detail |
|---|
public String getId()
AbstractBootstrapService.
getId in interface ServiceAbstractBootstrapService.public void setId(String id)
AbstractBootstrapService. If the
AbstractBootstrapService has a MessageBroker
already assigned, it also updates the id in the MessageBroker.
setId in interface Serviceid - The id for the service.public MessageBroker getMessageBroker()
MessageBroker managing this AbstractBootstrapService.
- Specified by:
getMessageBroker in interface Service
- Returns:
- MessageBroker of the
AbstractBootstrapService.
public void setMessageBroker(MessageBroker broker)
MessageBroker managing this AbstractBootstrapService.
Removes the AbstractService from the old broker (if there was one)
and adds to the list of services in the new broker.
setMessageBroker in interface Servicebroker - MessageBroker of the AbstractBootstrapService.public boolean isManaged()
isManaged in interface Manageablefalse.public void setManaged(boolean enableManagement)
setManaged in interface ManageableenableManagement - true to enable management, false to disable management.
public abstract void initialize(String id,
ConfigMap properties)
MessageBroker after all of the server
components are created but right before they are started. This is
usually the place to create dynamic components.
initialize in interface FlexConfigurableid - Id of the AbstractBootstrapService.properties - Properties for the AbstractBootstrapService.public abstract void start()
MessageBroker as server starts. Useful for
custom code that needs to run after all the components are initialized
and the server is starting up.
start in interface FlexComponentpublic abstract void stop()
MessageBroker as server stops. Useful for
custom code that needs to run as the server is shutting down.
stop in interface FlexComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcdsjavadoc/flex/messaging/services/AbstractBootstrapService.html