Skip navigation links
com.stellent.cis.client.command.ejb.invoker
Class CommandInvokerBean
java.lang.Object
org.springframework.ejb.support.AbstractStatelessSessionBean
com.stellent.cis.client.command.ejb.CommandStatelessSessionBean
com.stellent.cis.client.command.ejb.invoker.CommandInvokerBean
- All Implemented Interfaces:
- ICommandExecutor, java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean
-
public class CommandInvokerBean
- extends CommandStatelessSessionBean
- implements ICommandExecutor
- See Also:
- Serialized Form
Fields inherited from class org.springframework.ejb.support.AbstractStatelessSessionBean |
logger |
Methods inherited from class org.springframework.ejb.support.AbstractStatelessSessionBean |
ejbActivate, ejbPassivate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.ejb.SessionBean |
ejbActivate, ejbPassivate, ejbRemove, setSessionContext |
m_log
protected org.apache.commons.logging.Log m_log
m_executorService
protected ICommandExecutor m_executorService
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
public static final java.lang.String BEAN_FACTORY_PATH_ENVIRONMENT_KEY
-
- See Also:
- Constant Field Values
CommandInvokerBean
public CommandInvokerBean()
getExecutorService
public ICommandExecutor getExecutorService()
onEjbCreate
protected void onEjbCreate()
throws javax.ejb.CreateException
- Subclasses must implement this method to do any initialization they would otherwise have done in an ejbCreate() method. In contrast to ejbCreate, the BeanFactory will have been loaded here.
The same restrictions apply to the work of this method as to an ejbCreate() method.
-
- Specified by:
onEjbCreate
in class org.springframework.ejb.support.AbstractStatelessSessionBean
-
- Throws:
javax.ejb.CreateException
executeCommand
public java.lang.Object executeCommand(ICommand command)
throws CommandException
- Execute the command described by the command bean.
-
- Specified by:
executeCommand
in interface ICommandExecutor
-
- Parameters:
command
- the populated command bean
- Returns:
- return value from the command, possibly null
- Throws:
CommandException
isLocalInvocation
public boolean isLocalInvocation()
-
- Specified by:
isLocalInvocation
in interface ICommandExecutor
-
- Returns:
- true if the commands are being executed locally (i.e. on the same JVM)
setSessionContext
public void setSessionContext(javax.ejb.SessionContext arg0)
-
- Specified by:
setSessionContext
in interface javax.ejb.SessionBean
getSessionContext
protected final javax.ejb.SessionContext getSessionContext()
setBeanFactoryLocator
public void setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
setBeanFactoryLocatorKey
public void setBeanFactoryLocatorKey(java.lang.String arg0)
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
ejbRemove
public void ejbRemove()
onEjbRemove
protected void onEjbRemove()
Skip navigation links
Copyright © 1996, 2010, Oracle and/or its affiliates. All rights reserved.