org.fuin.srcgen4javassist
Class SgClassPool

java.lang.Object
  extended by org.fuin.srcgen4javassist.SgClassPool

public final class SgClassPool
extends java.lang.Object

Stores references of all known model classes.


Constructor Summary
SgClassPool()
          Default constructor.
 
Method Summary
 SgClass get(java.lang.String className)
          Returns a class from the internal cache.
 void put(SgClass clasz)
          Adds a class to the internal cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SgClassPool

public SgClassPool()
Default constructor.

Method Detail

get

public final SgClass get(java.lang.String className)
Returns a class from the internal cache.

Parameters:
className - Class to find - Cannot be null.
Returns:
Class or null if it's not found.

put

public final void put(SgClass clasz)
Adds a class to the internal cache.

Parameters:
clasz - Class to add - Cannot be null.


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.