Class ConfigurationManager
- java.lang.Object
-
- org.wso2.carbon.mediation.initializer.configurations.ConfigurationManager
-
public class ConfigurationManager extends Object
Responsible for managing the differrence configurations inside a single ConfigurationContext.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIGURATION_MANAGER
-
Constructor Summary
Constructors Constructor Description ConfigurationManager(org.apache.axis2.context.ConfigurationContext configurationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
activate(String name)
Activate the given configuration.void
init()
Initilize the configuration manager
-
-
-
Field Detail
-
CONFIGURATION_MANAGER
public static final String CONFIGURATION_MANAGER
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init() throws ConfigurationInitilizerException
Initilize the configuration manager- Throws:
ConfigurationInitilizerException
- if an error occurs
-
activate
public boolean activate(String name) throws ConfigurationInitilizerException
Activate the given configuration. This will intern deactivate the current configuration and then activate the new configuration.- Parameters:
name
- name of the configuration to be activated- Returns:
- true if activation is successful
- Throws:
ConfigurationInitilizerException
- if an error occurs while activating
-
-