|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.common.component.ComponentConfig
@Immutable public class ComponentConfig

An immutable configuration for a Component.
| Constructor Summary | |
|---|---|
ComponentConfig(String name,
String description,
long timestamp,
Map<String,Object> properties,
String classname,
String... classpath)
Create a component configuration. |
|
ComponentConfig(String name,
String description,
Map<String,Object> properties,
String classname,
String... classpath)
Create a component configuration. |
|
ComponentConfig(String name,
String description,
String classname,
String... classpath)
Create a component configuration. |
|
| Method Summary | |
|---|---|
int |
compareTo(ComponentConfig that)
|
boolean |
equals(Object obj)
|
String |
getComponentClassname()
Get the fully-qualified name of the Java class used for instances of this component |
List<String> |
getComponentClasspath()
Get the classpath defined in terms of strings compatible with a ClassLoaderFactory. |
String[] |
getComponentClasspathArray()
Get the classpath defined as an array of strings compatible with a ClassLoaderFactory. |
String |
getDescription()
Get the description for this component |
String |
getName()
Get the name of this component. |
Map<String,Object> |
getProperties()
Get the (unmodifiable) properties to be set through reflection on components of this type after instantiation |
long |
getTimestamp()
Get the system timestamp when this configuration object was created. |
boolean |
hasChanged(ComponentConfig component)
Determine whether this component has changed with respect to the supplied component. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentConfig(String name,
String description,
String classname,
String... classpath)
name - the name of the configuration, which is considered to be a unique identifierdescription - the descriptionclassname - the name of the Java class used for the componentclasspath - the optional classpath (defined in a way compatible with a ClassLoaderFactory
IllegalArgumentException - if the name is null, empty or blank, or if the classname is null, empty or not a valid
Java classname
public ComponentConfig(String name,
String description,
Map<String,Object> properties,
String classname,
String... classpath)
name - the name of the configuration, which is considered to be a unique identifierdescription - the descriptionproperties - the mapping of properties to values that should be set through reflection after a component is
instantiated with this configuration informationclassname - the name of the Java class used for the componentclasspath - the optional classpath (defined in a way compatible with a ClassLoaderFactory
IllegalArgumentException - if the name is null, empty or blank, or if the class name is null, empty or not a valid
Java class name
public ComponentConfig(String name,
String description,
long timestamp,
Map<String,Object> properties,
String classname,
String... classpath)
name - the name of the configuration, which is considered to be a unique identifierdescription - the descriptiontimestamp - the timestamp that this component was last changedproperties - the mapping of properties to values that should be set through reflection after a component is
instantiated with this configuration informationclassname - the name of the Java class used for the componentclasspath - the optional classpath (defined in a way compatible with a ClassLoaderFactory
IllegalArgumentException - if the name is null, empty or blank, or if the classname is null, empty or not a valid
Java classname| Method Detail |
|---|
public String getName()
public String getDescription()
public String getComponentClassname()
public List<String> getComponentClasspath()
ClassLoaderFactory.
public String[] getComponentClasspathArray()
ClassLoaderFactory.
public long getTimestamp()
public Map<String,Object> getProperties()
public int compareTo(ComponentConfig that)
compareTo in interface Comparable<ComponentConfig>public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic boolean hasChanged(ComponentConfig component)
equals only checks the type and getName().
component - the component to be compared with this one
IllegalArgumentException - if the supplied component reference is null or is not the same type as
this object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||