|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--amwebarsentitlementservice.protocol.AMWebARSProtocol
The AMWebARSProtocol is the superclass of all protocols. It provides the infrastructure to do the Single Instance by ID pattern. The Protocol allows cloning. Together with the ProtocolTable it implements the Prototype pattern. The ProtocolTable stores the prototypes of the AMWebARSProtocols.
ProtocolTable
Field Summary | |
protected boolean |
_initialized
|
static java.lang.String |
CLASS_NAME_XML_NAME
|
static java.lang.String |
PROTOCOL_ID_XML_NAME
|
static java.lang.String |
PROTOCOL_XML_NAME
|
Method Summary | |
java.lang.Object |
clone()
Clones (copies) this AMWebARSProtocol. |
boolean |
equals(java.lang.Object other_object)
Tests whether this AMWebARSProtocol is equal to another. |
abstract AMWebARSProtocolMemento |
generateMemento()
|
AMWebARSClient |
getClient()
Gets the client. |
static AMWebARSProtocol |
getInstance(java.lang.String protocol_id)
|
abstract ProtocolSpecificClientFactory |
getPreferedFactory()
Returns the factory this protocol prefers. |
java.lang.String |
getProtocolID()
retruns the protocol_id of this protocol. |
abstract ProtocolInitStatus |
initialize()
Initializes the protocol. |
boolean |
isInitialized()
Tests whether the initialize method run successfully. |
abstract ProtocolRunStatus |
run()
Runs the protocol. |
void |
setClient(AMWebARSClient client)
Sets the client. |
abstract void |
setMemento(AMWebARSProtocolMemento memento)
|
abstract ProtocolShutdownStatus |
shutdown()
|
java.lang.String |
toString()
|
org.jdom.Element |
toXML()
|
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String PROTOCOL_XML_NAME
public static final java.lang.String PROTOCOL_ID_XML_NAME
public static final java.lang.String CLASS_NAME_XML_NAME
protected boolean _initialized
Method Detail |
public static AMWebARSProtocol getInstance(java.lang.String protocol_id) throws java.lang.CloneNotSupportedException
public java.lang.Object clone()
clone
in class java.lang.Object
public AMWebARSClient getClient()
public void setClient(AMWebARSClient client)
client
- The client to setpublic abstract ProtocolSpecificClientFactory getPreferedFactory()
public abstract ProtocolInitStatus initialize()
public abstract ProtocolRunStatus run()
public abstract ProtocolShutdownStatus shutdown()
public abstract AMWebARSProtocolMemento generateMemento()
public abstract void setMemento(AMWebARSProtocolMemento memento)
public boolean isInitialized()
public java.lang.String getProtocolID()
public org.jdom.Element toXML()
public boolean equals(java.lang.Object other_object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |