org.apache.openejb.test.singleton
Class BasicSingletonPojoBean

java.lang.Object
  extended by org.apache.openejb.test.singleton.BasicSingletonPojoBean
All Implemented Interfaces:
BasicSingletonBusinessLocal, BasicSingletonBusinessRemote

public class BasicSingletonPojoBean
extends Object
implements BasicSingletonBusinessLocal, BasicSingletonBusinessRemote


Constructor Summary
BasicSingletonPojoBean()
           
 
Method Summary
 String businessMethod(String text)
          Maps to BasicSingletonObject.businessMethod
 Object echo(Object object)
           
 OperationsPolicy getAllowedOperationsReport(String methodName)
          Maps to BasicSingletonObject.getAllowedOperationsReport Returns a report of the allowed opperations for one of the bean's methods.
 Properties getPermissionsReport()
          Maps to BasicSingletonObject.getPermissionsReport Returns a report of the bean's runtime permissions
 Object remove()
          Verify if we can invoke remove() on a singleton 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

BasicSingletonPojoBean

public BasicSingletonPojoBean()
Method Detail

businessMethod

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

Specified by:
businessMethod in interface BasicSingletonBusinessLocal
Specified by:
businessMethod in interface BasicSingletonBusinessRemote
Returns:
See Also:
BasicSingletonObject.businessMethod(java.lang.String)

scheduleTimer

public void scheduleTimer(String name)

echo

public Object echo(Object object)
Specified by:
echo in interface BasicSingletonBusinessLocal
Specified by:
echo in interface BasicSingletonBusinessRemote

throwApplicationException

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

Specified by:
throwApplicationException in interface BasicSingletonBusinessLocal
Specified by:
throwApplicationException in interface BasicSingletonBusinessRemote
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 BasicSingletonBusinessLocal
Specified by:
throwSystemException_NullPointer in interface BasicSingletonBusinessRemote

getPermissionsReport

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

Specified by:
getPermissionsReport in interface BasicSingletonBusinessLocal
Specified by:
getPermissionsReport in interface BasicSingletonBusinessRemote
Returns:
See Also:
BasicSingletonObject.getPermissionsReport()

getAllowedOperationsReport

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

Specified by:
getAllowedOperationsReport in interface BasicSingletonBusinessLocal
Specified by:
getAllowedOperationsReport in interface BasicSingletonBusinessRemote
Parameters:
methodName - The method for which to get the allowed opperations report
Returns:
See Also:
BasicSingletonObject.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: BasicSingletonBusinessLocal
Verify if we can invoke remove() on a singleton session bean as a business method

Specified by:
remove in interface BasicSingletonBusinessLocal
Specified by:
remove in interface BasicSingletonBusinessRemote

remove

public String remove(String arg)


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