org.apache.hivemind.service
Interface ClassFactory

All Known Implementing Classes:
ClassFactoryImpl

public interface ClassFactory

Service used when dynamically creating new classes.

Author:
Howard Lewis Ship

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.
 

Method Detail

newClass

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. The new class is public and concrete.

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

Parameters:
name - the full qualified name of the class to create
superClass - the parent class, which is often java.lang.Object

newInterface

InterfaceFab newInterface(java.lang.String name)
Creates a new InterfaceFab object with the given name.

Since:
1.1

getCreatedClassCount

int getCreatedClassCount()
Returns the number of classes (and interfaces) actually created.

Since:
1.2


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.