Method Summary |
|
public void | addInterceptor(Interceptor interceptor) Adds the interceptor to the interceptor list for this bean. |
Object | createProxy(Object bean, MockEjbContext ejbContext) |
public boolean | equals(Object obj) Tests if this object is equals to the given object.
If the given object is a proxy to another bean, the pointer equality
between proxies is used.
Otherwise, super.equals() is called.
In other words, this method can be used to compare MockEjbObject instances
as well as bean dynamic proxies returned by Home create() .
Parameters: obj - object to compare with true if this object or the dynamic proxy it holds equalsto the given object. |
public Object | getBean() |
public EJBHome | getEJBHome() Obtains the enterprise Bean's home interface. |
public EJBLocalHome | getEJBLocalHome() Obtains the enterprise Bean's local home interface. |
public MockEjbContext | getEjbContext() Returns MockEjbContext object for the bean backed by this
MockEjbObject. |
public Handle | getHandle() This method is not supported. |
Object | getHomeImpl() |
public Object | getPrimaryKey() |
public int | hashCode() |
public Object | invoke(Object proxy, Method ifaceMethod, Object[] paramVals) Invokes the target bean's method by delegating to the InvocationContext
which calls interceptors and then the bean itself.
If we're dealing with the standard EJB method, this object provides the implementation
of these methods instead of the target bean. |
public boolean | isIdentical(Object object) Test if a given object is identical to the invoked object.
Works for both EJBObject and EJBLocalObject interfaces. |
public void | remove() |
void | setHomeImpl(Object homeImpl) |
void | setHomeProxy(Object homeProxy) |
public void | setTransactionPolicy(TransactionPolicy policy) Sets the transaction policy for the
TransactionManager
which is always part of the interceptor list. |
public String | toString() Provides string representation of this MockEjbObject and
the its bean implementation object. |