|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ail.core.Type
com.ail.core.configure.Component
com.ail.core.configure.Group
com.ail.core.configure.Configuration
public class Configuration
This class represents the top level of the composite. Configuration contains a Types object, and any number of Parameter objects. It also includes a version number - which indicates the version of the properties held, and caching information which is used to detect stale configuration details.
| Field Summary |
|---|
| Fields inherited from class com.ail.core.Type |
|---|
jXPathContext, NOT_PERSISTED |
| Constructor Summary | |
|---|---|
Configuration()
Default constructor. |
|
| Method Summary | |
|---|---|
Builder |
findBuilder(java.lang.String builderName)
Find a builder by its name. |
Type |
findType(java.lang.String typeName)
Find a type by its name. |
Builders |
getBuilders()
Get the Builders group associated with this configuration. |
java.util.Date |
getLoadedAt()
Get the configuration's loaded date. |
java.lang.String |
getManager()
Configurations are generally used only by the owner - i.e. |
java.lang.String |
getNamespace()
|
java.util.ArrayList<Group> |
getOnlyGroups()
Get just the Groups in this configuration - ignoring Types & Builders. |
java.lang.String |
getParentNamespace()
The name of another configuration that this one inherits from. |
java.lang.String |
getSource()
Get the source of the configuration. |
int |
getTimeout()
Get this configuration's timeout. |
Types |
getTypes()
Get the Types group associated with this configuration. |
VersionEffectiveDate |
getValidFrom()
Get the date that the configuration is (was) valid from. |
VersionEffectiveDate |
getValidTo()
Get this configuration's valid to date. |
java.lang.String |
getVersion()
Fetch the configuration's version. |
java.lang.String |
getWho()
Get the configuration's modifier |
XMLMapping |
getXmlMapping()
Get the XML mapping for this configuration. |
void |
setBuilders(Builders builders)
Set the Builders associated with this configuration. |
void |
setLoadedAt(java.util.Date loadedAt)
Set the configuration's laoded at property. |
void |
setManager(java.lang.String manager)
|
void |
setNamespace(java.lang.String namespace)
|
void |
setOnlyGroups(java.util.ArrayList<Group> groups)
|
void |
setParentNamespace(java.lang.String parentNamespace)
The name of another configuration that this one inherits from. |
void |
setSource(java.lang.String source)
Get the source of the configuration. |
void |
setTimeout(int timeout)
Set the configuration's timeout. |
void |
setTypes(Types types)
Set the Types associated with this configuration. |
void |
setValidFrom(VersionEffectiveDate validFrom)
Set the valid from date for this configuration. |
void |
setValidTo(VersionEffectiveDate validTo)
Set the valid to date for this configuration. |
void |
setVersion(java.lang.String version)
Set the configuration's version string. |
void |
setWho(java.lang.String who)
Set the name of the modifier of this configuration. |
void |
setXmlMapping(XMLMapping xmlMapping)
Set the XML mapping definition for this configuration. |
| Methods inherited from class com.ail.core.configure.Group |
|---|
addGroup, addParameter, findGroup, findParameter, findParameterValue, findParameterValue, getGroup, getGroup, getGroupCount, getParameter, getParameter, getParameterCount, removeAllGroup, removeAllParameter, removeGroup, removeParameter, setGroup, setGroup, setParameter, setParameterAt |
| Methods inherited from class com.ail.core.configure.Component |
|---|
getName, getNameLowerCase, setName |
| Methods inherited from class com.ail.core.Type |
|---|
addAttribute, clone, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Configuration()
| Method Detail |
|---|
public void setTypes(Types types)
types - The Types to setpublic Types getTypes()
public void setBuilders(Builders builders)
builders - The Builders to setpublic Builders getBuilders()
public java.util.ArrayList<Group> getOnlyGroups()
public void setOnlyGroups(java.util.ArrayList<Group> groups)
groups - public int getTimeout()
public void setTimeout(int timeout)
timeout - Number of milliseconds before configuration becomes stale.getTimeout()public java.lang.String getVersion()
public void setVersion(java.lang.String version)
version - The version string.getVersion()public java.util.Date getLoadedAt()
timeout to determine when a reload
is needed.
public void setLoadedAt(java.util.Date loadedAt)
loadedAt - The date the configuration was loaded.getLoadedAt()public VersionEffectiveDate getValidFrom()
public void setValidFrom(VersionEffectiveDate validFrom)
validFrom - The valid from date for this configuration.getValidFrom()public void setValidTo(VersionEffectiveDate validTo)
validTo - This configuration's valid to date.getValidFrom()public VersionEffectiveDate getValidTo()
getValidFrom()public void setWho(java.lang.String who)
who - The name of the modifier.public java.lang.String getWho()
setWho(String)public void setXmlMapping(XMLMapping xmlMapping)
xmlMapping - The mapping to use.public XMLMapping getXmlMapping()
setXmlMapping(com.ail.core.configure.XMLMapping)public Type findType(java.lang.String typeName)
typeName -
public Builder findBuilder(java.lang.String builderName)
builderName -
public java.lang.String getManager()
name is returned instead.
public void setManager(java.lang.String manager)
handler - The name of this configuration's handling class.getManager()public java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
public java.lang.String getParentNamespace()
public void setParentNamespace(java.lang.String parentNamespace)
parentNamespace - parent's namespace, or null if none is specified.public java.lang.String getSource()
Get the source of the configuration. The configuration loader may use this property to store details of how the configuration was loaded, and from where.
This will be a class resource URL for all the configurations reset from
*DefaultConfig.xml files in the package hierarchy; or
for configs from CMS it'll be the URL of the CMS file.
public void setSource(java.lang.String source)
Get the source of the configuration. The configuration loader may use this property to store details of how the configuration was loaded, and from where.
This will be a class resource URL for all the configurations reset from
*DefaultConfig.xml files in the package hierarchy; or
for configs from CMS it'll be the URL of the CMS file.
source - A string describing the source from which configuration was loaded.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||