|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.pool.PoolFiller
public abstract class 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 nm,
SpyConfig cnf)
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 cnf)
Set the config file to use. |
void |
setName(String nm)
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 nm,
SpyConfig cnf)
nm - the name to be used for config lookupscnf - the config to use| Method Detail |
|---|
public void setPoolHash(int to)
protected int getPoolHash()
protected String debugName()
public void setName(String nm)
public String getName()
public void setConfig(SpyConfig cnf)
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 | |||||||||