Code Generation Library

  •        0

Byte Code Generation Library is high level API to generate and transform JAVA byte code. It is used by AOP, testing, data access frameworks to generate dynamic proxy objects and intercept field access.



comments powered by Disqus

Related Projects

Cglib-wrappers - Easy wrappers, partial implementations, and multiple inheritance with CGLIB

Easy wrappers, partial implementations, and multiple inheritance with CGLIBThe following articles are addressed to experienced developers who are familiar closely with Java Reflection but feel that it is not fully meet their requirements. If you don't feel uncomfortable using standard Java features, you'd probably should leave your code as it is, don't forget the KISS principle. Introduction To CGLIB Part 1: Wrappers Part 2: Default Implementations Part 3: Partial Implementations Part 4: Mixins

Groovy-restlet - Groovy DSL for restlet

Groovy Restlet is a simple Groovy DSL for constructing Restlet application. GroovyRestlet is not hosted by Groovy as a Groovy Module, please check for more information RequirementCurrent build 0.1.0-SNAPSHOT based on following technologies: Restlet 1.1-SNAPSHOT Slf4J 1.4.3 CGLib 2.1_3 Spring 2.5 commons-lang 2.3 Simple UsageCreate an instance of GroovyRestlet first. GroovyRestlet gr = new GroovyRestlet()If you want Spring support, provide an

Gclassloader - GClassLoader

GClassLoaderGClassLoader is a configurable, dynamic and extensible custom classloader that loads java classes directly from Jar files and other sources. RequirementsThe following requirements/dependencies has to be met for using GClassloader GClassLoader requires JDK 1.5 or later CGlib Servlet API for an Utility Class that is used to resolve Web App Paths Objenesis Log4j UsageJarClassLoader gcl = new JarClassLoader(); //Loading classes from different sources gcl.add("myjar.jar"); gcl.add(new URL

Cheesymock - Mock objects as simple as possible. But no simpler.

Simple mock objects for javaCheesyMock is a small library for creating Java mock objects for use in your unit tests with a minimal amount of fuss. For example, to quickly create a dummy HttpServletRequest, you only need to type HttpServletRequest req = Cheesy.mock(HttpServletRequest.class);or, to create an InputStream that always throws an exception when you try to close it (which I've actually found helpful when writing some tests): InputStream is = Cheesy.mock(InputStream.class, new Object() {

Xstream-for-beans - Enables xstream for Beans and managed Pojos (eg. Hibernate or CGlib)

ObjectivesThis project provides implementation of mappers and converters that enhance XStream on following aspects: Serialize objects as they are exposed by getters and setters. XStream features available for fields shall work for properties defined for getter/setter proprerties. Sanitize serialization of managed objects: automatically omit irrelevant fields and class information. Handle "offline" fields and proxy objects. Further informationPlease refer to the wiki pages for more information: T

Proxy4j - Dynamic Proxying and Remoting in Java

Proxy4J is designed for creating dynamic proxies in Java with a high degree of flexibility, both in the implementation of the proxying itself as well as in the style of the proxy. Currently Proxy4J supports the following proxy styles: Virtual Proxies. Also known as delegation proxies, these proxies simply pass the method invocation directly to the "real subject", which may have some indirection in how it is created or fetched (e.g. the classic lazy-loading proxy). Invocation Handlers. These are

Poly2tri-c - C+GLib port of poly2tri - A 2D constrained Delaunay triangulation library

This is a C port of the poly2tri library - a fast and powerful library for computing 2D constrained Delaunay triangulations. Instead of the standard C++ library (which included some utilities and template-based data structures), this port depends on GLib for it's data structures and some of it's utilities. This library will also have an additional feature the source didn't have - it will have an implementation of Chew's second algorithm for mesh refinement. This port was done as a part of Google

Easy-stub - EasyStub - a simple stubbing framework for java

EasyStub is a simple stubbing framework for Java. It was inspired by the EasyMock framework. EasyMock is great for mocking, but a little verbose for my tastes when using it for stubbing classes. EasyStub aims to fix that! With EasyStub, much of the syntax is like EasyMock. You create a stub by calling: EasyStub.createStub(ClassToStub.class);and register a stub return like: EasyStub.stub(stubInstance.aMethodOnClass()).withValue("a value to return");Unlike EasyMock, no replaying or verifying of st