|
||||||||||
| 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
flex.messaging.services.remoting.adapters.JavaAdapter
public class JavaAdapter
Basic adapter for invoking methods on a Java object. By default, it is stateless, in that a new object is instantiated for each request. If the destination configuration contains a stateful flag, the HTTP session is searched for an existing instance of the object, so multiple requests from the same client will be invoked on a stateful component.
Methods are cached, so requests subsequent to the initial creation/invocation will perform much better than will the initial invocation.
| Field Summary | |
|---|---|
static String[] |
PROTECTED_PACKAGES
|
| Constructor Summary | |
|---|---|
JavaAdapter()
Constructs an unmanaged JavaAdapter instance. |
|
JavaAdapter(boolean enableManagement)
Constructs a JavaAdapter instance. |
|
| Method Summary | |
|---|---|
Object |
invoke(Message message)
Handle a data message intended for this adapter. |
void |
setDestination(Destination destination)
Casts the Destination into RemotingDestination
and calls super.setDestination |
void |
start()
Starts the adapter if its associated Destination is started
and if the adapter is not already running. |
| Methods inherited from class flex.messaging.services.ServiceAdapter |
|---|
getAdapterState, getDestination, handlesSubscriptions, manage, setAdapterState, stop |
| 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[] PROTECTED_PACKAGES
| Constructor Detail |
|---|
public JavaAdapter()
JavaAdapter instance.
public JavaAdapter(boolean enableManagement)
JavaAdapter instance.
enableManagement - true if the JavaAdapter has a
corresponding MBean control for management; otherwise false.| Method Detail |
|---|
public void start()
ServiceAdapterDestination is started
and if the adapter is not already running. If subclasses override, they
must call super.start().
start in interface FlexComponentstart in class ServiceAdapterpublic void setDestination(Destination destination)
Destination into RemotingDestination
and calls super.setDestination
setDestination in class ServiceAdapterdestination - public Object invoke(Message message)
ServiceAdapterTypically 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.
invoke in class ServiceAdaptermessage - the message as sent by the client intended for this adapter
Message,
AsyncMessage
|
||||||||||
| 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/remoting/adapters/JavaAdapter.html