|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectflex.management.ManageableComponent
flex.messaging.services.ServiceAdapter
The ServiceAdapter class is the base definition of a service adapter.
| Constructor Summary | |
ServiceAdapter()
Constructs an unmanaged ServiceAdapter instance. |
|
ServiceAdapter(boolean enableManagement)
Constructs a ServiceAdapter instance. |
|
| Method Summary | |
Object |
getAdapterState()
Return an object, usually a Collection, representing any shared state for the adapter. |
String |
getId()
Retrieve the id for this adapter, used in configuration and as an identifier in various data structures in the system. |
boolean |
handlesSubscriptions()
Returns true if the adapter performs custom subscription management. |
void |
initialize()
The default implementation of this method is a no-op. |
abstract Object |
invoke(Message message)
Handle a data message intended for this adapter. |
Object |
manage(CommandMessage commandMessage)
Accept a command from the adapter's service and perform some internal action based upon it. |
void |
setAdapterState(Object adapterState)
Set an object, usually a Collection, to represent shared state for the adapter. |
void |
setService(Service service)
Make the adapter aware of the service that ultimately controls it. |
void |
setSettings(Destination destination,
AdapterSettings adapterSettings,
DestinationSettings destinationSettings)
Establish the configuration settings for this adapter. |
void |
setupAdapterControl(Destination destination)
Managed subclasses should override this method to setup and register their corresponding MBean control. |
void |
stop()
The default implementation of this method is a no-op. |
| Methods inherited from class flex.management.ManageableComponent |
getControl, isManaged, setControl, setManaged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServiceAdapter()
ServiceAdapter instance.
public ServiceAdapter(boolean enableManagement)
ServiceAdapter instance.
enableManagement - true if the ServiceAdapter has a
corresponding MBean control for management; otherwise false.| Method Detail |
public abstract Object invoke(Message message)
Typically the data content for the message is stored in the body property of the message. The headers of the message are used to store fields which relate to the transport of the message. The type of operation is stored as the operation property of the message.
message - the message as sent by the client intended for this adapter
Message,
AsyncMessagepublic Object manage(CommandMessage commandMessage)
CommandMessage,
AsyncMessagepublic Object getAdapterState()
public void setAdapterState(Object adapterState)
public boolean handlesSubscriptions()
true if the adapter performs custom subscription management.
The default return value is false, and subclasses should override this
method as necessary.
public String getId()
public void setService(Service service)
setSettings to allow adapters to read default settings from
the service but then apply local settings from the adapter itself or the individual
destination, as is neccessary.
public void setSettings(Destination destination,
AdapterSettings adapterSettings,
DestinationSettings destinationSettings)
setService.
public void initialize()
public void stop()
public void setupAdapterControl(Destination destination)
destination - The associated Destination for the adapter.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||