org.jboss.injection
Interface InjectionContainer

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

public interface InjectionContainer

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

Version:
$Revision: 78954 $
Author:
Bill Burke

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

Method Detail

getIdentifier

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


getDeploymentDescriptorType

String getDeploymentDescriptorType()
For error messages

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

getClassloader

ClassLoader getClassloader()

getEncInjectors

Map<String,EncInjector> getEncInjectors()

getEncInjections

Map<String,Map<AccessibleObject,Injector>> getEncInjections()

getInjectors

List<Injector> getInjectors()

getRootFile

org.jboss.virtual.VirtualFile getRootFile()

getEnc

Context getEnc()

resolveEjbContainer

Container resolveEjbContainer(String link,
                              Class<?> businessIntf)

resolveEjbContainer

Container resolveEjbContainer(Class<?> businessIntf)
                              throws NameNotFoundException
Throws:
NameNotFoundException

getEjbJndiName

String getEjbJndiName(Class<?> businessInterface)
                      throws NameNotFoundException
Throws:
NameNotFoundException

getEjbJndiName

String getEjbJndiName(String link,
                      Class<?> businessInterface)

resolveMessageDestination

String resolveMessageDestination(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 Annotation> T getAnnotation(Class<T> annotationType,
                                       Class<?> clazz)
If class has container overridable annotations, this method will discover those overriden annotations.


getAnnotation

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


getAnnotation

<T extends Annotation> T getAnnotation(Class<T> annotationType,
                                       Method method)

getAnnotation

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


getAnnotation

<T extends Annotation> T getAnnotation(Class<T> annotationType,
                                       Field field)

getDependencyPolicy

DependencyPolicy getDependencyPolicy()

getEnvironmentRefGroup

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

hasJNDIBinding

boolean hasJNDIBinding(String jndiName)


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.