|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.srcgen4javassist.factory.ImplementationFactory
public class ImplementationFactory
Creates an implementation of an interface.
| Constructor Summary | |
|---|---|
ImplementationFactory(SgClassPool pool)
Constructor with class pool. |
|
ImplementationFactory(SgClassPool pool,
boolean onlyDeclaredMethods)
Constructor with class pool and information about methods to implement. |
|
| Method Summary | |
|---|---|
SgClass |
create(String implPackageName,
String implClassName,
ImplementationFactoryListener listener,
Class<?>... intf)
Creates an implementation of the interface. |
SgClass |
create(String implPackageName,
String implClassName,
SgClass superClass,
SgClass enclosingClass,
ImplementationFactoryListener listener,
Class<?>... intf)
Creates an implementation of the interface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImplementationFactory(SgClassPool pool)
ImplementationFactory(SgClassPool, boolean)
constructor.
pool - Class pool.
public ImplementationFactory(SgClassPool pool,
boolean onlyDeclaredMethods)
pool - Class pool.onlyDeclaredMethods - Should only declared methods be implemented?| Method Detail |
|---|
public final SgClass create(String implPackageName,
String implClassName,
ImplementationFactoryListener listener,
Class<?>... intf)
implPackageName - Name of the implementation package - Cannot be null.implClassName - Name of the implementation class - Cannot be null.listener - Creates the bodies for all methods - Cannot be null.intf - One or more interfaces.
public final SgClass create(String implPackageName,
String implClassName,
SgClass superClass,
SgClass enclosingClass,
ImplementationFactoryListener listener,
Class<?>... intf)
implPackageName - Name of the implementation package - Cannot be null.implClassName - Name of the implementation class - Cannot be null.superClass - Parent class or null.enclosingClass - Outer class or null.listener - Creates the bodies for all methods - Cannot be null.intf - One or more interfaces.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||