org.objectweb.easybeans.enhancer.interceptors
Class InterceptorClassAdapter.DefinedClass

java.lang.Object
  extended by org.objectweb.easybeans.enhancer.interceptors.InterceptorClassAdapter.DefinedClass
Enclosing class:
InterceptorClassAdapter

public class InterceptorClassAdapter.DefinedClass
extends java.lang.Object

This class is used to define class in classloader.

Author:
Florent Benoit

Field Summary
private  byte[] bytes
          Bytecode of the class.
private  java.lang.String className
          Name of the class to define.
 
Constructor Summary
InterceptorClassAdapter.DefinedClass(java.lang.String className, byte[] bytes)
          Build a new object with a given class name and the bytecode in an array of bytes.
 
Method Summary
 boolean equals(java.lang.Object o)
          Equals.
 byte[] getBytes()
           
 java.lang.String getClassName()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

private java.lang.String className
Name of the class to define.


bytes

private byte[] bytes
Bytecode of the class.

Constructor Detail

InterceptorClassAdapter.DefinedClass

public InterceptorClassAdapter.DefinedClass(java.lang.String className,
                                            byte[] bytes)
Build a new object with a given class name and the bytecode in an array of bytes.

Parameters:
className - name of the class
bytes - bytecode
Method Detail

getBytes

public byte[] getBytes()
Returns:
bytecode of the class

getClassName

public java.lang.String getClassName()
Returns:
the name of the class

equals

public boolean equals(java.lang.Object o)
Equals.

Overrides:
equals in class java.lang.Object
Parameters:
o - object to compare
Returns:
true if given object is the same

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
hashcode