The Spring Framework

org.springframework.instrument.classloading.oc4j
Class OC4JClassPreprocessorAdapter

java.lang.Object
  extended by org.springframework.instrument.classloading.oc4j.OC4JClassPreprocessorAdapter
All Implemented Interfaces:
oracle.classloader.util.ClassPreprocessor

 class OC4JClassPreprocessorAdapter
extends Object
implements oracle.classloader.util.ClassPreprocessor

ClassPreprocessor adapter for OC4J, delegating to a standard JDK ClassFileTransformer underneath.

Many thanks to Mike Keith for his assistance.

Since:
2.0
Author:
Costin Leau

Constructor Summary
OC4JClassPreprocessorAdapter(ClassFileTransformer transformer)
          Creates a new instance of the OC4JClassPreprocessorAdapter class.
 
Method Summary
 oracle.classloader.util.ClassPreprocessor initialize(ClassLoader loader)
           
 byte[] processClass(String className, byte[] origClassBytes, int offset, int length, ProtectionDomain pd, ClassLoader loader)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OC4JClassPreprocessorAdapter

public OC4JClassPreprocessorAdapter(ClassFileTransformer transformer)
Creates a new instance of the OC4JClassPreprocessorAdapter class.

Parameters:
transformer - the ClassFileTransformer to be adapted (must not be null)
Throws:
IllegalArgumentException - if the supplied transformer is null
Method Detail

initialize

public oracle.classloader.util.ClassPreprocessor initialize(ClassLoader loader)
Specified by:
initialize in interface oracle.classloader.util.ClassPreprocessor

processClass

public byte[] processClass(String className,
                           byte[] origClassBytes,
                           int offset,
                           int length,
                           ProtectionDomain pd,
                           ClassLoader loader)
Specified by:
processClass in interface oracle.classloader.util.ClassPreprocessor

toString

public String toString()
Overrides:
toString in class Object

The Spring Framework

Copyright © 2002-2006 The Spring Framework.