org.apache.derby.impl.services.reflect
Class ReflectGeneratedClass

java.lang.Object
  extended by org.apache.derby.impl.services.reflect.LoadedGeneratedClass
      extended by org.apache.derby.impl.services.reflect.ReflectGeneratedClass
All Implemented Interfaces:
GeneratedClass

public final class ReflectGeneratedClass
extends LoadedGeneratedClass


Field Summary
private static GeneratedMethod[] directs
           
private  GCInstanceFactory factory
           
private  java.lang.Class factoryClass
           
private  java.util.Hashtable methodCache
           
 
Constructor Summary
ReflectGeneratedClass(ClassFactory cf, java.lang.Class jvmClass, java.lang.Class factoryClass)
           
 
Method Summary
 GeneratedMethod getMethod(java.lang.String simpleName)
          Obtain a handle to the method with the given name that takes no arguments.
 java.lang.Object newInstance(Context context)
          Return a new object that is an instance of the represented class.
 
Methods inherited from class org.apache.derby.impl.services.reflect.LoadedGeneratedClass
getClassLoaderVersion, getJVMClass, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methodCache

private final java.util.Hashtable methodCache

directs

private static final GeneratedMethod[] directs

factoryClass

private final java.lang.Class factoryClass

factory

private GCInstanceFactory factory
Constructor Detail

ReflectGeneratedClass

public ReflectGeneratedClass(ClassFactory cf,
                             java.lang.Class jvmClass,
                             java.lang.Class factoryClass)
Method Detail

newInstance

public java.lang.Object newInstance(Context context)
                             throws StandardException
Description copied from interface: GeneratedClass
Return a new object that is an instance of the represented class. The object will have been initialised by the no-arg constructor of the represneted class. (Similar to java.lang.Class.newInstance).

Specified by:
newInstance in interface GeneratedClass
Overrides:
newInstance in class LoadedGeneratedClass
Throws:
StandardException - Standard Derby error policy

getMethod

public GeneratedMethod getMethod(java.lang.String simpleName)
                          throws StandardException
Description copied from interface: GeneratedClass
Obtain a handle to the method with the given name that takes no arguments.

Throws:
StandardException - Standard Derby error policy

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.