public class TrainSchedulerEJB extends SchedulerBase implements TrainSchedulerRemote
Modifier and Type | Field and Description |
---|---|
protected Instance<Scheduler> |
anyCook
This will inject the ability to get an Scheduler when the qualifier is
known at runtime.
|
protected Scheduler |
cook
This will inject an EJB based on an Annotation qualifier
|
protected Scheduler |
cook2
This will be looked up at runtime during the @PostConstruct
|
private DataSource |
ds
This will inject a javax.sql.DataSource
|
private EntityManager |
em
This will inject a persistence context using a textual name qualifier
|
protected JPASchedulerDAOImpl |
jpaSchedulerDAOImpl
This will inject a DAO by class type
|
(package private) String |
message
This will inject a String based on an annotation qualifier
|
protected SchedulerDAO |
schedulerDAO
This will inject a DAO by interface type
|
ctx, log
Constructor and Description |
---|
TrainSchedulerEJB() |
Modifier and Type | Method and Description |
---|---|
String |
getName()
return the name of the bean
|
void |
init() |
protected void |
setSessionContext(SessionContext ctx) |
getCtxProperty, getEnv, getJndiProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCtxProperty, getEnv, getJndiProperty
@Inject private EntityManager em
@Inject private DataSource ds
@Inject protected SchedulerDAO schedulerDAO
@Inject protected JPASchedulerDAOImpl jpaSchedulerDAOImpl
@Inject @Any protected Instance<Scheduler> anyCook
protected Scheduler cook2
public String getName()
Scheduler
protected void setSessionContext(SessionContext ctx)
setSessionContext
in class SchedulerBase
@PostConstruct public void init()
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.