|
||||||||||
| 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.Service
public abstract class Service
The Service abstract class is implemented by all classes that may be exposed as component entry points.
In addition to the methods described here, an entry point implementation is also expected to offer getter and setter methods which are used to pass arguments to the entry point (setters called before invoke), and fetch the entry point's results (getters, called after invoke).
Each entry point has associated version and configuration information. The version details are burned into the entry point's source code at build time. The entry point's configuration can be modified at run-time using the setter provided.
| Field Summary |
|---|
| Fields inherited from class com.ail.core.Type |
|---|
jXPathContext, NOT_PERSISTED |
| Constructor Summary | |
|---|---|
Service()
|
|
| Method Summary | |
|---|---|
abstract CommandArg |
getArgs()
Get the arguments used by this entry point. |
Configuration |
getConfiguration()
Default entry point implementation of the getConfiguration method. |
java.lang.String |
getConfigurationNamespace()
Default entry point implementation of the getConfigurationNamespace method. |
abstract Core |
getCore()
Fetch the entry point's instance of the core. |
java.security.Principal |
getSecurityPrincipal()
Get the security principal associated with this instance. |
abstract Version |
getVersion()
Return the version details of this entry point. |
VersionEffectiveDate |
getVersionEffectiveDate()
A default entry point implemention returning the version effective date. |
abstract void |
invoke()
Invoke the entry point's business logic. |
void |
resetConfiguration()
Default entry point implementation of the resetConfiguration method. |
abstract void |
setArgs(CommandArg args)
Set the arguments to be used by this entry point's business logic. |
void |
setConfiguration(Configuration configuration)
Default entry point implementation of the setConfiguration method. |
| Methods inherited from class com.ail.core.Type |
|---|
addAttribute, clone, 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 Service()
| Method Detail |
|---|
public abstract Version getVersion()
public abstract void setArgs(CommandArg args)
args - Arguments for the entry point to process.
public abstract void invoke()
throws BaseException
BaseExceptionpublic VersionEffectiveDate getVersionEffectiveDate()
getVersionEffectiveDate in interface CoreUserpublic abstract CommandArg getArgs()
public abstract Core getCore()
public void setConfiguration(Configuration configuration)
setConfiguration in interface ConfigurationOwnerconfiguration - The configuration to save.public Configuration getConfiguration()
getConfiguration in interface ConfigurationOwnerpublic java.lang.String getConfigurationNamespace()
getConfigurationNamespace in interface CoreUserpublic void resetConfiguration()
resetConfiguration in interface ConfigurationOwnerpublic java.security.Principal getSecurityPrincipal()
getSecurityPrincipal in interface CoreUser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||