Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source
   * Copyright 2010, 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
  * http://www.apache.org/licenses/LICENSE-2.0
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package org.jboss.weld.injection;
 
 import static org.jboss.weld.util.collections.WeldCollections.immutableGuavaSet;
 import static org.jboss.weld.util.reflection.Reflections.cast;
 
 import java.util.List;
 import java.util.Set;
 
 
 
 abstract class AbstractCallableInjectionPoint<T, X, S extends Memberimplements WeldInjectionPointAttributes<T, S> {
 
     private final Bean<?> declaringBean;
     private final List<ParameterInjectionPoint<?, X>> parameters;
     private final Set<InjectionPointinjectionPoints;
 
     protected AbstractCallableInjectionPoint(EnhancedAnnotatedCallable<T, X, S> callableBean<?> declaringBeanClass<?> declaringComponentClassboolean observerOrDisposerInjectionPointFactory factoryBeanManagerImpl manager) {
         this. = declaringBean;
         this. = factory.getParameterInjectionPoints(callabledeclaringBeandeclaringComponentClassmanagerobserverOrDisposer);
         if (observerOrDisposer) {
             this. = cast(immutableGuavaSet(InjectionPoints.filterOutSpecialParameterInjectionPoints()));
         } else {
             this. = new ListToSet<InjectionPoint>() {
                 @Override
                 protected List<InjectionPointdelegate() {
                     return cast(getParameterInjectionPoints());
                 }
             };
         }
     }
 
     @Override
     public Type getType() {
         return getAnnotated().getBaseType();
     }
 
     @Override
     public Set<AnnotationgetQualifiers() {
         throw new UnsupportedOperationException();
     }
 
     @Override
     public Bean<?> getBean() {
         return ;
     }
 
     @Override
     public boolean isDelegate() {
         return false;
     }
 
     @Override
     public boolean isTransient() {
         return false;
     }
 
     @Override
     public <A extends Annotation> A getQualifier(Class<A> annotationType) {
         A qualifier = getAnnotated().getAnnotation(annotationType);
         if (getQualifiers().contains(qualifier)) {
             return qualifier;
         } else {
             return null;
         }
     }
 
     @Override
     public Member getMember() {
         return getAnnotated().getJavaMember();
    }
    @Override
    public abstract AnnotatedCallable<X> getAnnotated();
        return ;
    }

    
Returns a set of javax.enterprise.inject.spi.InjectionPoint instances of this constructor/method. This set never contains a org.jboss.weld.injection.attributes.SpecialParameterInjectionPoint and is therefore suitable for use outside of Weld. The returned set is immutable.
        return ;
    }
    @Override
    public boolean equals(Object obj) {
        if (obj instanceof AbstractCallableInjectionPoint<?, ?, ?>) {
            AbstractCallableInjectionPoint<?, ?, ?> ip = (AbstractCallableInjectionPoint<?, ?, ?>) obj;
            if (AnnotatedTypes.compareAnnotatedCallable(getAnnotated(), ip.getAnnotated())) {
                return true;
            }
        }
        return false;
    }
    @Override
    public int hashCode() {
        return getAnnotated().hashCode();
    }
    @Override
    public String toString() {
        return getAnnotated().toString();
    }
New to GrepCode? Check out our FAQ X