1 22 package org.jboss.injection; 23 24 import org.jboss.ejb3.Container; 25 import org.jboss.ejb3.DependencyPolicy; 26 import org.jboss.ejb3.entity.PersistenceUnitDeployment; 27 import org.jboss.metamodel.descriptor.EnvironmentRefGroup; 28 29 import javax.naming.Context ; 30 import javax.naming.NameNotFoundException ; 31 import java.util.Map ; 32 import java.util.List ; 33 import java.lang.annotation.Annotation ; 34 import java.lang.reflect.Method ; 35 import java.lang.reflect.Field ; 36 import java.lang.reflect.AccessibleObject ; 37 38 45 public interface InjectionContainer 46 { 47 52 String getIdentifier(); 53 54 59 String getDeploymentDescriptorType(); 60 61 ClassLoader getClassloader(); 62 63 Map <String , EncInjector> getEncInjectors(); 64 Map <String , Map <AccessibleObject , Injector>> getEncInjections(); 65 66 List <Injector> getInjectors(); 68 69 Context getEnc(); 70 Context getEncEnv(); 71 72 73 PersistenceUnitDeployment getPersistenceUnitDeployment(String unitName) throws NameNotFoundException ; 74 75 Container resolveEjbContainer(String link, Class businessIntf); 76 Container resolveEjbContainer(Class businessIntf) throws NameNotFoundException ; 77 String getEjbJndiName(Class businessInterface) throws NameNotFoundException ; 78 String getEjbJndiName(String link, Class businessInterface); 79 80 88 <T extends Annotation > T getAnnotation(Class <T> annotationType, Class <?> clazz); 89 90 99 <T extends Annotation > T getAnnotation(Class <T> annotationType, Class <?> clazz, Method method); 100 101 <T extends Annotation > T getAnnotation(Class <T> annotationType, Method method); 102 103 112 <T extends Annotation > T getAnnotation(Class <T> annotationType, Class <?> clazz, Field field); 113 114 <T extends Annotation > T getAnnotation(Class <T> annotationType, Field field); 115 116 DependencyPolicy getDependencyPolicy(); 117 118 EnvironmentRefGroup getEnvironmentRefGroup(); 119 120 } 121 | Popular Tags |