Class CrdbProxyFactory
java.lang.Object
com.cockroachlabs.crdb.proxy.CrdbProxyFactory
Produces enhanced instances of annotated targets.
- If the target implements at least one interface, a JDK
Proxyis created over those interfaces and delegates to the original instance. Note: the returned object is the interface type, so assign it to an interface-typed reference. - Otherwise a ByteBuddy subclass of the concrete class is generated; the target's field state is copied into the new instance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classByteBuddy interception target. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Tenhance(T target) Enhancetarget, choosing the proxy strategy automatically.
-
Constructor Details
-
CrdbProxyFactory
public CrdbProxyFactory() -
CrdbProxyFactory
-
-
Method Details
-
enhance
public <T> T enhance(T target) Enhancetarget, choosing the proxy strategy automatically.
-