|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bm.creators.SessionBeanFactory<T>
T
- -
the type of the session bean to create (class name)public final class SessionBeanFactory<T>
This class will create session bean instances without an application server. The dependency injection is done here
Constructor Summary | |
---|---|
SessionBeanFactory(javax.persistence.EntityManager em)
Default constructor. |
Method Summary | |
---|---|
T |
createSessionBean(java.lang.Class<T> toCreate)
Factory method to create stateless session beans. |
com.bm.ejb3guice.inject.Injector |
getInjector(java.lang.Class<T> toCreate,
com.bm.ejb3guice.inject.CreationListner creationListener)
Creates the injector to create session beans and inject fields |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public SessionBeanFactory(javax.persistence.EntityManager em)
em
- -
the current entity managerMethod Detail |
---|
public T createSessionBean(java.lang.Class<T> toCreate)
toCreate
- -
the class to create
public com.bm.ejb3guice.inject.Injector getInjector(java.lang.Class<T> toCreate, com.bm.ejb3guice.inject.CreationListner creationListener)
toCreate
- -
the class to create
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |