public static Ejb3HandlerFactory getInstance(Ejb3Deployment di) throws Exception { URL ddResource = di.getDeploymentUnit().getEjbJarXml(); URL jbossDdResource = di.getDeploymentUnit().getJbossXml(); if (ddResource == null && jbossDdResource == null) return new AnnotationFactory(di); else return new DDFactory(di); } }
public EJBContainer getEjbContainer(Class businessIntf) throws NameNotFoundException { String relativePath = unit.getRelativePath(); return deploymentScope.getEjbContainer(businessIntf, relativePath); }
static void setContextClassLoader(Thread thread, ClassLoader cl) { getTCLAction().setContextClassLoader(thread, cl); } }
/** * @deprecated use getAnnotation */ @SuppressWarnings("unchecked") public Object resolveAnnotation(Class annotationType) { return getAnnotation(annotationType); }
private boolean isWebServiceBean(EJBContainer container) { boolean isWebServiceBean = false; if (container instanceof StatelessContainer || container instanceof MessagingContainer) { boolean isWebService = container.resolveAnnotation(WebService.class) != null; boolean isWebServiceProvider = container.resolveAnnotation(WebServiceProvider.class) != null; isWebServiceBean = isWebService || isWebServiceProvider; } return isWebServiceBean; } }
public VirtualFile getRootFile() { return getDeploymentUnit().getRootFile(); }
public String resolvePersistenceUnitSupplier(String unitName) { return getDeployment().resolvePersistenceUnitSupplier(unitName); }
public static KernelAbstraction getInstance() throws Exception { if (kernelAbstraction == null) { MBeanServer mbeanServer = (MBeanServer)getMBeanServer(); if (kernel != null) kernelAbstraction = new MCKernelAbstraction(kernel, mbeanServer); else { kernelAbstraction = new JmxKernelAbstraction(mbeanServer); } } return kernelAbstraction; }
public boolean isEjb() { if (visible == null) return false; if (EJB3Util.isStateless(visible)) return true; if (EJB3Util.isMessageDriven(visible)) return true; if (EJB3Util.isStatefulSession(visible)) return true; return false; }
static ClassLoader getContextClassLoader(Thread thread) { return getTCLAction().getContextClassLoader(thread); }
/** * This should have been final, but ServiceContainer wants to butt in. */ public void stop() throws Exception { // Wait for active invocations to complete - and block new invocations this.blockInvocations(); this.lockedStop(); }
public boolean isJBossBeanType() { if (visible == null) return false; if (EJB3Util.isService(visible)) return true; if (EJB3Util.isConsumer(visible)) return true; return false; }
public InvocationStatistics getInvokeStats() { return ((Container) delegate).getInvokeStats(); } }
public Ejb3Handler createHandler(ClassFile cf) throws Exception { return new Ejb3AnnotationHandler(di, cf); } }
/** * Pops EJB's ENC from the stack. Delegates to whatever implementation * is used to pop the EJB's ENC from the stock * */ protected void popEnc() { encFactory.popEnc(this); }
public Ejb3Handler createHandler(ClassFile cf) throws Exception { return new Ejb3DescriptorHandler(di, cf, dd); } }
/** * Returns the {@link TimerService} associated with this container. * * @throws UnsupportedOperationException If this container corresponds to a stateful session bean */ // hmm, what exactly is this method for? @Override public TimerService getTimerService(Object pKey) { return this.getTimerService(); }
public EJBContainer getEjbContainer(String ejbLink, Class businessIntf) { String relativePath = unit.getRelativePath(); EJBContainer container = deploymentScope.getEjbContainer(ejbLink, businessIntf, relativePath); return container; }
static void setContextClassLoader(ClassLoader cl) { getTCLAction().setContextClassLoader(cl); }
static ClassLoader getContextClassLoader() { return getTCLAction().getContextClassLoader(); }