raccoon.core.manager.thin
Class Component

java.lang.Object
  extended by raccoon.core.manager.thin.Component

public class Component
extends java.lang.Object

The descriptor of a light weight component.

Since:
Raccoon v0.7
Version:
$Id: Component.java,v 1.1 2004/08/08 20:19:17 crouvrais Exp $
Author:
Cedric ROUVRAIS

Constructor Summary
Component()
           
 
Method Summary
 void addProperty(Property pProperty)
          Appends a new configurable element to this component.
 java.lang.String getClassName()
          The fully qualified class name of this component.
 java.lang.String getName()
          Logical name of this component.
 java.util.ArrayList getProperties()
          The configurable elements of this component.
 java.lang.Object instanciate()
          Creates a new instance of this component.
 void setClassName(java.lang.String pClassName)
          Assigns the class name for this component.
 void setName(java.lang.String pName)
          Defines the logical name of this component.
 void setProperties(java.util.ArrayList pProperties)
          Defines the configurable elements of this component.
 java.lang.String toString()
          Generates the string representation of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Component

public Component()
Method Detail

getName

public java.lang.String getName()
Logical name of this component.

Returns:
retrieves the name of this component.

setName

public void setName(java.lang.String pName)
Defines the logical name of this component.

Parameters:
pName - the name of the component.

getClassName

public java.lang.String getClassName()
The fully qualified class name of this component.

Returns:
a valid java class name.

setClassName

public void setClassName(java.lang.String pClassName)
Assigns the class name for this component.

Parameters:
pClassName - a valid java class name.

getProperties

public java.util.ArrayList getProperties()
The configurable elements of this component.

Returns:
an array list of Property

setProperties

public void setProperties(java.util.ArrayList pProperties)
Defines the configurable elements of this component.

Parameters:
pProperties - an array list of Property

addProperty

public void addProperty(Property pProperty)
Appends a new configurable element to this component.

Parameters:
pProperty - the new property.

toString

public java.lang.String toString()
Generates the string representation of this object

Overrides:
toString in class java.lang.Object
Returns:
a string of the contents.

instanciate

public java.lang.Object instanciate()
                             throws RaccoonException
Creates a new instance of this component.

Returns:
the new object represented by this descriptor.
Throws:
RaccoonException - if the component couldn't be instanciated and correctly configured.


Copyright null null. All Rights Reserved.