Interface ClassFileServices

  • All Superinterfaces:
    BootstrapService, Service

    public interface ClassFileServices
    extends BootstrapService
    An optional service that provides fast access to Java class metadata without the need to load the given class. An integrator may use this service to expose its bytecode scanning facility. If a service implementation is present, Weld uses it to optimize the bootstrap process. The ClassFileServices implementation is used to determine whether a given Java class fulfills CDI bean requirements instead of loading the class using a ClassLoader and examining the result using Java reflection.
    Author:
    Jozef Hartinger
    • Method Detail

      • getClassFileInfo

        ClassFileInfo getClassFileInfo​(String className)
        Obtains Java class metadata for a class identified with the specified class name.
        Parameters:
        className - the specified class name
        Returns:
        the class metadata
        Throws:
        ClassFileInfoException - if the service implementation is not able to obtain metadata of a class with the specified name