Methods Summary |
---|
public void | bindEJBContext()
try
{
Util.rebind(container.getEnc(), "EJBContext", getEJBContext());
}
catch (javax.naming.NamingException e)
{
e.printStackTrace();
throw new RuntimeException(e);
}
|
public Container | getContainer()
return container;
|
public javax.ejb.EJBContext | getEJBContext()
if (ejbContext == null)
{
BaseSessionContext bsc = new BaseSessionContext();
bsc.setContainer(getContainer());
bsc.setBaseContext(this);
ejbContext = bsc;
}
return ejbContext;
|
public java.lang.Object | getId()
return null;
|
public java.lang.Object | getInstance()
return bean;
|
public java.lang.Object[] | getInterceptorInstances(org.jboss.ejb3.interceptor.InterceptorInfo[] interceptorInfos)
Object[] interceptors = new Object[interceptorInfos.length];
int i = 0;
for (InterceptorInfo info : interceptorInfos)
{
interceptors[i++] = interceptorInstances.get(info.getClazz());
}
return interceptors;
|
public java.lang.Object | getInvokedMethodKey()
return container;
|
public org.jboss.aop.metadata.SimpleMetaData | getMetaData()
if (metadata == null) metadata = new SimpleMetaData();
return metadata;
|
public void | initialiseInterceptorInstances()
HashSet<InterceptorInfo> interceptors = ((EJBContainer)container).getApplicableInterceptors();
if (interceptors != null && interceptors.size() > 0 && interceptorInstances == null)
{
HashMap<Class,InterceptorInjector> interceptorInjectors = ((EJBContainer)container).getInterceptorInjectors();
interceptorInstances = new HashMap<Class, Object>();
for (InterceptorInfo info : interceptors)
{
try
{
Object instance = info.getClazz().newInstance();
interceptorInstances.put(info.getClazz(), instance);
interceptorInjectors.get(info.getClazz()).inject(this, instance);
}
catch (Exception e)
{
log.warn("Interceptors must have a public noargs constructor: " + info.getClazz().getName());
}
}
}
|
public void | setContainer(Container container)
this.container = container;
bindEJBContext();
|
public void | setInstance(java.lang.Object instance)
bean = instance;
|