|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dna.common.component.ComponentConfig
@Immutable public class ComponentConfig
| Constructor Summary | |
|---|---|
ComponentConfig(java.lang.String name,
java.lang.String description,
long timestamp,
java.lang.String classname,
java.lang.String... classpath)
Create a component configuration. |
|
ComponentConfig(java.lang.String name,
java.lang.String description,
java.lang.String classname,
java.lang.String... classpath)
Create a component configuration. |
|
| Method Summary | |
|---|---|
int |
compareTo(ComponentConfig that)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getComponentClassname()
Get the fully-qualified name of the Java class used for instances of this component |
java.util.List<java.lang.String> |
getComponentClasspath()
Get the classpath defined in terms of strings compatible with a ClassLoaderFactory. |
java.lang.String[] |
getComponentClasspathArray()
Get the classpath defined as an array of strings compatible with a ClassLoaderFactory. |
java.lang.String |
getDescription()
Get the description for this component |
java.lang.String |
getName()
Get the name of this component. |
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 |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentConfig(java.lang.String name,
java.lang.String description,
java.lang.String classname,
java.lang.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
java.lang.IllegalArgumentException - if the name is null, empty or blank, or if the classname is null, empty or not a valid
Java classname
public ComponentConfig(java.lang.String name,
java.lang.String description,
long timestamp,
java.lang.String classname,
java.lang.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 changedclassname - the name of the Java class used for the componentclasspath - the optional classpath (defined in a way compatible with a ClassLoaderFactory
java.lang.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 java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String getComponentClassname()
public java.util.List<java.lang.String> getComponentClasspath()
ClassLoaderFactory.
public java.lang.String[] getComponentClasspathArray()
ClassLoaderFactory.
public long getTimestamp()
public int compareTo(ComponentConfig that)
compareTo in interface java.lang.Comparable<ComponentConfig>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean hasChanged(ComponentConfig component)
equals only checks the type and getName().
component - the component to be compared with this one
java.lang.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 | |||||||||