Package org.jboss.weld.resources.spi
Interface ClassFileServices
- All Superinterfaces:
BootstrapService,Service
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 Summary
Modifier and TypeMethodDescriptiongetClassFileInfo(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 Details
-
getClassFileInfo
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
-