|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.abstractcontent.SubconfImpl.AbstractSubconfiguration
org.activemath.abstractcontent.SubconfImpl.UnionSubconfiguration
public static class SubconfImpl.UnionSubconfiguration
A subcoonfiguration merging two subconfigurations. Note that the Union operation is not commutative and the given subconfigurations are actually given as one primary and and one secondary.
TODO: this class has some similarity to SubconfImpl.ChildSubconfiguration
and a common subset should be performed.
| Constructor Summary | |
|---|---|
SubconfImpl.UnionSubconfiguration(Subconfiguration primary,
Subconfiguration secondary)
|
|
| Method Summary | |
|---|---|
Collection |
getChildrenNames(String prefix)
Returns the next step completion given the named prefix. |
URL |
getPath(String key)
Returns the primary or secondary result of Subconfiguration.getPath(java.lang.String)
if available, otherwise builds a file with the indicated value and makes
a URL out of it. |
String |
getProperty(String name)
Returns the values for the given name or null if there's none. |
Iterator |
getPropertyNames()
Returns an enumeration of all the property names. |
Object |
getService(String serviceName)
This is the way to provide named services to users of the subconfiguation. |
URL |
pathFromString(String pathString)
Just call sthe primary's Subconfiguration.pathFromString(java.lang.String). |
void |
refreshServices()
Commodity method to request the configurator to re-read the services from whichever source it was given. |
void |
setDefaultProperties(Map defaultProps)
Sets the default properties for this component. |
| Methods inherited from class org.activemath.abstractcontent.SubconfImpl.AbstractSubconfiguration |
|---|
getBoolean, getInt, getSubconfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubconfImpl.UnionSubconfiguration(Subconfiguration primary,
Subconfiguration secondary)
| Method Detail |
|---|
public String getProperty(String name)
Subconfigurationnull if there's none.
getProperty in interface SubconfigurationgetProperty in class SubconfImpl.AbstractSubconfigurationpublic void setDefaultProperties(Map defaultProps)
SubconfigurationString.
setDefaultProperties in interface SubconfigurationsetDefaultProperties in class SubconfImpl.AbstractSubconfigurationpublic URL getPath(String key)
Subconfiguration.getPath(java.lang.String)
if available, otherwise builds a file with the indicated value and makes
a URL out of it.
getPath in interface SubconfigurationgetPath in class SubconfImpl.AbstractSubconfigurationManager.getPath(java.lang.String)public URL pathFromString(String pathString)
Subconfiguration.pathFromString(java.lang.String).
public Object getService(String serviceName)
SubconfigurationNote that implementations of the Subconfiguration interface should only accept, as argument of this method, the class of a java-interface.
The service returned is not supposed to be twiddled or adjusted by the user of this service as such a service will presumably be shared by several users in a normal deployment.
Examples of such services could be an implementation of the JAXP's
TransformerFactory interface, or an implementation
of the MBaseRef interface.
Child-subconfigurations obtained through Subconfiguration.getSubconfiguration(java.lang.String)
should, so as to enforce the inversion-of-control pattern, restrict
the amount of services provided to the strict needed parts.
public void refreshServices()
Subconfiguration
public Collection getChildrenNames(String prefix)
SubconfigurationAs an example, given
i.a.blop.c = val1
i.b.blip = val2
This method, called with "i", would return the enumeration made of the string "a" and the string "b".
getChildrenNames in interface SubconfigurationgetChildrenNames in class SubconfImpl.AbstractSubconfigurationprefix - the prefix string, without the trailing "."
or null if the root property names is wished.public Iterator getPropertyNames()
Subconfiguration
getPropertyNames in interface SubconfigurationgetPropertyNames in class SubconfImpl.AbstractSubconfiguration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||