protected void popEnc() { super.popEnc(); }
@Override public Invocation copy() { final SessionContainerInvocation<A, T> newInvocation = new SessionContainerInvocation<A, T>( this.invokedBusinessInterface, this.info, container); newInvocation.interceptors = this.interceptors; newInvocation.invocationContext = this.invocationContext; newInvocation.setBeanContext(this.getBeanContext()); return newInvocation; } }
/** * Checks if this session bean binds to the given JNDI name. */ @Override public boolean hasJNDIBinding(String jndiName) { return proxyDeployer.hasJNDIBinding(jndiName); }
public JBossSessionBeanMetaData getMetaData() { // TODO: resolve this cast using generics on EJBContainer return (JBossSessionBeanMetaData) getXml(); }
@Override public ExecutorService getAsynchronousExecutor() { return super.getAsynchronousExecutor(); }
public SessionContainer(ClassLoader cl, String beanClassName, String ejbName, Domain domain, Hashtable ctxProperties, Ejb3Deployment deployment, JBossSessionBeanMetaData beanMetaData) throws ClassNotFoundException { super(Ejb3Module.BASE_EJB3_JMX_NAME + ",name=" + ejbName, domain, cl, beanClassName, ejbName, ctxProperties, deployment, beanMetaData); proxyDeployer = new ProxyDeployer(this); }
public InvocationContext createInjectionInvocation(Iterable<Injector> injectors) { return new SessionInjectionInvocation<T>(this, injectors); }
/** * {@inheritDoc} * @see org.jboss.ejb3.async.spi.AsyncInvocationTaskBase#proceed() */ @Override @SuppressWarnings("unchecked") protected V proceed() throws Throwable { // Invoke on the container return (V) SessionSpecContainer.this.invoke(session, null, method, args); }
@Override public SimpleMetaData getMetaData() { return super.getMetaData(); }
@Override public void instantiated() { super.instantiated(); }
/** * Expose this as public so that the {@link AOPBasedInterceptorRegistry} * can get hold of the legacy AOP based {@link org.jboss.ejb3.interceptors.registry.InterceptorRegistry} */ public BeanContainer getBeanContainer() { return super.getBeanContainer(); }
public Serializable createSession() { return createSession(new Class<?>[]{}, new Object[]{}); }
protected void pushEnc() { super.pushEnc(); }
public SessionBeanEffigy getEffigy() { return (SessionBeanEffigy) super.getEffigy(); }
public <T> T getBusinessObject(Class<T> businessInterface) throws IllegalStateException { if (businessInterface == null) throw new IllegalStateException("businessInterface is null"); return container.getBusinessObject(beanContext, businessInterface); }
@Override public Object[] getInterceptorInstances(InterceptorInfo[] interceptorInfos) { if (bean == null) { extractBeanAndInterceptors(); } return super.getInterceptorInstances(interceptorInfos); }
@Override public void start() throws Exception { super.start(); // EJBTHREE-1738: method start/stop need to have a tx context invokeOptionalBusinessMethod(METHOD_NAME_LIFECYCLE_CALLBACK_START); }
public void destroy() throws Exception { // Make the lifecycle callback invokeOptionalMethod(METHOD_NAME_LIFECYCLE_CALLBACK_DESTROY); // Unregister w/ MBean Server unregisterManagementInterface(); // Null out singleton = null; beanContext = null; // Call super impl super.destroy(); }
public SessionContainer(ClassLoader cl, String beanClassName, String ejbName, Domain domain, Hashtable ctxProperties, JBossSessionBeanMetaData beanMetaData) throws ClassNotFoundException { super(Ejb3Module.BASE_EJB3_JMX_NAME + ",name=" + ejbName, domain, cl, beanClassName, ejbName, ctxProperties, null, beanMetaData); proxyDeployer = new ProxyDeployer(this); }
public InvocationContext createInjectionInvocation(Iterable<Injector> injectors) { return new SessionInjectionInvocation<ServiceContainer>(this, injectors); }