public static class MockInterceptor.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and 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(javax.enterprise.inject.spi.InterceptionType type) |
public MockInterceptor.Builder type(javax.enterprise.inject.spi.InterceptionType type)
type - public MockInterceptor.Builder beanClass(Class<?> beanClass)
Weld.enableInterceptors(). Note that such ordering corresponds to enabling interceptors via beans.xml (e.g. per bean archive).beanClass - public MockInterceptor.Builder callback(MockInterceptor.InterceptionCallback callback)
function - The interception callback, intercepted bean might be nullpublic MockInterceptor aroundInvoke(MockInterceptor.InterceptionCallback callback)
public MockInterceptor aroundConstruct(MockInterceptor.InterceptionCallback callback)
public MockInterceptor postConstruct(MockInterceptor.InterceptionCallback callback)
public MockInterceptor preDestroy(MockInterceptor.InterceptionCallback callback)
public MockInterceptor build()
Copyright © 2019. All rights reserved.