com.caucho.config.inject
Class ProducesBuilder

java.lang.Object
  extended by com.caucho.config.inject.ProducesBuilder
Direct Known Subclasses:
ManagedProducesBuilder

@Module
public class ProducesBuilder
extends java.lang.Object

Builder for produces beans.


Constructor Summary
ProducesBuilder(InjectManager manager)
           
 
Method Summary
protected
<X> void
addProduces(Bean<X> bean, AnnotatedType<X> beanType, AnnotatedField<?> beanField)
           
protected
<X,T> void
addProducesMethod(Bean<X> bean, AnnotatedType<X> beanType, AnnotatedMethod<? super X> producesMethod, AnnotatedMethod<? super X> disposesMethod)
           
protected
<X,T> Arg<T>[]
introspectArguments(Bean<X> bean, AnnotatedMethod<T> method)
           
protected
<X> Arg<X>[]
introspectDisposesArgs(AnnotatedMethod<?> method, java.util.List<AnnotatedParameter<X>> params)
           
<X> void
introspectProduces(Bean<X> bean, AnnotatedType<X> beanType)
          Introspects the methods for any @Produces
protected  boolean isDisposes(AnnotatedMethod<?> method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProducesBuilder

public ProducesBuilder(InjectManager manager)
Method Detail

introspectProduces

public <X> void introspectProduces(Bean<X> bean,
                                   AnnotatedType<X> beanType)
Introspects the methods for any @Produces


addProducesMethod

protected <X,T> void addProducesMethod(Bean<X> bean,
                                       AnnotatedType<X> beanType,
                                       AnnotatedMethod<? super X> producesMethod,
                                       AnnotatedMethod<? super X> disposesMethod)

addProduces

protected <X> void addProduces(Bean<X> bean,
                               AnnotatedType<X> beanType,
                               AnnotatedField<?> beanField)

introspectArguments

protected <X,T> Arg<T>[] introspectArguments(Bean<X> bean,
                                             AnnotatedMethod<T> method)

introspectDisposesArgs

protected <X> Arg<X>[] introspectDisposesArgs(AnnotatedMethod<?> method,
                                              java.util.List<AnnotatedParameter<X>> params)

isDisposes

protected boolean isDisposes(AnnotatedMethod<?> method)