org.apache.openejb.test.stateless
Class BasicStatelessPojoBean

java.lang.Object
  extended by org.apache.openejb.test.stateless.BasicStatelessPojoBean
All Implemented Interfaces:
BasicStatelessBusinessLocal, BasicStatelessBusinessRemote

public class BasicStatelessPojoBean
extends Object
implements BasicStatelessBusinessLocal, BasicStatelessBusinessRemote


Constructor Summary
BasicStatelessPojoBean()
           
 
Method Summary
 String businessMethod(String text)
          Maps to BasicStatelessObject.businessMethod
 Object echo(Object object)
           
 OperationsPolicy getAllowedOperationsReport(String methodName)
          Maps to BasicStatelessObject.getAllowedOperationsReport Returns a report of the allowed opperations for one of the bean's methods.
 Properties getPermissionsReport()
          Maps to BasicStatelessObject.getPermissionsReport Returns a report of the bean's runtime permissions
 Object remove()
          Verify if we can invoke remove() on a stateless session bean as a business method
 String remove(String arg)
           
 void scheduleTimer(String name)
           
 void setSessionContext(javax.ejb.SessionContext ctx)
           
 void throwApplicationException()
          Throws an ApplicationException when invoked
 void throwSystemException_NullPointer()
          Throws a java.lang.NullPointerException when invoked This is a system exception and should result in the destruction of the instance and invalidation of the remote reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicStatelessPojoBean

public BasicStatelessPojoBean()
Method Detail

businessMethod

public String businessMethod(String text)
Maps to BasicStatelessObject.businessMethod

Specified by:
businessMethod in interface BasicStatelessBusinessLocal
Specified by:
businessMethod in interface BasicStatelessBusinessRemote
Returns:
See Also:
BasicStatelessObject.businessMethod(java.lang.String)

scheduleTimer

public void scheduleTimer(String name)

echo

public Object echo(Object object)
Specified by:
echo in interface BasicStatelessBusinessLocal
Specified by:
echo in interface BasicStatelessBusinessRemote

throwApplicationException

public void throwApplicationException()
                               throws ApplicationException
Throws an ApplicationException when invoked

Specified by:
throwApplicationException in interface BasicStatelessBusinessLocal
Specified by:
throwApplicationException in interface BasicStatelessBusinessRemote
Throws:
ApplicationException

throwSystemException_NullPointer

public void throwSystemException_NullPointer()
Throws a java.lang.NullPointerException when invoked This is a system exception and should result in the destruction of the instance and invalidation of the remote reference.

Specified by:
throwSystemException_NullPointer in interface BasicStatelessBusinessLocal
Specified by:
throwSystemException_NullPointer in interface BasicStatelessBusinessRemote

getPermissionsReport

public Properties getPermissionsReport()
Maps to BasicStatelessObject.getPermissionsReport Returns a report of the bean's runtime permissions

Specified by:
getPermissionsReport in interface BasicStatelessBusinessLocal
Specified by:
getPermissionsReport in interface BasicStatelessBusinessRemote
Returns:
See Also:
BasicStatelessObject.getPermissionsReport()

getAllowedOperationsReport

public OperationsPolicy getAllowedOperationsReport(String methodName)
Maps to BasicStatelessObject.getAllowedOperationsReport Returns a report of the allowed opperations for one of the bean's methods.

Specified by:
getAllowedOperationsReport in interface BasicStatelessBusinessLocal
Specified by:
getAllowedOperationsReport in interface BasicStatelessBusinessRemote
Parameters:
methodName - The method for which to get the allowed opperations report
Returns:
See Also:
BasicStatelessObject.getAllowedOperationsReport(java.lang.String)

setSessionContext

public void setSessionContext(javax.ejb.SessionContext ctx)
                       throws javax.ejb.EJBException,
                              RemoteException
Throws:
javax.ejb.EJBException
RemoteException

remove

public Object remove()
Description copied from interface: BasicStatelessBusinessLocal
Verify if we can invoke remove() on a stateless session bean as a business method

Specified by:
remove in interface BasicStatelessBusinessLocal
Specified by:
remove in interface BasicStatelessBusinessRemote

remove

public String remove(String arg)


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.