Examples of XmlPersistentHandlerConfig


Examples of net.sourceforge.jivalo.cnfmgr.configuration.service.XmlPersistentHandlerConfig

    {
      init();
    }

    public static void init() {
      XmlPersistentHandlerConfig config = null;
      try {
      config = (XmlPersistentHandlerConfig)ServiceManager.getService(XmlPersistentHandlerConfig.PERSISTENT_HANDLER_CONFIG_LOOKUP_NAME);
    } catch (BaseException e) {
      System.out.println( "Configuration with name " + XmlPersistentHandlerConfig.PERSISTENT_HANDLER_CONFIG_LOOKUP_NAME + " not found." ) ;
      e.printStackTrace();
      return;
    }
   
      URL systemURL = ConfigLocator.getInstance().getConfigurationURL( config.getSystemResourceFile() );
     
        try
        {
            systemFile = new File( new URI(systemURL.toString()) ) ;
        }
        catch ( URISyntaxException e )
        {
            System.out.println( "Configuration with name " + systemURL + " not found." ) ;
            e.printStackTrace();
        }
       
        URL userURL = ConfigLocator.getInstance().getConfigurationURL( config.getUserResourceFile() );
       
        InputStream openStream = null;
       
        try
        {
View Full Code Here

Examples of net.sourceforge.jivalo.cnfmgr.configuration.service.XmlPersistentHandlerConfig

    {
      init();
    }

    public static void init() {
      XmlPersistentHandlerConfig config = null;
      try {
      config = (XmlPersistentHandlerConfig)ServiceManager.getService(XmlPersistentHandlerConfig.PERSISTENT_HANDLER_CONFIG_LOOKUP_NAME);
    } catch (BaseException e) {
      System.out.println( "Configuration with name " + XmlPersistentHandlerConfig.PERSISTENT_HANDLER_CONFIG_LOOKUP_NAME + " not found." ) ;
      e.printStackTrace();
      return;
    }
     
        systemFile = new File( config.getSystemResourceFile() ) ;
        userFile = new File( config.getUserResourceFile() ) ;
        systemPref = new XMLPreferences( null, "", systemFile ) ;
        userPref = new XMLPreferences( null, "", userFile ) ;
        systemInit = false ;
        userInit = false ;
        System.out.println( "loading user preferencs from " + userFile + " and system preferences from " + systemFile ) ;
View Full Code Here

Examples of net.sourceforge.jivalo.cnfmgr.configuration.service.XmlPersistentHandlerConfig

        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() ) );
        }
View Full Code Here

Examples of net.sourceforge.jivalo.cnfmgr.configuration.service.XmlPersistentHandlerConfig

        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() ) );
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.