Methods Summary |
---|
private java.lang.String | createScopeKernelName(org.jboss.deployers.spi.deployer.DeploymentUnit unit, org.jboss.ejb3.DeploymentScope ear)
String scopedKernelName = "";
if (ear != null) scopedKernelName += ",ear=" + ear.getShortName();
scopedKernelName += ",jar=" + unit.getDeploymentContext().getRoot().getName();
return scopedKernelName;
|
public T | getAnnotation(java.lang.Class annotationType, java.lang.Class clazz)
return clazz.getAnnotation(annotationType);
|
public T | getAnnotation(java.lang.Class annotationType, java.lang.Class clazz, java.lang.reflect.Method method)
return method.getAnnotation(annotationType);
|
public T | getAnnotation(java.lang.Class annotationType, java.lang.reflect.Method method)
return method.getAnnotation(annotationType);
|
public T | getAnnotation(java.lang.Class annotationType, java.lang.Class clazz, java.lang.reflect.Field field)
return field.getAnnotation(annotationType);
|
public T | getAnnotation(java.lang.Class annotationType, java.lang.reflect.Field field)
return field.getAnnotation(annotationType);
|
public java.lang.ClassLoader | getClassloader()
return classLoader;
|
public org.jboss.ejb3.DependencyPolicy | getDependencyPolicy()
return dependencyPolicy;
|
public java.lang.String | getDeploymentDescriptorType()
return "application-client.xml";
|
public java.lang.String | getEjbJndiName(java.lang.Class businessInterface)
return ejbResolver.getEjbJndiName(businessInterface);
|
public java.lang.String | getEjbJndiName(java.lang.String link, java.lang.Class businessInterface)
return ejbResolver.getEjbJndiName(link, businessInterface);
|
public javax.naming.Context | getEnc()
return enc;
|
public java.util.Map | getEncInjections()
return encInjections;
|
public java.util.Map | getEncInjectors()
return encInjectors;
|
public org.jboss.metamodel.descriptor.EnvironmentRefGroup | getEnvironmentRefGroup()
return xml;
|
public java.lang.String | getIdentifier()
return applicationClientName;
|
public java.util.List | getInjectors()A client enc injection container doesn't support injectors, because
these must be run client side.
//throw new RuntimeException("not supported");
return injectors;
|
public java.lang.Class | getMainClass()
return mainClass;
|
public javax.management.ObjectName | getObjectName()
return objectName;
|
public org.jboss.ejb3.entity.PersistenceUnitDeployment | getPersistenceUnitDeployment(java.lang.String unitName)
throw new RuntimeException("NYI");
|
private void | populateEnc()
for (EncInjector injector : encInjectors.values())
{
log.trace("encInjector: " + injector);
injector.inject(this);
}
|
private void | processMetaData()
for(String dependency : xml.getDependencies())
{
getDependencyPolicy().addDependency(dependency);
}
// TODO: check which handlers an application client should support
Collection<InjectionHandler> handlers = new ArrayList<InjectionHandler>();
handlers.add(new EJBHandler());
handlers.add(new DependsHandler());
handlers.add(new JndiInjectHandler());
handlers.add(new PersistenceContextHandler());
handlers.add(new PersistenceUnitHandler());
handlers.add(new ResourceHandler());
handlers.add(new WebServiceRefHandler());
ClassLoader old = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(classLoader);
try
{
// EJB container's XML must be processed before interceptor's as it may override interceptor's references
for (InjectionHandler handler : handlers) handler.loadXml(xml, this);
Map<AccessibleObject, Injector> tmp = InjectionUtil.processAnnotations(this, handlers, getMainClass());
injectors.addAll(tmp.values());
// initialiseInterceptors();
// for (InterceptorInfo interceptorInfo : applicableInterceptors)
// {
// for (InjectionHandler handler : handlers)
// {
// handler.loadXml(interceptorInfo.getXml(), this);
// }
// }
// for (InterceptorInfo interceptorInfo : applicableInterceptors)
// {
// Map<AccessibleObject, Injector> tmpInterceptor = InjectionUtil.processAnnotations(this, handlers, interceptorInfo.getClazz());
// InterceptorInjector injector = new InterceptorInjector(this, interceptorInfo, tmpInterceptor);
// interceptorInjectors.put(interceptorInfo.getClazz(), injector);
// }
}
finally
{
Thread.currentThread().setContextClassLoader(old);
}
|
public org.jboss.ejb3.Container | resolveEjbContainer(java.lang.String link, java.lang.Class businessIntf)
return ejbResolver.getEjbContainer(link, businessIntf);
|
public org.jboss.ejb3.Container | resolveEjbContainer(java.lang.Class businessIntf)
return ejbResolver.getEjbContainer(businessIntf);
|
public void | start()
log.trace("start");
populateEnc();
// Don't run any injectors, they must be run client side
|
public void | stop()
log.trace("stop");
|