Interface ProxyBuilder<C,M,R>
- Type Parameters:
C- The class typeM- The method element typeR- The builder result
- All Superinterfaces:
io.micronaut.core.type.Buildable<R>
public interface ProxyBuilder<C,M,R>
extends io.micronaut.core.type.Buildable<R>
Builder abstraction for proxy-oriented bean definitions.
- Since:
- 5.1.0
-
Method Summary
Modifier and TypeMethodDescriptionProxyBuilder<C, M, R> addAroundMethod(M methodElement) Adds a method that should participate in around advice.ProxyBuilder<C, M, R> addIntroductionMethod(M methodElement) Adds an introduction method implemented directly by the proxy.ProxyBuilder<C, M, R> addProxyMethod(M methodElement) Adds a proxied method that delegates to the target.ProxyBuilder<C, M, R> implementInterface(C interfaceElement) Adds an interface to be implemented by the proxy.Methods inherited from interface io.micronaut.core.type.Buildable
build
-
Method Details
-
implementInterface
Adds an interface to be implemented by the proxy.- Parameters:
interfaceElement- The interface element
-
addProxyMethod
Adds a proxied method that delegates to the target.- Parameters:
methodElement- The method to proxy
-
addIntroductionMethod
Adds an introduction method implemented directly by the proxy.- Parameters:
methodElement- The method to introduce
-
addAroundMethod
Adds a method that should participate in around advice.- Parameters:
methodElement- The method element
-