Package org.jboss.weld.bean
Class InterceptorImpl<T>
java.lang.Object
org.jboss.weld.util.bean.ForwardingBeanAttributes<T>
org.jboss.weld.bean.CommonBean<T>
org.jboss.weld.bean.RIBean<T>
org.jboss.weld.bean.AbstractBean<T,Class<T>>
org.jboss.weld.bean.AbstractClassBean<T>
org.jboss.weld.bean.ManagedBean<T>
org.jboss.weld.bean.InterceptorImpl<T>
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Contextual<T>,jakarta.enterprise.inject.spi.Bean<T>,jakarta.enterprise.inject.spi.BeanAttributes<T>,jakarta.enterprise.inject.spi.Interceptor<T>,jakarta.enterprise.inject.spi.PassivationCapable,ClassBean<T>,DecorableBean<T>,WeldBean<T>
public class InterceptorImpl<T>
extends ManagedBean<T>
implements jakarta.enterprise.inject.spi.Interceptor<T>
- Author:
- Marius Bogoevici
-
Field Summary
Fields inherited from class org.jboss.weld.bean.AbstractClassBean
annotatedType, enhancedAnnotatedItem, invokableMethodsFields inherited from class org.jboss.weld.bean.AbstractBean
typeFields inherited from class org.jboss.weld.bean.RIBean
beanManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInterceptorImpl(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, BeanManagerImpl beanManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidIn particular cases, the deployer must perform some initialization operations only after all beans have been deployed (e.g. for initializing decorators taking into account the possibility of having custom decorators which are deployed through portable extensions)intercept(jakarta.enterprise.inject.spi.InterceptionType type, T instance, jakarta.interceptor.InvocationContext ctx) booleanintercepts(jakarta.enterprise.inject.spi.InterceptionType type) booleanstatic <T> InterceptorImpl<T>of(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, BeanManagerImpl beanManager) toString()Methods inherited from class org.jboss.weld.bean.ManagedBean
checkBeanImplementation, checkType, create, destroy, internalInitialize, isInterceptionCandidate, isPassivationCapableBean, isPassivationCapableDependency, isProxyable, setProducer, specializeMethods inherited from class org.jboss.weld.bean.AbstractClassBean
cleanupAfterBoot, getAnnotated, getDecorators, getEnhancedAnnotated, getInjectionPoints, getInjectionTarget, getInterceptors, getProducer, hasDecorators, hasInterceptors, initType, preSpecialize, setInjectionTarget, setProducerMethods inherited from class org.jboss.weld.bean.AbstractBean
checkSpecialization, getSpecializedBeans, getType, isDependent, isIgnoreFinalMethods, isProxyRequired, isSpecializing, postSpecialize, preInitialize, setIgnoreFinalMethodsMethods inherited from class org.jboss.weld.bean.RIBean
getBeanClass, getBeanManager, getContextualInstanceStrategy, getQualifierInstances, initialize, isNormalScoped, setAttributesMethods inherited from class org.jboss.weld.bean.CommonBean
attributes, equals, getId, getIdentifier, hashCode, unwrapMethods inherited from class org.jboss.weld.util.bean.ForwardingBeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.enterprise.inject.spi.Bean
getBeanClass, getInjectionPointsMethods inherited from interface jakarta.enterprise.inject.spi.BeanAttributes
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternativeMethods inherited from interface org.jboss.weld.bean.ClassBean
getBeanManagerMethods inherited from interface jakarta.enterprise.context.spi.Contextual
create, destroyMethods inherited from interface jakarta.enterprise.inject.spi.PassivationCapable
getIdMethods inherited from interface org.jboss.weld.bean.WeldBean
getIdentifier, getPriority
-
Constructor Details
-
InterceptorImpl
protected InterceptorImpl(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, BeanManagerImpl beanManager)
-
-
Method Details
-
of
public static <T> InterceptorImpl<T> of(jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, EnhancedAnnotatedType<T> type, BeanManagerImpl beanManager) -
getInterceptorBindings
- Specified by:
getInterceptorBindingsin interfacejakarta.enterprise.inject.spi.Interceptor<T>
-
getInterceptorMetadata
-
intercept
public Object intercept(jakarta.enterprise.inject.spi.InterceptionType type, T instance, jakarta.interceptor.InvocationContext ctx) - Specified by:
interceptin interfacejakarta.enterprise.inject.spi.Interceptor<T>
-
intercepts
public boolean intercepts(jakarta.enterprise.inject.spi.InterceptionType type) - Specified by:
interceptsin interfacejakarta.enterprise.inject.spi.Interceptor<T>
-
isSerializable
public boolean isSerializable() -
initializeAfterBeanDiscovery
public void initializeAfterBeanDiscovery()Description copied from class:RIBeanIn particular cases, the deployer must perform some initialization operations only after all beans have been deployed (e.g. for initializing decorators taking into account the possibility of having custom decorators which are deployed through portable extensions)- Overrides:
initializeAfterBeanDiscoveryin classManagedBean<T>
-
toString
- Overrides:
toStringin classManagedBean<T>
-