private <R extends JndiReference> boolean isPrivateReference(final R a) { if (!isResourceRef(a)) { return false; } final Class[] types = {EJBContext.class, EntityContext.class, SessionContext.class, MessageDrivenContext.class, UserTransaction.class}; for (final Class type : types) { if (type.getName().equals(a.getType())) { return true; } } return false; }
@Override public void setEntityContext(EntityContext ctx) throws EJBException, RemoteException { logger.info("setEntityContext"); }
/** * @see javax.ejb.EntityBean#setEntityContext(javax.ejb.EntityContext) */ public void setEntityContext(EntityContext aContext) { context = aContext; }
public void setEntityContext(EntityContext context) { System.out.println("setEntityContext"); this.context = context; }
public void setEntityContext(EntityContext ctx) { System.out.println("setEntityContext"); }
/** * Set the associated entity context. The container invokes this method * on an instance after the instance has been created. */ public void setEntityContext(final EntityContext ctx) throws EJBException, RemoteException { ejbContext = ctx; testAllowedOperations("setEntityContext"); }