org.ow2.jonas.cdi.weld.internal.easybeans
Class WeldInjectAnnotationHandler

java.lang.Object
  extended by org.ow2.util.annotation.processor.handler.AbstractAnnotationHandler
      extended by org.ow2.util.annotation.processor.handler.AbstractInjectionHandler
          extended by org.ow2.jonas.cdi.weld.internal.easybeans.WeldInjectAnnotationHandler
All Implemented Interfaces:
org.ow2.util.annotation.processor.IAnnotationHandler

public class WeldInjectAnnotationHandler
extends org.ow2.util.annotation.processor.handler.AbstractInjectionHandler

This is an AbstractInjectionHandler used to perform injection of CDI beans into EJBs

Author:
Loic Albertin

Constructor Summary
WeldInjectAnnotationHandler(org.jboss.weld.manager.api.WeldManager beanManager, Map<org.ow2.easybeans.api.bean.EasyBeansBean,Set<InjectionItemHolder>> injectionTargets)
           
 
Method Summary
 boolean isSupported(Class<? extends Annotation> aClass)
           
 void process(Annotation annotation, Field field, Object target)
           
 void process(Annotation annotation, Method method, Object target)
           
 
Methods inherited from class org.ow2.util.annotation.processor.handler.AbstractInjectionHandler
doInjectField, doInjectMethod, getAttributeName, getSetterParameterType, isSetterMethod
 
Methods inherited from class org.ow2.util.annotation.processor.handler.AbstractAnnotationHandler
process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeldInjectAnnotationHandler

public WeldInjectAnnotationHandler(org.jboss.weld.manager.api.WeldManager beanManager,
                                   Map<org.ow2.easybeans.api.bean.EasyBeansBean,Set<InjectionItemHolder>> injectionTargets)
Parameters:
beanManager - The bean manager
injectionTargets - A map where result of injection for EJBs should be stored in order to be later disposed.
Method Detail

isSupported

public boolean isSupported(Class<? extends Annotation> aClass)

process

public void process(Annotation annotation,
                    Field field,
                    Object target)
             throws org.ow2.util.annotation.processor.ProcessorException
Specified by:
process in interface org.ow2.util.annotation.processor.IAnnotationHandler
Overrides:
process in class org.ow2.util.annotation.processor.handler.AbstractAnnotationHandler
Throws:
org.ow2.util.annotation.processor.ProcessorException

process

public void process(Annotation annotation,
                    Method method,
                    Object target)
             throws org.ow2.util.annotation.processor.ProcessorException
Specified by:
process in interface org.ow2.util.annotation.processor.IAnnotationHandler
Overrides:
process in class org.ow2.util.annotation.processor.handler.AbstractAnnotationHandler
Throws:
org.ow2.util.annotation.processor.ProcessorException


Copyright © 2013 OW2 Consortium. All Rights Reserved.