|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.config.ManagerSubconfiguration
public final class ManagerSubconfiguration
A class to produce a Subconfiguration object
from the Manager's properties.
| Constructor Summary | |
|---|---|
ManagerSubconfiguration(String prefix)
|
|
| Method Summary | |
|---|---|
boolean |
getBoolean(String name)
Tries to compute the boolean value of the value of the given property. |
Collection |
getChildrenNames(String subPrefix)
Returns the next step completion given the named prefix. |
int |
getInt(String name)
Tries to compute the integer value of the value of the given property. |
URL |
getPath(String name)
Computes the path of the given properties according to ActiveMath's mechanism (using a possible extra <name>.refType
property. |
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 serviceInterfaceClassName)
This method returns a service implementing one of the following interfaces: MBaseRef is provided
by Manager.getOfficialMBase()
AbstractUserModel is provided
by Manager#getUserModel
MathWebBrokerWrapper is provided
by Manager.getMathWebBroker()
de.marf.crypt.identities.PermanentIdenticator is provided by
Manager#getPermanentIdenticator. |
Subconfiguration |
getSubconfiguration(String prefix)
Creates a sub-configuration object with the properties with given prefix. |
URL |
pathFromString(String pathString)
Computes the path for the obtained property value. |
void |
refreshServices()
does nothing |
void |
setDefaultProperties(Map props)
Sets the default properties for this component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManagerSubconfiguration(String prefix)
| Method Detail |
|---|
public void setDefaultProperties(Map props)
SubconfigurationString.
setDefaultProperties in interface Subconfigurationpublic String getProperty(String name)
Subconfigurationnull if there's none.
getProperty in interface Subconfigurationpublic URL getPath(String name)
Subconfiguration<name>.refType
property.
getPath in interface SubconfigurationManager.getPath(java.lang.String)public URL pathFromString(String pathString)
Subconfiguration
pathFromString in interface Subconfigurationpublic boolean getBoolean(String name)
Subconfiguration
getBoolean in interface Subconfigurationpublic int getInt(String name)
Subconfiguration
getInt in interface Subconfigurationpublic Object getService(String serviceInterfaceClassName)
MBaseRef is provided
by Manager.getOfficialMBase()AbstractUserModel is provided
by Manager#getUserModelMathWebBrokerWrapper is provided
by Manager.getMathWebBroker()de.marf.crypt.identities.PermanentIdenticator is provided by
Manager#getPermanentIdenticator.Random is provided by
Manager#getSecureRandom().Stylesheets is provided by
Manager.getStylesheetProcessor()ConfiguredObjectMaker is provided by
an internal wrapper of the Manager.createConfiguredObject(org.activemath.abstractcontent.Subconfiguration)
methodSubconfImpl.PropertiesConfig.
This method will offer more objects as it's life goes on
allowing the ability to remove entirely the static references
to the Manager class thus making implementations using this class
presumably portable in different settings
(e.g. using a simple xml or properties file).
getService in interface SubconfigurationIllegalArgumentException - if the service indicated does not existpublic void refreshServices()
refreshServices in interface Subconfigurationpublic Iterator getPropertyNames()
Subconfiguration
getPropertyNames in interface Subconfigurationpublic Collection getChildrenNames(String subPrefix)
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 SubconfigurationsubPrefix - the prefix string, without the trailing "."
or null if the root property names is wished.public Subconfiguration getSubconfiguration(String prefix)
Subconfiguration
getSubconfiguration in interface Subconfigurationprefix - the prefix string, without the trailing "."
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||