org.jboss.seam.solder.bean
Class ImmutableInjectionPoint

java.lang.Object
  extended by org.jboss.seam.solder.bean.ImmutableInjectionPoint
All Implemented Interfaces:
InjectionPoint

public class ImmutableInjectionPoint
extends Object
implements InjectionPoint

A base class for implementing InjectionPoint. The attributes are immutable, and collections are defensively copied on instantiation.

Author:
Stuart Douglas, Pete Muir

Constructor Summary
ImmutableInjectionPoint(AnnotatedField<?> field, BeanManager beanManager, Bean<?> declaringBean, boolean _transient, boolean delegate)
          Instantiate a new InjectionPoint based upon an AnnotatedField, reading the qualifiers from the annotations declared on the field.
ImmutableInjectionPoint(AnnotatedField<?> field, Set<Annotation> qualifiers, Bean<?> declaringBean, boolean _transient, boolean delegate)
          Instantiate a new InjectionPoint based upon an AnnotatedField.
ImmutableInjectionPoint(AnnotatedParameter<?> parameter, BeanManager beanManager, Bean<?> declaringBean, boolean _transient, boolean delegate)
          Instantiate a new InjectionPoint based upon an AnnotatedParameter, reading the qualifiers from the annotations declared on the parameter.
ImmutableInjectionPoint(AnnotatedParameter<?> parameter, Set<Annotation> qualifiers, Bean<?> declaringBean, boolean _transient, boolean delegate)
          Instantiate a new InjectionPoint based upon an AnnotatedParameter.
 
Method Summary
 Annotated getAnnotated()
           
 Bean<?> getBean()
           
 Member getMember()
           
 Set<Annotation> getQualifiers()
           
 Type getType()
           
 boolean isDelegate()
           
 boolean isTransient()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableInjectionPoint

public ImmutableInjectionPoint(AnnotatedField<?> field,
                               Set<Annotation> qualifiers,
                               Bean<?> declaringBean,
                               boolean _transient,
                               boolean delegate)
Instantiate a new InjectionPoint based upon an AnnotatedField.

Parameters:
field - the field for which to create the injection point
qualifiers - the qualifiers on the injection point
declaringBean - the declaringBean declaring the injection point
_transient - true if the injection point is transient
delegate - true if the injection point is a delegate injection point on a decorator

ImmutableInjectionPoint

public ImmutableInjectionPoint(AnnotatedField<?> field,
                               BeanManager beanManager,
                               Bean<?> declaringBean,
                               boolean _transient,
                               boolean delegate)
Instantiate a new InjectionPoint based upon an AnnotatedField, reading the qualifiers from the annotations declared on the field.

Parameters:
field - the field for which to create the injection point
declaringBean - the declaringBean declaring the injection point
_transient - true if the injection point is transient
delegate - true if the injection point is a delegate injection point on a decorator

ImmutableInjectionPoint

public ImmutableInjectionPoint(AnnotatedParameter<?> parameter,
                               Set<Annotation> qualifiers,
                               Bean<?> declaringBean,
                               boolean _transient,
                               boolean delegate)
Instantiate a new InjectionPoint based upon an AnnotatedParameter.

Parameters:
parameter - the parameter for which to create the injection point
qualifiers - the qualifiers on the injection point
declaringBean - the declaringBean declaring the injection point
_transient - true if the injection point is transient
delegate - true if the injection point is a delegate injection point on a decorator

ImmutableInjectionPoint

public ImmutableInjectionPoint(AnnotatedParameter<?> parameter,
                               BeanManager beanManager,
                               Bean<?> declaringBean,
                               boolean _transient,
                               boolean delegate)
Instantiate a new InjectionPoint based upon an AnnotatedParameter, reading the qualifiers from the annotations declared on the parameter.

Parameters:
parameter - the parameter for which to create the injection point
declaringBean - the declaringBean declaring the injection point
_transient - true if the injection point is transient
delegate - true if the injection point is a delegate injection point on a decorator
Method Detail

getAnnotated

public Annotated getAnnotated()
Specified by:
getAnnotated in interface InjectionPoint

getBean

public Bean<?> getBean()
Specified by:
getBean in interface InjectionPoint

getMember

public Member getMember()
Specified by:
getMember in interface InjectionPoint

getQualifiers

public Set<Annotation> getQualifiers()
Specified by:
getQualifiers in interface InjectionPoint

getType

public Type getType()
Specified by:
getType in interface InjectionPoint

isDelegate

public boolean isDelegate()
Specified by:
isDelegate in interface InjectionPoint

isTransient

public boolean isTransient()
Specified by:
isTransient in interface InjectionPoint


Copyright © 2008-2011 Seam Framework. All Rights Reserved.