Package org.jboss.weld.junit
Class MockInterceptor.Builder
- java.lang.Object
-
- org.jboss.weld.junit.MockInterceptor.Builder
-
- Enclosing class:
- MockInterceptor
public static class MockInterceptor.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MockInterceptoraroundConstruct(MockInterceptor.InterceptionCallback callback)MockInterceptoraroundInvoke(MockInterceptor.InterceptionCallback callback)MockInterceptor.BuilderbeanClass(Class<?> beanClass)Allows to specify a bean class of an interceptor.MockInterceptorbuild()MockInterceptor.Buildercallback(MockInterceptor.InterceptionCallback callback)MockInterceptorpostConstruct(MockInterceptor.InterceptionCallback callback)MockInterceptorpreDestroy(MockInterceptor.InterceptionCallback callback)MockInterceptor.Buildertype(InterceptionType type)
-
-
-
Method Detail
-
type
public MockInterceptor.Builder type(InterceptionType type)
- Parameters:
type-- Returns:
- self
-
beanClass
public MockInterceptor.Builder beanClass(Class<?> 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
public MockInterceptor.Builder callback(MockInterceptor.InterceptionCallback callback)
- Parameters:
callback- The interception callback, intercepted bean might benull- Returns:
- self
-
aroundInvoke
public MockInterceptor aroundInvoke(MockInterceptor.InterceptionCallback callback)
-
aroundConstruct
public MockInterceptor aroundConstruct(MockInterceptor.InterceptionCallback callback)
-
postConstruct
public MockInterceptor postConstruct(MockInterceptor.InterceptionCallback callback)
-
preDestroy
public MockInterceptor preDestroy(MockInterceptor.InterceptionCallback callback)
-
build
public MockInterceptor build()
-
-