com.vladium.emma.rt
Class InstrClassLoadHook

java.lang.Object
  extended by com.vladium.emma.rt.InstrClassLoadHook
All Implemented Interfaces:
IClassLoadHook

public final class InstrClassLoadHook
extends java.lang.Object
implements IClassLoadHook

MT-safety ensured by the containing loader

Author:
Vlad Roubtsov, (C) 2003

Field Summary
private  InstrVisitor m_classDefProcessor
           
private  IInclExclFilter m_filter
           
private  InstrVisitor.InstrResult m_instrResult
           
private  IMetaData m_metadata
           
 
Constructor Summary
InstrClassLoadHook(IInclExclFilter filter, IMetaData mdata)
           
 
Method Summary
 boolean processClassDef(java.lang.String className, byte[] bytes, int length, ByteArrayOStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_filter

private final IInclExclFilter m_filter

m_metadata

private final IMetaData m_metadata

m_classDefProcessor

private final InstrVisitor m_classDefProcessor

m_instrResult

private final InstrVisitor.InstrResult m_instrResult
Constructor Detail

InstrClassLoadHook

public InstrClassLoadHook(IInclExclFilter filter,
                          IMetaData mdata)
Parameters:
filter - [can be null]
Method Detail

processClassDef

public boolean processClassDef(java.lang.String className,
                               byte[] bytes,
                               int length,
                               ByteArrayOStream out)
                        throws java.io.IOException
Specified by:
processClassDef in interface IClassLoadHook
Throws:
java.io.IOException