public class FastAnnotatedTypeLoader extends AnnotatedTypeLoader
AnnotatedTypeLoader
. This implementation uses ClassFileServices
to avoid loading application classes that are not
needed for Weld. In addition, this implementation feeds SlimAnnotatedTypeContext
with ClassFileInfo
and resolved ProcessAnnotatedType
observer methods.Constructor and Description |
---|
FastAnnotatedTypeLoader(BeanManagerImpl manager,
ClassTransformer transformer,
org.jboss.weld.resources.spi.ClassFileServices classFileServices,
ContainerLifecycleEvents events,
FastProcessAnnotatedTypeResolver resolver) |
Modifier and Type | Method and Description |
---|---|
protected <T> SlimAnnotatedType<T> |
loadAnnotatedType(Class<T> clazz,
String bdaId) |
<T> SlimAnnotatedTypeContext<T> |
loadAnnotatedType(String className,
String bdaId)
Creates a new
SlimAnnotatedTypeContext instance for a class with the specified class name. |
createContext, loadClass
public FastAnnotatedTypeLoader(BeanManagerImpl manager, ClassTransformer transformer, org.jboss.weld.resources.spi.ClassFileServices classFileServices, ContainerLifecycleEvents events, FastProcessAnnotatedTypeResolver resolver)
public <T> SlimAnnotatedTypeContext<T> loadAnnotatedType(String className, String bdaId)
AnnotatedTypeLoader
SlimAnnotatedTypeContext
instance for a class with the specified class name. This method may return null if there is a problem
loading the class or this class is not needed for further processing (e.g. an annotation or a vetoed class).loadAnnotatedType
in class AnnotatedTypeLoader
className
- the specified class namebdaId
- the identifier of the bean archive this class resides inSlimAnnotatedTypeContext
for a specified class or nullprotected <T> SlimAnnotatedType<T> loadAnnotatedType(Class<T> clazz, String bdaId)
loadAnnotatedType
in class AnnotatedTypeLoader
Copyright © 2016. All rights reserved.