Registry / utility / cglib-nodep

cglib-nodep

JSON →
library3.3.0javamavenunverified

cglib-nodep is a standalone version of cglib without external dependencies, used for runtime code generation.

<dependency> <groupId>cglib</groupId> <artifactId>cglib-nodep</artifactId> <version>3.3.0</version> </dependency>
INSTALL
IMPORT
SIG · CGLIB-NODEP
C
cglib-nodep
utilityjavav3.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Enhancer
net.sf.cglib.proxy.Enhancer

Demonstrates creating a dynamic proxy using cglib-nodep Enhancer.

import net.sf.cglib.proxy.Enhancer; import net.sf.cglib.proxy.MethodInterceptor; public class CglibNoDepExample { public static void main(String[] args) { Enhancer enhancer = new Enhancer(); enhancer.setSuperclass(MyClass.class); enhancer.setCallback((MethodInterceptor) (obj, method, args1, proxy) -> { System.out.println("Before method"); Object result = proxy.invokeSuper(obj, args1); System.out.println("After method"); return result; }); MyClass proxy = (MyClass) enhancer.create(); proxy.someMethod(); } } class MyClass { public void someMethod() { System.out.println("Original method"); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.3.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
cglib-nodep — mvn dependency:get cglib-nodep · libregistry