|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.spy.pool.PoolFiller
The PoolFiller class is used to populate entries in a pool. It's an abstract class because the getObject() method must be implemented to build the PoolAbles for whatever types of objects you're pooling.
| Constructor Summary | |
PoolFiller()
Get an unitialized PoolFiller object. |
|
PoolFiller(String name,
SpyConfig conf)
Get a PoolFiller object. |
|
| Method Summary | |
protected String |
debugName()
Get the debug name (including the pool's hash). |
SpyConfig |
getConfig()
Get the config this uses. |
String |
getName()
Get the name of this filler. |
abstract PoolAble |
getObject()
Get an object for the pool. |
protected int |
getPoolHash()
Get the hash of the pool this filler is filling. |
protected String |
getProperty(String what)
|
protected String |
getProperty(String what,
String def)
|
protected int |
getPropertyInt(String what,
int def)
|
void |
setConfig(SpyConfig conf)
Set the config file to use. |
void |
setName(String name)
Set the name to be used for config lookups. |
void |
setPoolHash(int to)
Set the hash to use for debug data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PoolFiller()
public PoolFiller(String name,
SpyConfig conf)
name - the name to be used for config lookupsconf - the config to use| Method Detail |
public void setPoolHash(int to)
protected int getPoolHash()
protected String debugName()
public void setName(String name)
public String getName()
public void setConfig(SpyConfig conf)
public SpyConfig getConfig()
public abstract PoolAble getObject()
throws PoolException
PoolException - if it can't get a new object
protected int getPropertyInt(String what,
int def)
protected String getProperty(String what,
String def)
protected String getProperty(String what)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||