org.logicalcobwebs.cglib.core
Class KeyFactory.Generator

java.lang.Object
  extended by org.logicalcobwebs.cglib.core.AbstractClassGenerator
      extended by org.logicalcobwebs.cglib.core.KeyFactory.Generator
All Implemented Interfaces:
ClassGenerator
Enclosing class:
KeyFactory

public static class KeyFactory.Generator
extends AbstractClassGenerator


Nested Class Summary
 
Nested classes/interfaces inherited from class org.logicalcobwebs.cglib.core.AbstractClassGenerator
AbstractClassGenerator.Source
 
Field Summary
private  int constant
           
private  Customizer customizer
           
private  java.lang.Class keyInterface
           
private  int multiplier
           
private static AbstractClassGenerator.Source SOURCE
           
 
Constructor Summary
KeyFactory.Generator()
           
 
Method Summary
 KeyFactory create()
           
protected  java.lang.Object firstInstance(java.lang.Class type)
           
 void generateClass(ClassVisitor v)
           
protected  java.lang.ClassLoader getDefaultClassLoader()
           
private  java.lang.String getFieldName(int arg)
           
protected  java.lang.Object nextInstance(java.lang.Object instance)
           
 void setCustomizer(Customizer customizer)
           
 void setHashConstant(int constant)
           
 void setHashMultiplier(int multiplier)
           
 void setInterface(java.lang.Class keyInterface)
           
 
Methods inherited from class org.logicalcobwebs.cglib.core.AbstractClassGenerator
create, getClassLoader, getClassName, setClassLoader, setNamePrefix, setNamingPolicy, setStrategy, setUseCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCE

private static final AbstractClassGenerator.Source SOURCE

keyInterface

private java.lang.Class keyInterface

customizer

private Customizer customizer

constant

private int constant

multiplier

private int multiplier
Constructor Detail

KeyFactory.Generator

public KeyFactory.Generator()
Method Detail

getDefaultClassLoader

protected java.lang.ClassLoader getDefaultClassLoader()
Specified by:
getDefaultClassLoader in class AbstractClassGenerator

setCustomizer

public void setCustomizer(Customizer customizer)

setInterface

public void setInterface(java.lang.Class keyInterface)

create

public KeyFactory create()

setHashConstant

public void setHashConstant(int constant)

setHashMultiplier

public void setHashMultiplier(int multiplier)

firstInstance

protected java.lang.Object firstInstance(java.lang.Class type)
Specified by:
firstInstance in class AbstractClassGenerator

nextInstance

protected java.lang.Object nextInstance(java.lang.Object instance)
Specified by:
nextInstance in class AbstractClassGenerator

generateClass

public void generateClass(ClassVisitor v)

getFieldName

private java.lang.String getFieldName(int arg)