net.dpml.metro.data
Class DefaultComposition

java.lang.Object
  extended bynet.dpml.lang.Part
      extended bynet.dpml.component.Composition
          extended bynet.dpml.metro.data.DefaultComposition
All Implemented Interfaces:
Directive, Serializable

public final class DefaultComposition
extends Composition

Component composition.

Version:
1.0.1
Author:
Digital Product Meta Library
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.dpml.lang.Part
PART_FOOTER, PART_HEADER, PART_SCHEMA_URN, VALUE_ENCODER, XML_HEADER
 
Constructor Summary
DefaultComposition(Logger logger, Info info, Classpath classpath, Controller controller, ComponentDirective directive)
          Creation of a new composition diefinition.
 
Method Summary
protected  void encodeStrategy(Writer writer, String pad)
          Encode the deployment directive to XML.
 boolean equals(Object other)
          Return true if this object is equal to the supplied object.
 Classpath getClasspath()
          Get the part classpath definition.
 ComponentDirective getComponentDirective()
          Get the deployment directive.
 int hashCode()
          Return the hashcode for the instance.
 
Methods inherited from class net.dpml.component.Composition
getContent, getController, getDirective, getModel, instantiate, newComponent
 
Methods inherited from class net.dpml.lang.Part
encode, getClassLoader, getContent, getContent, getInfo, getLogger, load, load
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultComposition

public DefaultComposition(Logger logger,
                          Info info,
                          Classpath classpath,
                          Controller controller,
                          ComponentDirective directive)
                   throws IOException
Creation of a new composition diefinition.

Parameters:
logger - the assigned logging channel
info - the part info definition
classpath - the part classpath definition
controller - the deployment controller
directive - the deployment directive
Throws:
IOException - if an I/O exception occurs
Method Detail

getComponentDirective

public ComponentDirective getComponentDirective()
Get the deployment directive.

Returns:
the deployment directive

getClasspath

public Classpath getClasspath()
Get the part classpath definition.

Overrides:
getClasspath in class Part
Returns:
the classpath definition

encodeStrategy

protected void encodeStrategy(Writer writer,
                              String pad)
                       throws IOException
Encode the deployment directive to XML.

Specified by:
encodeStrategy in class Part
Parameters:
writer - the output stream writer
pad - the outoput offset
Throws:
IOException - if an I/O exception occurs

equals

public boolean equals(Object other)
Return true if this object is equal to the supplied object.

Overrides:
equals in class Composition
Parameters:
other - the object to evaluate
Returns:
the equality status

hashCode

public int hashCode()
Return the hashcode for the instance.

Overrides:
hashCode in class Composition
Returns:
the instance hashcode