|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.fikin.ant.types.FactoryLiaison
public abstract class FactoryLiaison
A generic type of JAXP type of factory
Contains ability to instnatiate factory class explicitly
Allows to set features/attributes to it, event ot default one created on Jan 3, 2007
Constructor Summary | |
---|---|
FactoryLiaison()
|
Method Summary | |
---|---|
java.lang.Object |
getFactory()
instantiate a new factory if needed |
protected abstract java.lang.Object |
newFactory()
create new default factory instance |
protected java.lang.Object |
newFactory(java.lang.String fqclassname)
instantiate new factory from given classname |
protected abstract void |
setAttribute(java.lang.Object factory,
Parameter param)
set a single attribute to the factory |
protected void |
setAttributes(java.lang.Object factory,
java.util.Vector attrs)
set all attirbutes to the factory |
void |
setFactoryType(FactoryType factoryType)
assign factory type object used to identify the actual factory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FactoryLiaison()
Method Detail |
---|
public void setFactoryType(FactoryType factoryType)
factoryType
- public java.lang.Object getFactory()
protected abstract java.lang.Object newFactory() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
protected java.lang.Object newFactory(java.lang.String fqclassname) throws org.apache.tools.ant.BuildException
uses Class.findClass()
and Class.newInstance()
to create it
This presumes all factories are simply instantiated
fqclassname
-
org.apache.tools.ant.BuildException
protected void setAttributes(java.lang.Object factory, java.util.Vector attrs)
factory
- attrs
- protected abstract void setAttribute(java.lang.Object factory, Parameter param) throws org.apache.tools.ant.BuildException
factory
- param
-
org.apache.tools.ant.BuildException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |