org.jboss.webbeans.bean.standard
Class InjectionPointBean

java.lang.Object
  extended by javax.inject.manager.Bean<T>
      extended by org.jboss.webbeans.bean.RIBean<T>
          extended by org.jboss.webbeans.bean.standard.AbstractStandardBean<InjectionPoint>
              extended by org.jboss.webbeans.bean.standard.InjectionPointBean
All Implemented Interfaces:
Contextual<InjectionPoint>

public class InjectionPointBean
extends AbstractStandardBean<InjectionPoint>

Bean for InjectionPoint metadata

Author:
David Allen

Constructor Summary
protected InjectionPointBean(ManagerImpl manager)
           
 
Method Summary
 InjectionPoint create(CreationalContext<InjectionPoint> creationalContext)
          Create a new instance of the contextual type
 void destroy(InjectionPoint instance)
          Destroys an instance of the contexual type
 java.lang.Class<InjectionPoint> getType()
           
 java.util.Set<java.lang.reflect.Type> getTypes()
          The client-visible types of a bean
static InjectionPointBean of(ManagerImpl manager)
          Creates an InjectionPoint Web Bean for the injection of the containing bean owning the field, constructor or method for the annotated item
 java.lang.String toString()
           
 
Methods inherited from class org.jboss.webbeans.bean.standard.AbstractStandardBean
getBindings, getDeploymentType, getId, getInjectionPoints, getName, getScopeType, getSpecializedBean, initialize, isNullable, isPrimitive, isProxyable, isSerializable, isSpecializing
 
Methods inherited from class org.jboss.webbeans.bean.RIBean
createId, equals, getManager, hashCode, isDependent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InjectionPointBean

protected InjectionPointBean(ManagerImpl manager)
Method Detail

of

public static InjectionPointBean of(ManagerImpl manager)
Creates an InjectionPoint Web Bean for the injection of the containing bean owning the field, constructor or method for the annotated item

Type Parameters:
T - must be InjectionPoint
S -
Parameters:
field - The annotated member field/parameter for the injection
manager - The RI manager implementation
Returns:
a new bean for this injection point

create

public InjectionPoint create(CreationalContext<InjectionPoint> creationalContext)
Description copied from interface: Contextual
Create a new instance of the contextual type

Parameters:
creationalContext - the creational context in which incompletely initialized contexts may be placed
Returns:
the contextual instance

destroy

public void destroy(InjectionPoint instance)
Description copied from interface: Contextual
Destroys an instance of the contexual type

Parameters:
instance - the insance to destroy

getType

public java.lang.Class<InjectionPoint> getType()
Specified by:
getType in class RIBean<InjectionPoint>

getTypes

public java.util.Set<java.lang.reflect.Type> getTypes()
Description copied from class: Bean
The client-visible types of a bean

Specified by:
getTypes in class Bean<InjectionPoint>
Returns:
the bean types

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.