Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source.
   * Copyright 2006, Red Hat Middleware LLC, and individual contributors
   * as indicated by the @author tags. See the copyright.txt file in the
   * distribution for a full listing of individual contributors.
   *
   * This is free software; you can redistribute it and/or modify it
   * under the terms of the GNU Lesser General Public License as
   * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the Free
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  */
 package org.jboss.injection;
 
 import java.util.List;
 import java.util.Map;
 
 
This is the container that manages all injections. Could be an EJB Container or a WAR.

Author(s):
Bill Burke
Version:
$Revision: 101400 $
 
 public interface InjectionContainer
 {
   
Some identifier that can be used in error messages
 
    String getIdentifier();

   
For error messages

Returns:
ejb-jar.xml, web.xml, etc..
 
 
 
 
    // EncInjectors/Handlers may need to add extra instance injectors
    
 
    Context getEnc();

   

Deprecated:
dependency resolving must not rely on runtime components
Parameters:
link
businessIntf
Returns:
 
    @Deprecated
    Container resolveEjbContainer(String linkClass<?> businessIntf);
   
   

Deprecated:
dependency resolving must not rely on runtime components
Parameters:
businessIntf
Returns:
Throws:
javax.naming.NameNotFoundException
 
    @Deprecated
    Container resolveEjbContainer(Class<?> businessIntfthrows NameNotFoundException;
    
    String getEjbJndiName(Class<?> businessInterfacethrows NameNotFoundException;
    String getEjbJndiName(String linkClass<?> businessInterface);
   
   
Find a message destination in a deployment.

Parameters:
link the message destination name
Returns:
the jndi name of the message destination
 
If class has container overridable annotations, this method will discover those overriden annotations.
   <T extends Annotation> T getAnnotation(Class<T> annotationTypeClass<?> clazz);
   
   
If class has container overridable annotations, this method will discover those overriden annotations.
   <T extends Annotation> T getAnnotation(Class<T> annotationTypeClass<?> clazzMethod method);
   
   <T extends Annotation> T getAnnotation(Class<T> annotationTypeMethod method);

   
If class has container overridable annotations, this method will discover those overriden annotations.
   <T extends Annotation> T getAnnotation(Class<T> annotationTypeClass<?> clazzField field);
   
   <T extends Annotation> T getAnnotation(Class<T> annotationTypeField field);
   
   
   boolean hasJNDIBinding(String jndiName);
New to GrepCode? Check out our FAQ X