org.jboss.weld.injection

Class MethodInjectionPoint<T,X>

  • Type Parameters:
    T - the return type of the method
    X - the type of the class that declared the method
    All Implemented Interfaces:
    InjectionPoint, WeldInjectionPointAttributes<T,Method>


    public abstract class MethodInjectionPoint<T,X>extends Object
    Wraps a method whose parameters may be injected.
    Author:
    Jozef Hartinger
    • Method Detail

      • invoke

        public abstract T invoke(Object receiver,                         Object specialValue,                         BeanManagerImpl manager,                         CreationalContext<?> ctx,                         Class<? extends RuntimeException> exceptionTypeToThrow)
        Invokes the method.
        Parameters:
        receiver - the instance to receive the method invocation or null if this is a static method
        specialValue - value to be passed to the special parameter (observer or disposer parameter) or null if the method is not an observer or disposer
        manager - the bean manager
        ctx - the creational context
        exceptionTypeToThrow - exception type to be used to wrap potential exceptions within
        Returns:
        the value returned from the method
      • getType

        public Type getType()
        Description copied from interface: InjectionPoint
        Get the required type of injection point.
        Specified by:
        getType in interface InjectionPoint
        Returns:
        the required type
      • getBean

        public Bean<?> getBean()
        Description copied from interface: InjectionPoint
        Get the Bean object representing the bean that defines the injection point. If the injection point does not belong to a bean, return a null value.
        Specified by:
        getBean in interface InjectionPoint
        Returns:
        the Bean object representing bean that defines the injection point, of null if the injection point does not belong to a bean
      • isDelegate

        public boolean isDelegate()
        Description copied from interface: InjectionPoint
        Determines if the injection point is a decorator delegate injection point.
        Specified by:
        isDelegate in interface InjectionPoint
        Returns:
        true if the injection point is a decorator delegate injection point, and false otherwise
      • isTransient

        public boolean isTransient()
        Description copied from interface: InjectionPoint
        Determines if the injection is a transient field.
        Specified by:
        isTransient in interface InjectionPoint
        Returns:
        true if the injection point is a transient field, and false otherwise
      • getMember

        public Member getMember()
        Description copied from interface: InjectionPoint
        Get the Field object in the case of field injection, the Method object in the case of method parameter injection or the Constructor object in the case of constructor parameter injection.
        Specified by:
        getMember in interface InjectionPoint
        Returns:
        the member

Copyright © 2015. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14