public class FastProcessAnnotatedTypeResolver
extends org.jboss.weld.bootstrap.api.helpers.AbstractBootstrapService
ClassFileServices
for resolution and thus entirely avoids loading the classes which speeds up
especially large deployments.
Although this resolver covers most of the possible PAT observer method types, there are several cases when ClassFileInfo
used by this resolver is not
sufficient to perform observer method resolution correctly. If such observer method is present in the deployment, the constructor of this class throws
UnsupportedObserverMethodException
. This exception is expected to be caught by the deployer and observer method resolution using the default
TypeSafeObserverResolver
is performed instead.Constructor and Description |
---|
FastProcessAnnotatedTypeResolver(Iterable<javax.enterprise.inject.spi.ObserverMethod<?>> observers) |
Modifier and Type | Method and Description |
---|---|
void |
cleanupAfterBoot() |
Set<ExtensionObserverMethodImpl<?,?>> |
resolveProcessAnnotatedTypeObservers(org.jboss.weld.resources.spi.ClassFileServices classFileServices,
String className)
Resolves a set of
ProcessAnnotatedType observer methods for the specified class. |
public FastProcessAnnotatedTypeResolver(Iterable<javax.enterprise.inject.spi.ObserverMethod<?>> observers) throws org.jboss.weld.bootstrap.UnsupportedObserverMethodException
org.jboss.weld.bootstrap.UnsupportedObserverMethodException
public Set<ExtensionObserverMethodImpl<?,?>> resolveProcessAnnotatedTypeObservers(org.jboss.weld.resources.spi.ClassFileServices classFileServices, String className)
ProcessAnnotatedType
observer methods for the specified class. If no observer methods are resolved, an
empty set is returned.className
- the specified class namepublic void cleanupAfterBoot()
Copyright © 2016. All rights reserved.