|
||||||||||
| 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
public abstract class ServiceAdapter
The ServiceAdapter class is the base definition of a service adapter.
| Field Summary | |
|---|---|
static String |
LOG_CATEGORY
Log category for ServiceAdapter. |
| 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. |
Destination |
getDestination()
Returns the Destination of the ServiceAdapter. |
boolean |
handlesSubscriptions()
Returns true if the adapter performs custom subscription management. |
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 |
setDestination(Destination destination)
Sets the Destination of the ServiceAdapter. |
void |
start()
Starts the adapter if its associated Destination is started
and if the adapter is not already running. |
void |
stop()
Stops the ServiceAdapter. |
| Methods inherited from class flex.management.ManageableComponent |
|---|
getControl, getId, getParent, initialize, isManaged, isStarted, isValid, setControl, setId, setManaged, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LOG_CATEGORY
ServiceAdapter.
| 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 void start()
Destination is started
and if the adapter is not already running. If subclasses override, they
must call super.start().
start in interface FlexComponentstart in class ManageableComponentpublic void stop()
ServiceAdapter.
If subclasses override, they must call super.start().
stop in interface FlexComponentstop in class ManageableComponentpublic Destination getDestination()
Destination of the ServiceAdapter.
Destination of the ServiceAdapter.public void setDestination(Destination destination)
Destination of the ServiceAdapter.
Also sets the ServiceAdapter of the Destination
if needed.
destination - 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.
|
||||||||||
| 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/ServiceAdapter.html