|
Class AbstractConfigurator
|
PlatformConfigurator implementation that provides
application callbacks for PlatformConfig generation and
update prior to Platform startup. The default backing configurator is
ext:config Configurator that is overridable via a constructor.
Applications can register their implementation with the Platform in addition
to adding application specific resources that will be copied to the
JXTA_HOME prior to startup.| Inner Class Summary | |
|---|---|
final class |
|
| Field Summary | |
|---|---|
static Configurator |
|
private final static String |
|
private final static String |
|
public final static String |
jxta.properties resource name. |
private final static Logger |
|
public final static String |
ext:config profile resource name. |
private final static Map |
|
| Constructor Summary | |
|---|---|
public |
|
public |
AbstractConfigurator(Configurator configurator) Constructor which overrides the backing Configurator. |
| Method Summary | |
|---|---|
public static String |
addResource(String key, String value) Resource setter. |
public static void |
addResources(Map resources) Resource setter. |
public static Map |
Resource clearer. |
public abstract PlatformConfig |
createPlatformConfig(Configurator configurator) Application callback invoked upon registered Configurators
prior to Platform startup when a newly created
PlatformConfig is required. |
public ConfigParams |
{@inheritDoc} |
public URI |
{@inheritDoc} |
private File |
|
public PlatformConfig |
{@inheritDoc} |
public static String |
getResource(String key) Resource accessor. |
public static Iterator |
Resource key iterator. |
public boolean |
{@inheritDoc} |
public ConfigParams |
load() {@inheritDoc} |
public PlatformConfig |
load(File pc) {@inheritDoc} |
private void |
|
public static void |
register(Class configurator) Registers a delgate Configurator class with the Platform
that will manage configuration resources. |
public static String |
removeResource(String key) Resource remover. |
public boolean |
save() {@inheritDoc} |
public boolean |
save(File f) {@inheritDoc} |
public void |
setConfigParams(ConfigParams cp) {@inheritDoc} |
public void |
setPlatformConfig(PlatformConfig config) {@inheritDoc} |
public void |
setReconfigure(boolean reconfigure) {@inheritDoc} |
public PlatformConfig |
updatePlatformConfig(Configurator configurator) Application callback invoked upon registered Configurators
prior to Platform startup. |
| Field Detail |
| Constructor Detail |
Configurator.| Method Detail |
Configurators
prior to Platform startup when a newly created
PlatformConfig is required.
A ConfiguratorException will be thrown in the event the
manufactured PlatformConfig is invalid.Configurator class with the Platform
that will manage configuration resources.Configurators
prior to Platform startup.
A ConfiguratorException will be thrown in the event the
manufactured PlatformConfig is invalid.