Examples of InjecteeImpl


Examples of org.glassfish.hk2.utilities.InjecteeImpl

       
        if (requestedType == null) {
            return getServiceHandleImpl(activeDescriptor, null);
        }
       
        return getServiceHandleImpl(activeDescriptor, new InjecteeImpl(requestedType));
    }
View Full Code Here

Examples of org.glassfish.hk2.utilities.InjecteeImpl

        checkState();
       
        ActiveDescriptor<T> ad = internalGetDescriptor(null, contractOrImpl, null, null, qualifiers);
        if (ad == null) return null;
       
        return getServiceHandle(ad, new InjecteeImpl(contractOrImpl));
    }
View Full Code Here

Examples of org.glassfish.hk2.utilities.InjecteeImpl

        checkState();
       
        ActiveDescriptor<T> ad = internalGetDescriptor(null, contractOrImpl, null, unqualified, qualifiers);
        if (ad == null) return null;
       
        return getServiceHandle(ad, new InjecteeImpl(contractOrImpl));
    }
View Full Code Here

Examples of org.glassfish.hk2.utilities.InjecteeImpl

       
        return retVal;
    }
   
    public static Injectee convertInjectionPointToInjectee(InjectionPoint injectionPoint) {
        InjecteeImpl retVal = new InjecteeImpl(injectionPoint.getType());
       
        retVal.setRequiredQualifiers(getHK2Qualifiers(injectionPoint));
        retVal.setParent((AnnotatedElement) injectionPoint.getMember())// Also sets InjecteeClass
       
        Annotated annotated = injectionPoint.getAnnotated();
        if (annotated instanceof AnnotatedField) {
            retVal.setPosition(-1);
        }
        else {
            AnnotatedParameter<?> annotatedParameter = (AnnotatedParameter<?>) annotated;
            retVal.setPosition(annotatedParameter.getPosition());
        }
       
        return retVal;
    }
View Full Code Here

Examples of org.glassfish.hk2.utilities.InjecteeImpl

       
        return retVal;
    }
   
    public static Injectee convertInjectionPointToInjectee(InjectionPoint injectionPoint) {
        InjecteeImpl retVal = new InjecteeImpl(injectionPoint.getType());
       
        retVal.setRequiredQualifiers(getHK2Qualifiers(injectionPoint));
        retVal.setParent((AnnotatedElement) injectionPoint.getMember())// Also sets InjecteeClass
       
        Annotated annotated = injectionPoint.getAnnotated();
        if (annotated instanceof AnnotatedField) {
            retVal.setPosition(-1)
        }
        else {
            AnnotatedParameter<?> annotatedParameter = (AnnotatedParameter<?>) annotated;
            retVal.setPosition(annotatedParameter.getPosition());
        }
       
        return retVal;
    }
View Full Code Here

Examples of org.glassfish.hk2.utilities.InjecteeImpl

            return null;
        }
    });

    private static Injectee getInjectee(final Parameter parameter) {
        return new InjecteeImpl() {

            private final Class<?> rawType = parameter.getRawType();

            {
                setRequiredType(parameter.getType());
View Full Code Here

Examples of org.glassfish.hk2.utilities.InjecteeImpl

       
        if (requestedType == null) {
            return getServiceHandle(activeDescriptor, null);
        }
       
        return getServiceHandle(activeDescriptor, new InjecteeImpl(requestedType));
    }
View Full Code Here

Examples of org.glassfish.hk2.utilities.InjecteeImpl

        checkState();
       
        ActiveDescriptor<T> ad = internalGetDescriptor(null, contractOrImpl, null, null, qualifiers);
        if (ad == null) return null;
       
        return getServiceHandle(ad, new InjecteeImpl(contractOrImpl));
    }
View Full Code Here

Examples of org.glassfish.hk2.utilities.InjecteeImpl

        checkState();
       
        ActiveDescriptor<T> ad = internalGetDescriptor(null, contractOrImpl, null, unqualified, qualifiers);
        if (ad == null) return null;
       
        return getServiceHandle(ad, new InjecteeImpl(contractOrImpl));
    }
View Full Code Here

Examples of org.glassfish.hk2.utilities.InjecteeImpl

        if (requestedType == null) {
            return getServiceHandleImpl(activeDescriptor, null);
        }

        return getServiceHandleImpl(activeDescriptor, new InjecteeImpl(requestedType));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.