Package org.jboss.weld.junit
Class MockInterceptor.Builder
java.lang.Object
org.jboss.weld.junit.MockInterceptor.Builder
- Enclosing class:
- MockInterceptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAllows to specify a bean class of an interceptor.build()callback(MockInterceptor.InterceptionCallback callback) type(InterceptionType type)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
- Parameters:
type-- Returns:
- self
-
beanClass
Allows to specify a bean class of an interceptor. This is only required if you later on need to enforce interceptor ordering viaWeld.enableInterceptors(). Note that such ordering corresponds to enabling interceptors via beans.xml (e.g. per bean archive).- Parameters:
beanClass-- Returns:
- self
-
callback
- Parameters:
callback- The interception callback, intercepted bean might benull- Returns:
- self
-
aroundInvoke
-
aroundConstruct
-
postConstruct
-
preDestroy
-
build
-