@Service(value=Configurator.class) public class FuseConfigurator extends AbstractPropertiesFileConfigurator
| Constructor and Description |
|---|
FuseConfigurator()
Instantiates a new fuse/fabric8 configurator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept()
Returns true if this configurator accepts the responsiblity of providing
configuration information for the application.
|
protected URL |
findConfigUrl(String configName)
Locates the config file and returns a URL to it.
|
protected byte[] |
getProperties(String urlFile)
Gets the properties from Fabric8.
|
org.apache.commons.configuration.Configuration |
provideConfiguration(String configName,
Long refreshDelay)
Provides the actual application configuration.
|
findConfigUrlInDirectorypublic FuseConfigurator()
public boolean accept()
ConfiguratorConfigurator.accept()public org.apache.commons.configuration.Configuration provideConfiguration(String configName, Long refreshDelay) throws org.apache.commons.configuration.ConfigurationException
ConfiguratorprovideConfiguration in interface ConfiguratorprovideConfiguration in class AbstractPropertiesFileConfiguratorconfigName - the name of the config - e.g. used to lookup a properties filerefreshDelay - how often the properties are reloadedorg.apache.commons.configuration.ConfigurationExceptionAbstractPropertiesFileConfigurator.provideConfiguration(java.lang.String, java.lang.Long)protected byte[] getProperties(String urlFile)
urlFile - protected URL findConfigUrl(String configName)
AbstractPropertiesFileConfiguratorfindConfigUrl in class AbstractPropertiesFileConfiguratorAbstractPropertiesFileConfigurator.findConfigUrl(java.lang.String)Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.