com.ail.core.command
Class EJBAccessor

java.lang.Object
  extended by com.ail.core.Type
      extended by com.ail.core.command.AbstractCommand
          extended by com.ail.core.command.Accessor
              extended by com.ail.core.command.EJBAccessor
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class EJBAccessor
extends Accessor

Provide access to EJB entry points. The entry point is accessed by its remote interface.

Version:
$Revision: 1.6 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
EJBAccessor()
           
 
Method Summary
 java.lang.Object clone()
          Clone this object.
 CommandArg getArgs()
          Get the argument being passed into (or returned by) the EJB service.
 Configuration getConfiguration()
          Fetch the configuration of the entry point associated with this command.
 java.lang.String getFactory()
           
 java.lang.String getJndiName()
           
 java.lang.String getPortNumber()
           
 java.lang.String getProtocol()
           
 java.lang.String getRemoteMethod()
           
 java.lang.String getServer()
           
 com.ail.core.command.EJBAccessorSettings getSettings()
           
 java.lang.String getUrl()
           
 Version getVersion()
          Get the version of the EJB that this Accessor is configured to use.
 void invoke()
          Invoke the service (via the EJB)
 void setArgs(CommandArg args)
          Set the arguments to be passed to the EJB service
 void setConfiguration(Configuration properties)
          Update the configuration of the entry point associated with this command.
 void setFactory(java.lang.String factory)
           
 void setJndiName(java.lang.String jndiName)
           
 void setPortNumber(java.lang.String portNumber)
           
 void setProtocol(java.lang.String protocol)
           
 void setRemoteMethod(java.lang.String remoteMethod)
           
 void setServer(java.lang.String server)
           
 void setSettings(com.ail.core.command.EJBAccessorSettings settings)
           
 void setUrl(java.lang.String url)
           
 
Methods inherited from class com.ail.core.command.Accessor
getLoggingIndicator, getLoggingIndicatorAsString, setLoggingIndicator, setLoggingIndicatorAsString
 
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

EJBAccessor

public EJBAccessor()
Method Detail

invoke

public void invoke()
            throws BaseException
Invoke the service (via the EJB)

Specified by:
invoke in class AbstractCommand
Throws:
BaseException

setArgs

public void setArgs(CommandArg args)
Set the arguments to be passed to the EJB service

Specified by:
setArgs in class AbstractCommand
Parameters:
args -

getArgs

public CommandArg getArgs()
Get the argument being passed into (or returned by) the EJB service.

Specified by:
getArgs in class AbstractCommand
Returns:
Arguments

getVersion

public Version getVersion()
Get the version of the EJB that this Accessor is configured to use.

Specified by:
getVersion in class AbstractCommand
Returns:
The EJB's version details

getConfiguration

public Configuration getConfiguration()
Description copied from class: AbstractCommand
Fetch the configuration of the entry point associated with this command. This is similar to invoke in that control is passed to the entry point object, in this case to the getConfiguration method. Note: This method does not return the configuration of the command object.

Specified by:
getConfiguration in class AbstractCommand
Returns:
The entry point's configuration.

setConfiguration

public void setConfiguration(Configuration properties)
Description copied from class: AbstractCommand
Update the configuration of the entry point associated with this command. This is similar to the invoke method in that control is pass to the entry point object, in this case to its setConfiguration method. Note: This method does not set the configuration of the command object.

Specified by:
setConfiguration in class AbstractCommand
Parameters:
properties - Properties to replace the current configuration.

setFactory

public void setFactory(java.lang.String factory)

getFactory

public java.lang.String getFactory()

setServer

public void setServer(java.lang.String server)

getServer

public java.lang.String getServer()

setProtocol

public void setProtocol(java.lang.String protocol)

getProtocol

public java.lang.String getProtocol()

setPortNumber

public void setPortNumber(java.lang.String portNumber)

getPortNumber

public java.lang.String getPortNumber()

setJndiName

public void setJndiName(java.lang.String jndiName)

getJndiName

public java.lang.String getJndiName()

setRemoteMethod

public void setRemoteMethod(java.lang.String remoteMethod)

getRemoteMethod

public java.lang.String getRemoteMethod()

setUrl

public void setUrl(java.lang.String url)

getUrl

public java.lang.String getUrl()

getSettings

public com.ail.core.command.EJBAccessorSettings getSettings()

setSettings

public void setSettings(com.ail.core.command.EJBAccessorSettings settings)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from class: Type
Clone this object. This clone method is used by all Type subclasses to handle deep cloning. For the factory to operate correctly it is essential that Types can be deep cloned, as it hangs onto prototyped instances by name and simply clones them when a request is made for an instance of a named type.

Overrides:
clone in class Type
Throws:
java.lang.CloneNotSupportedException - If the type cannot be deep cloned.