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 MockInterceptor
aroundConstruct(MockInterceptor.InterceptionCallback callback)
MockInterceptor
aroundInvoke(MockInterceptor.InterceptionCallback callback)
MockInterceptor.Builder
beanClass(Class<?> beanClass)
Allows to specify a bean class of an interceptor.MockInterceptor
build()
MockInterceptor.Builder
callback(MockInterceptor.InterceptionCallback callback)
MockInterceptor
postConstruct(MockInterceptor.InterceptionCallback callback)
MockInterceptor
preDestroy(MockInterceptor.InterceptionCallback callback)
MockInterceptor.Builder
type(jakarta.enterprise.inject.spi.InterceptionType type)
-
-
-
Method Detail
-
type
public MockInterceptor.Builder type(jakarta.enterprise.inject.spi.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()
-
-