org.jboss.weld.resources.spi

Interface AnnotationDiscovery

  • All Superinterfaces:
    Service
    All Known Subinterfaces:
    ExtendedAnnotationDiscovery

    Deprecated. 
    This service is deprecated. Implement ClassFileServices instead.

    @Deprecatedpublic interface AnnotationDiscoveryextends Service

    This service allows an integrator to expose an annotation index for a deployment obtained from bytecode scanning. This service is optional. If provided, Weld will use this service to avoid expensive Java Reflection calls.

    Author:
    Jozef Hartinger
    • Method Detail

      • containsAnnotation

        boolean containsAnnotation(Class<?> javaClass,                           Class<? extends Annotation> annotation)
        Deprecated. 

        Indicates whether the given class contains an annotation of the given annotation type.

        The process begins with enumerating a set of annotations which consists of:

        The set is referred to as M hereafter

        The given class is said to contain the given annotation if any of these applies:

        • A member of M is present on the class
        • A member of M, which is annotated with Inherited, is present on a direct or indirect superclass of the given class
        • A member of M is present on a field or method declared by the given class or any direct or indirect superclass of the given class
        • A member of M is present on a parameter of a method declared by the given class or any direct or indirect superclass of the given class
        • A member of M is present on a constructor declared by the given class
        • A member of M is present on a parameter of a constructor declared by the given class

        This is a per-deployment service.

        Parameters:
        javaClass - the given class
        annotation - the given annotation type
        Returns:
        whether the given class contains an annotation of the given annotation type

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