org.jboss.injection
Class EJBRemoteHandler<X extends org.jboss.metadata.javaee.spec.RemoteEnvironment>

java.lang.Object
  extended by org.jboss.injection.AbstractHandler<X>
      extended by org.jboss.injection.EJBInjectionHandler<X>
          extended by org.jboss.injection.EJBRemoteHandler<X>
All Implemented Interfaces:
InjectionHandler<X>
Direct Known Subclasses:
EJBHandler

public class EJBRemoteHandler<X extends org.jboss.metadata.javaee.spec.RemoteEnvironment>
extends EJBInjectionHandler<X>

Searches bean class for all @Inject and create Injectors for a remote environment.

Version:
$Revision: 88999 $
Author:
Bill Burke

Constructor Summary
EJBRemoteHandler()
           
 
Method Summary
protected  void ejbRefDependency(String mappedName, String link, InjectionContainer container, Class<?> refClass, String errorType, String encName)
           
protected  void ejbRefEncInjector(String mappedName, String encName, String fieldName, Class refClass, String link, String errorType, InjectionContainer container)
           
protected  void ejbRefXml(org.jboss.metadata.javaee.spec.AbstractEJBReferenceMetaData ref, String interfaceName, InjectionContainer container, String errorType)
           
static String getJndiName(javax.ejb.EJB ref, InjectionContainer container, Class<?> memberType)
           
protected  void handleClassAnnotation(javax.ejb.EJB ejb, Class<?> clazz, InjectionContainer container)
           
 void handleClassAnnotations(Class<?> clazz, InjectionContainer container)
           
 void handleFieldAnnotations(Field field, InjectionContainer container, Map<AccessibleObject,Injector> injectors)
           
 void handleMethodAnnotations(Method method, InjectionContainer container, Map<AccessibleObject,Injector> injectors)
           
protected  boolean isIgnoreDependency(InjectionContainer container, javax.ejb.EJB ref)
           
protected  void loadEjbRefXml(Collection<org.jboss.metadata.javaee.spec.EJBReferenceMetaData> refs, InjectionContainer container)
           
 void loadXml(X xml, InjectionContainer container)
           
 
Methods inherited from class org.jboss.injection.EJBInjectionHandler
getEncName, getEncName
 
Methods inherited from class org.jboss.injection.AbstractHandler
addDependency, addDependency, addJNDIDependency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBRemoteHandler

public EJBRemoteHandler()
Method Detail

loadXml

public void loadXml(X xml,
                    InjectionContainer container)
Specified by:
loadXml in interface InjectionHandler<X extends org.jboss.metadata.javaee.spec.RemoteEnvironment>
Overrides:
loadXml in class EJBInjectionHandler<X extends org.jboss.metadata.javaee.spec.RemoteEnvironment>

loadEjbRefXml

protected void loadEjbRefXml(Collection<org.jboss.metadata.javaee.spec.EJBReferenceMetaData> refs,
                             InjectionContainer container)

ejbRefXml

protected void ejbRefXml(org.jboss.metadata.javaee.spec.AbstractEJBReferenceMetaData ref,
                         String interfaceName,
                         InjectionContainer container,
                         String errorType)

ejbRefDependency

protected void ejbRefDependency(String mappedName,
                                String link,
                                InjectionContainer container,
                                Class<?> refClass,
                                String errorType,
                                String encName)

ejbRefEncInjector

protected void ejbRefEncInjector(String mappedName,
                                 String encName,
                                 String fieldName,
                                 Class refClass,
                                 String link,
                                 String errorType,
                                 InjectionContainer container)

getJndiName

public static String getJndiName(javax.ejb.EJB ref,
                                 InjectionContainer container,
                                 Class<?> memberType)

handleClassAnnotations

public void handleClassAnnotations(Class<?> clazz,
                                   InjectionContainer container)
Specified by:
handleClassAnnotations in interface InjectionHandler<X extends org.jboss.metadata.javaee.spec.RemoteEnvironment>
Overrides:
handleClassAnnotations in class EJBInjectionHandler<X extends org.jboss.metadata.javaee.spec.RemoteEnvironment>

handleClassAnnotation

protected void handleClassAnnotation(javax.ejb.EJB ejb,
                                     Class<?> clazz,
                                     InjectionContainer container)

handleMethodAnnotations

public void handleMethodAnnotations(Method method,
                                    InjectionContainer container,
                                    Map<AccessibleObject,Injector> injectors)
Specified by:
handleMethodAnnotations in interface InjectionHandler<X extends org.jboss.metadata.javaee.spec.RemoteEnvironment>
Overrides:
handleMethodAnnotations in class EJBInjectionHandler<X extends org.jboss.metadata.javaee.spec.RemoteEnvironment>

handleFieldAnnotations

public void handleFieldAnnotations(Field field,
                                   InjectionContainer container,
                                   Map<AccessibleObject,Injector> injectors)
Specified by:
handleFieldAnnotations in interface InjectionHandler<X extends org.jboss.metadata.javaee.spec.RemoteEnvironment>
Overrides:
handleFieldAnnotations in class EJBInjectionHandler<X extends org.jboss.metadata.javaee.spec.RemoteEnvironment>

isIgnoreDependency

protected boolean isIgnoreDependency(InjectionContainer container,
                                     javax.ejb.EJB ref)


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