org.jboss.injection
Interface InjectionContainer

All Known Subinterfaces:
ExtendedInjectionContainer
All Known Implementing Classes:
ConsumerContainer, EJBContainer, MDB, MessagingContainer, ServiceContainer, SessionContainer, SessionSpecContainer, StatefulContainer, StatelessContainer, TimerServiceContainer

public interface InjectionContainer

This is the container that manages all injections. Could be an EJB Container or a WAR.


Method Summary
<T extends java.lang.annotation.Annotation>
T
getAnnotation(java.lang.Class<T> annotationType, java.lang.Class<?> clazz)
          If class has container overridable annotations, this method will discover those overriden annotations.
<T extends java.lang.annotation.Annotation>
T
getAnnotation(java.lang.Class<T> annotationType, java.lang.Class<?> clazz, java.lang.reflect.Field field)
          If class has container overridable annotations, this method will discover those overriden annotations.
<T extends java.lang.annotation.Annotation>
T
getAnnotation(java.lang.Class<T> annotationType, java.lang.Class<?> clazz, java.lang.reflect.Method method)
          If class has container overridable annotations, this method will discover those overriden annotations.
<T extends java.lang.annotation.Annotation>
T
getAnnotation(java.lang.Class<T> annotationType, java.lang.reflect.Field field)
           
<T extends java.lang.annotation.Annotation>
T
getAnnotation(java.lang.Class<T> annotationType, java.lang.reflect.Method method)
           
 java.lang.ClassLoader getClassloader()
           
 DependencyPolicy getDependencyPolicy()
           
 java.lang.String getDeploymentDescriptorType()
          For error messages
 java.lang.String getEjbJndiName(java.lang.Class<?> businessInterface)
           
 java.lang.String getEjbJndiName(java.lang.String link, java.lang.Class<?> businessInterface)
           
 javax.naming.Context getEnc()
           
 java.util.Map<java.lang.String,java.util.Map<java.lang.reflect.AccessibleObject,Injector>> getEncInjections()
           
 java.util.Map<java.lang.String,EncInjector> getEncInjectors()
           
 org.jboss.metadata.javaee.spec.RemoteEnvironment getEnvironmentRefGroup()
           
 java.lang.String getIdentifier()
          Some identifier that can be used in error messages
 java.util.List<Injector> getInjectors()
           
 org.jboss.ejb3.vfs.spi.VirtualFile getRootFile()
           
 boolean hasJNDIBinding(java.lang.String jndiName)
           
 Container resolveEjbContainer(java.lang.Class<?> businessIntf)
          Deprecated. dependency resolving must not rely on runtime components
 Container resolveEjbContainer(java.lang.String link, java.lang.Class<?> businessIntf)
          Deprecated. dependency resolving must not rely on runtime components
 java.lang.String resolveMessageDestination(java.lang.String link)
          Find a message destination in a deployment.
 

Method Detail

getIdentifier

java.lang.String getIdentifier()
Some identifier that can be used in error messages


getDeploymentDescriptorType

java.lang.String getDeploymentDescriptorType()
For error messages

Returns:
ejb-jar.xml, web.xml, etc..

getClassloader

java.lang.ClassLoader getClassloader()

getEncInjectors

java.util.Map<java.lang.String,EncInjector> getEncInjectors()

getEncInjections

java.util.Map<java.lang.String,java.util.Map<java.lang.reflect.AccessibleObject,Injector>> getEncInjections()

getInjectors

java.util.List<Injector> getInjectors()

getRootFile

org.jboss.ejb3.vfs.spi.VirtualFile getRootFile()

getEnc

javax.naming.Context getEnc()

resolveEjbContainer

@Deprecated
Container resolveEjbContainer(java.lang.String link,
                                         java.lang.Class<?> businessIntf)
Deprecated. dependency resolving must not rely on runtime components

Parameters:
link -
businessIntf -
Returns:

resolveEjbContainer

@Deprecated
Container resolveEjbContainer(java.lang.Class<?> businessIntf)
                              throws javax.naming.NameNotFoundException
Deprecated. dependency resolving must not rely on runtime components

Parameters:
businessIntf -
Returns:
Throws:
javax.naming.NameNotFoundException

getEjbJndiName

java.lang.String getEjbJndiName(java.lang.Class<?> businessInterface)
                                throws javax.naming.NameNotFoundException
Throws:
javax.naming.NameNotFoundException

getEjbJndiName

java.lang.String getEjbJndiName(java.lang.String link,
                                java.lang.Class<?> businessInterface)

resolveMessageDestination

java.lang.String resolveMessageDestination(java.lang.String link)
Find a message destination in a deployment.

Parameters:
link - the message destination name
Returns:
the jndi name of the message destination

getAnnotation

<T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType,
                                                            java.lang.Class<?> clazz)
If class has container overridable annotations, this method will discover those overriden annotations.


getAnnotation

<T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType,
                                                            java.lang.Class<?> clazz,
                                                            java.lang.reflect.Method method)
If class has container overridable annotations, this method will discover those overriden annotations.


getAnnotation

<T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType,
                                                            java.lang.reflect.Method method)

getAnnotation

<T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType,
                                                            java.lang.Class<?> clazz,
                                                            java.lang.reflect.Field field)
If class has container overridable annotations, this method will discover those overriden annotations.


getAnnotation

<T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType,
                                                            java.lang.reflect.Field field)

getDependencyPolicy

DependencyPolicy getDependencyPolicy()

getEnvironmentRefGroup

org.jboss.metadata.javaee.spec.RemoteEnvironment getEnvironmentRefGroup()

hasJNDIBinding

boolean hasJNDIBinding(java.lang.String jndiName)