Package org.jvnet.hk2.annotations

Examples of org.jvnet.hk2.annotations.Service


    public static String getAutoAnalyzerName(Class<?> c) {
        synchronized (lock) {
            String retVal = autoAnalyzerNameCache.get(c);
            if (retVal != null) return retVal;
           
            Service s = c.getAnnotation(Service.class);
            if (s == null) return null;
           
            retVal = s.analyzer();
            autoAnalyzerNameCache.put(c, retVal);

            return retVal;
        }
    }
View Full Code Here


        Boolean proxyForSameScope = null;
        String analyzerName;
       
        // Qualifiers naming dance
        String serviceName = null;
        Service serviceAnno = clazz.getAnnotation(Service.class);
        if (serviceAnno != null && !"".equals(serviceAnno.name())) {
            serviceName = serviceAnno.name();
        }
       
        qualifiers = ReflectionHelper.getQualifierAnnotations(clazz);
        name = ReflectionHelper.getNameFromAllQualifiers(qualifiers, clazz);
       
View Full Code Here

    public static String getAutoAnalyzerName(Class<?> c) {
        synchronized (lock) {
            String retVal = autoAnalyzerNameCache.get(c);
            if (retVal != null) return retVal;
           
            Service s = c.getAnnotation(Service.class);
            if (s == null) return null;
           
            retVal = s.analyzer();
            autoAnalyzerNameCache.put(c, retVal);

            return retVal;
        }
    }
View Full Code Here

        if (vi != null) {
            visibility = vi.value();
        }
       
        String classAnalysisName = null;
        Service service = constant.getClass().getAnnotation(Service.class);
        if (service != null) {
            classAnalysisName = service.analyzer();
        }
       
        return new ConstantActiveDescriptor<T>(
                constant,
                contractsAsSet,
View Full Code Here

        if (vi != null) {
            visibility = vi.value();
        }
       
        String classAnalysisName = null;
        Service service = constant.getClass().getAnnotation(Service.class);
        if (service != null) {
            classAnalysisName = service.analyzer();
        }
       
        return new ConstantActiveDescriptor<T>(
                constant,
                contractsAsSet,
View Full Code Here

            super(new AccessCheck("unguarded/" + getCommandName(c), "execute"),"  Unguarded access control on " + c.getClass().getName());
        }
    }
   
    private static String getCommandName(final AdminCommand c) {
        final Service serviceAnno = c.getClass().getAnnotation(Service.class);
        if (serviceAnno == null) {
            return "no-name";
        }
        return serviceAnno.name();
    }
View Full Code Here

     *
     * @param c The class to get the analyzer name from
     * @return The name of the analyzer (null for default)
     */
    public static String getAutoAnalyzerName(Class<?> c) {
        Service s = c.getAnnotation(Service.class);
        if (s == null) return null;
       
        return s.analyzer();
    }
View Full Code Here

            super(new AccessCheck("unguarded/" + getCommandName(c), "execute"),"  Unguarded access control on " + c.getClass().getName());
        }
    }
   
    private static String getCommandName(final AdminCommand c) {
        final Service serviceAnno = c.getClass().getAnnotation(Service.class);
        if (serviceAnno == null) {
            return "no-name";
        }
        return serviceAnno.name();
    }
View Full Code Here

            super(new AccessCheck("unguarded/" + getCommandName(c), "execute"),"  Unguarded access control on " + c.getClass().getName());
        }
    }
   
    private static String getCommandName(final AdminCommand c) {
        final Service serviceAnno = c.getClass().getAnnotation(Service.class);
        if (serviceAnno == null) {
            return "no-name";
        }
        return serviceAnno.name();
    }
View Full Code Here

            super(new AccessCheck("unguarded/" + getCommandName(c), "execute"),"  Unguarded access control on " + c.getClass().getName());
        }
    }
   
    private static String getCommandName(final AdminCommand c) {
        final Service serviceAnno = c.getClass().getAnnotation(Service.class);
        if (serviceAnno == null) {
            return "no-name";
        }
        return serviceAnno.name();
    }
View Full Code Here

TOP

Related Classes of org.jvnet.hk2.annotations.Service

Copyright © 2018 www.massapicom. 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.