org.apache.hivemind.service.impl
Class ClassFactoryImpl

java.lang.Object
  extended by org.apache.hivemind.service.impl.ClassFactoryImpl
All Implemented Interfaces:
ClassFactory

public class ClassFactoryImpl
extends java.lang.Object
implements ClassFactory

Implementation of ClassFactory.

Author:
Howard Lewis Ship

Constructor Summary
ClassFactoryImpl()
           
 
Method Summary
 int getCreatedClassCount()
          Returns the number of classes (and interfaces) actually created.
 ClassFab newClass(java.lang.String name, java.lang.Class superClass)
          Creates a ClassFab object for the given name; the new class is a subclass of the indicated class.
 InterfaceFab newInterface(java.lang.String name)
          Creates a new InterfaceFab object with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassFactoryImpl

public ClassFactoryImpl()
Method Detail

newClass

public ClassFab newClass(java.lang.String name,
                         java.lang.Class superClass)
Description copied from interface: ClassFactory
Creates a ClassFab object for the given name; the new class is a subclass of the indicated class. The new class is public and concrete.

Incompatible change from 1.0: The module parameter has been removed.

Specified by:
newClass in interface ClassFactory
Parameters:
name - the full qualified name of the class to create
superClass - the parent class, which is often java.lang.Object

newInterface

public InterfaceFab newInterface(java.lang.String name)
Description copied from interface: ClassFactory
Creates a new InterfaceFab object with the given name.

Specified by:
newInterface in interface ClassFactory
Since:
1.1

getCreatedClassCount

public int getCreatedClassCount()
Description copied from interface: ClassFactory
Returns the number of classes (and interfaces) actually created.

Specified by:
getCreatedClassCount in interface ClassFactory