|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.dpml.lang.Part net.dpml.component.Composition
Component composition.
Field Summary |
Fields inherited from class net.dpml.lang.Part |
PART_FOOTER, PART_HEADER, PART_SCHEMA_URN, VALUE_ENCODER, XML_HEADER |
Constructor Summary | |
Composition(Logger logger,
Info info,
Classpath classpath,
Controller controller,
Directive directive,
String label)
Creation of a new abstract composition instance. |
Method Summary | |
boolean |
equals(Object other)
Return true if this object is equal to the supplied object. |
protected Object |
getContent(Class c)
Return the part content or null if the result type is unresolvable relative to the supplied class argument. |
Controller |
getController()
Return the assigned controller. |
Directive |
getDirective()
Get the deployment directive. |
Model |
getModel()
Get the deployment model. |
int |
hashCode()
Return the hashcode for the instance. |
Object |
instantiate(Object[] args)
Instantiate a value. |
Component |
newComponent()
Create and return a new component using the deplyment model established by the part. |
Methods inherited from class net.dpml.lang.Part |
encode, encodeStrategy, getClassLoader, getClasspath, getContent, getContent, getInfo, getLogger, load, load |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Composition(Logger logger, Info info, Classpath classpath, Controller controller, Directive directive, String label) throws IOException
logger
- the assigned logging channelinfo
- the part info descriptorclasspath
- the part classpath definitioncontroller
- the part controllerdirective
- the part deployment strategy directivelabel
- debug label
IOException
- if an I/O error occursMethod Detail |
public Controller getController()
protected Object getContent(Class c) throws IOException
getContent
in class Part
c
- the content class
IOException
- if an IO error occurspublic Directive getDirective()
public Model getModel()
public Component newComponent()
public Object instantiate(Object[] args) throws Exception
instantiate
in class Part
args
- supplimentary arguments
Exception
- if a deployment error occurspublic boolean equals(Object other)
equals
in class Part
other
- the object to evaluate
public int hashCode()
hashCode
in class Part
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |