org.openxava.ejbx
Interface IEJBContextInit

All Superinterfaces:
IConnectionProvider, IEJBContext
All Known Implementing Classes:
EJB11Context

public interface IEJBContextInit
extends IEJBContext

Add the possibility of init to IEJBContext.

It's a convenience interface for implementation, if you create a class that you want use as IEJBContext you must to implement this interface, although the final user does not know about it.
Also it's important that implementing class have a default constructor, but without logic.

Author:
Javier Paniza

Method Summary
 void setEJBContext(EJBContext ejbContext)
          Sets a EJBContext needed for implementing.
 
Methods inherited from interface org.openxava.ejbx.IEJBContext
getCallerPrincipal, getProperty, isCallerInRole
 
Methods inherited from interface org.openxava.util.IConnectionProvider
getConnection, getConnection, setDefaultDataSource, setPassword, setUser
 

Method Detail

setEJBContext

void setEJBContext(EJBContext ejbContext)
Sets a EJBContext needed for implementing.
It's required call to this method so IEJBContext can be used.