org.apache.webbeans.inject.xml
Class XMLInjectionPointModel

java.lang.Object
  extended by org.apache.webbeans.inject.xml.XMLInjectionPointModel

public class XMLInjectionPointModel
extends Object

Defines the model that is related with injection point decleration. Each injection point decleration defined in the XML file defines the injection point API type and Binding type annotations.

If injection point is a parametrized type, actual type arguments are defined in the XML file. See specification for further details.


Constructor Summary
XMLInjectionPointModel(Class<?> arrayElementType)
           
XMLInjectionPointModel(Class<?> injectionClassType, Type[] actualTypeArguments)
          Creates new injection point model.
 
Method Summary
 void addAnnotation(Annotation annotation)
          Add new injection point annotation
 void addBindingType(Annotation bindingType)
          Add new binding type annotation to the injection point.
 boolean equals(Object obj)
           
 Type[] getActualTypeArguments()
          Gets actual type arguments.
 Set<Annotation> getAnnotations()
           
 Set<Annotation> getBindingTypes()
          Gets unmodifiable binding types of the injection point.
 Class<?> getInjectionClassType()
          Gets injection point class type.
 Type getInjectionGenericType()
           
 Member getInjectionMember()
           
 XMLInjectionModelType getType()
           
 int hashCode()
           
 boolean isArray()
           
 boolean isParametrized()
          Returns the injection point is parametrized type.
 void setInjectionMember(Member injectionMember)
           
 void setType(XMLInjectionModelType type)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLInjectionPointModel

public XMLInjectionPointModel(Class<?> arrayElementType)

XMLInjectionPointModel

public XMLInjectionPointModel(Class<?> injectionClassType,
                              Type[] actualTypeArguments)
Creates new injection point model.

Parameters:
injectionClassType - injection point class type
actualTypeArguments - injection point actual type arguments
Method Detail

addBindingType

public void addBindingType(Annotation bindingType)
Add new binding type annotation to the injection point.

Parameters:
bindingType - new binding type annotation

getInjectionClassType

public Class<?> getInjectionClassType()
Gets injection point class type.

Returns:
the injectionClassType

isParametrized

public boolean isParametrized()
Returns the injection point is parametrized type.

Returns:
the parametrized

getActualTypeArguments

public Type[] getActualTypeArguments()
Gets actual type arguments.

Returns:
the actualTypeArguments

getBindingTypes

public Set<Annotation> getBindingTypes()
Gets unmodifiable binding types of the injection point.

Returns:
the bindingTypes

getAnnotations

public Set<Annotation> getAnnotations()
Returns:
annotations

isArray

public boolean isArray()
Returns:
the array

addAnnotation

public void addAnnotation(Annotation annotation)
Add new injection point annotation

Parameters:
annotation - member annotation

getInjectionGenericType

public Type getInjectionGenericType()
Returns:
the injectionType

getInjectionMember

public Member getInjectionMember()
Returns:
the injectionMember

setInjectionMember

public void setInjectionMember(Member injectionMember)
Parameters:
injectionMember - the injectionMember to set

getType

public XMLInjectionModelType getType()
Returns:
the type

setType

public void setType(XMLInjectionModelType type)
Parameters:
type - the type to set

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.