init();
}
public static void init()
{
XmlPersistentHandlerConfig config = null;
try
{
config = ( XmlPersistentHandlerConfig ) ServiceManager
.getService( XmlPersistentHandlerConfig.PERSISTENT_HANDLER_CONFIG_LOOKUP_NAME );
}
catch ( BaseException e )
{
BootstrapLogger.error( XMLPreferencesFactory.class.getName(), "init", "Configuration with name "
+ XmlPersistentHandlerConfig.PERSISTENT_HANDLER_CONFIG_LOOKUP_NAME + " not found.", e );
return;
}
URL systemURL = ConfigLocator.getInstance().getConfigurationURL( config.getSystemResourceFile() );
try
{
systemPref = new XMLPreferences( new URI( systemURL.toString() ) );
}
catch ( URISyntaxException e )
{
BootstrapLogger.error( XMLPreferencesFactory.class.getName(), "init",
"System preferences Configuration with name " + systemURL + " URI syntax error.", e );
}
URL userURL = ConfigLocator.getInstance().getConfigurationURL( config.getUserResourceFile() );
try
{
userPref = new XMLPreferences( new URI( userURL.toString() ) );
}