Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * JBoss, Home of Professional Open Source
  * Copyright 2014, Red Hat, Inc., and individual contributors
  * by the @authors tag. See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
package org.jboss.weld.injection;
Wraps a method whose parameters may be injected.

<T> the return type of the method
<X> the type of the class that declared the method
Jozef Hartinger
public abstract class MethodInjectionPoint<T, X> extends AbstractCallableInjectionPoint<T, X, Method> {
    protected MethodInjectionPoint(EnhancedAnnotatedCallable<T, X, MethodcallableBean<?> declaringBeanClass<?> declaringComponentClass,
            boolean observerOrDisposerInjectionPointFactory factoryBeanManagerImpl manager) {

Invokes the method.

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
the value returned from the method
    public abstract T invoke(Object receiverObject specialValueBeanManagerImpl managerCreationalContext<?> ctxClass<? extends RuntimeExceptionexceptionTypeToThrow);
    abstract T invoke(Object receiverObject[] parametersClass<? extends RuntimeExceptionexceptionTypeToThrow);
    public abstract AnnotatedMethod<X> getAnnotated();
New to GrepCode? Check out our FAQ X