Registry / utility / org-apache-servicemix-bundles-cglib

org-apache-servicemix-bundles-cglib

JSON →
library3.3.0_1javamavenunverified

This OSGi bundle wraps the cglib-nodep 3.3.0 jar for use in OSGi environments.

<dependency> <groupId>org.apache.servicemix.bundles</groupId> <artifactId>org.apache.servicemix.bundles.cglib</artifactId> <version>3.3.0_1</version> </dependency>
INSTALL
IMPORT
SIG · ORG-APACHE-SERVICE
O
org-apache-servicemix-bundles-cglib
utilityjavav3.3.0_1
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

Create a dynamic proxy using cglib Enhancer.

import net.sf.cglib.proxy.Enhancer; import net.sf.cglib.proxy.MethodInterceptor; public class Example { 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"); return proxy.invokeSuper(obj, args1); }); 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.0_1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

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