public class InterceptorBuilder extends Object
Constructor and Description |
---|
InterceptorBuilder() |
Modifier and Type | Method and Description |
---|---|
Interceptor |
build()
Builds the final version of
Interceptor intercepting all methods recorded via
interceptInvocation(Class, Interceptor) . |
<T> T |
interceptInvocation(Class<T> type,
Interceptor interceptor)
Returns proxy for given type which execution causes remembering what method should be intercepted by given interceptor.
|
public <T> T interceptInvocation(Class<T> type, Interceptor interceptor)
type
- the type of the generated proxyinterceptor
- the interceptor for intercepting methods executed on generated proxypublic Interceptor build()
Interceptor
intercepting all methods recorded via
interceptInvocation(Class, Interceptor)
.Interceptor
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.