public class ServiceHandlerExtension extends Object implements javax.enterprise.inject.spi.Extension
Modifier and Type | Field and Description |
---|---|
protected Set<javax.enterprise.inject.spi.Bean<?>> |
beans |
protected boolean |
enabled |
protected Set<Throwable> |
problems |
Constructor and Description |
---|
ServiceHandlerExtension() |
Modifier and Type | Method and Description |
---|---|
protected <X> void |
buildBean(javax.enterprise.inject.spi.AnnotatedType<X> annotatedType,
javax.enterprise.inject.spi.BeanManager beanManager,
Class<?> handlerClass)
Builds the bean that will do the intercepting / proxying.
|
protected <X> Class<?> |
getHandlerClass(javax.enterprise.inject.spi.ProcessAnnotatedType<X> event)
Gets the handler type either from the ServiceHandlerType annotation or the
ServiceHandler annotation.
|
protected boolean |
isEnabled()
Determines if proxying is available, a prerequisite for this feature
|
protected final Set<javax.enterprise.inject.spi.Bean<?>> beans
protected final boolean enabled
protected boolean isEnabled()
protected <X> Class<?> getHandlerClass(javax.enterprise.inject.spi.ProcessAnnotatedType<X> event)
X
- Type being processedevent
- the process annotated type event.protected <X> void buildBean(javax.enterprise.inject.spi.AnnotatedType<X> annotatedType, javax.enterprise.inject.spi.BeanManager beanManager, Class<?> handlerClass)
X
- class, the class that will be proxying the interfaces.event
- the process annotated type event.beanManager
- the bean manager.handlerClass
- the class of the service handlerRuntimeException
- If the ServiceHandler proxy cannot be createdCopyright © 2008–2013 Seam Framework. All rights reserved.