Package org.jboss.weld.resources.spi
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 aClassLoader
and examining the result using Java reflection.- Author:
- Jozef Hartinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassFileInfo
getClassFileInfo(String className)
Obtains Java class metadata for a class identified with the specified class name.-
Methods inherited from interface org.jboss.weld.bootstrap.api.BootstrapService
cleanupAfterBoot
-
-
-
-
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
-
-