|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ail.core.Type
com.ail.core.command.AbstractCommand
com.ail.core.command.Command
public abstract class Command
| Field Summary |
|---|
| Fields inherited from class com.ail.core.Type |
|---|
jXPathContext, NOT_PERSISTED |
| Constructor Summary | |
|---|---|
Command()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone this command. |
Accessor |
getAccessor()
Get the accessor used by this command. |
CoreUser |
getCallersCore()
Get hold of the caller's core. |
Configuration |
getConfiguration()
Get the service's configuration. |
Version |
getVersion()
Get the service's version information. |
void |
invoke()
Invoke the serivce itself. |
void |
setAccessor(Accessor accessor)
Set the accessor property. |
void |
setCallersCore(CoreUser callersCore)
Set the caller's core. |
void |
setConfiguration(Configuration config)
Set the service's configuration. |
void |
setService(Accessor accessor)
Set the accessor property. |
| Methods inherited from class com.ail.core.command.AbstractCommand |
|---|
getArgs, setArgs |
| Methods inherited from class com.ail.core.Type |
|---|
addAttribute, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Command()
| Method Detail |
|---|
public CoreUser getCallersCore()
public void setCallersCore(CoreUser callersCore)
callersCore - getCallersCore()public Accessor getAccessor()
public void setAccessor(Accessor accessor)
accessor - The accessor to use.getAccessor()public void setService(Accessor accessor)
i.e. rather than:
<command name="mycommand"...>
<parameter name="accessor">myService</parameter>
</command>
you can use:
<command name="mycommand"...>
<parameter name="service">myService</parameter>
</command>
accessor - The accessor to use.getAccessor()
public void invoke()
throws BaseException
invoke in class AbstractCommandBaseException - Thrown by the service.public Configuration getConfiguration()
getConfiguration in class AbstractCommandpublic void setConfiguration(Configuration config)
setConfiguration in class AbstractCommandconfig - The configuration to pass to the service.getConfiguration()public Version getVersion()
getVersion in class AbstractCommand
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class Typejava.lang.CloneNotSupportedException - If the command (or one of its properties) cannot
be 'deep' cloned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||