01: package org.mockejb;
02:
03: /**
04: * Proivides access to the bean (instance of the EJB implementation class) and
05: * its context.
06: * Any remote/local interface in MockEJB can be cast to this type to gain
07: * access to the bean.
08: *
09: * @author Alexander Ananiev
10: */
11: public interface EjbBeanAccess {
12:
13: Object getBean();
14:
15: /**
16: * Returns MockEjbContext of the bean.
17: * MockEjbContext implements all context interfaces.
18: * @return instance of MockEjbContext
19: */
20: MockEjbContext getEjbContext();
21:
22: }
|