mil.dod.th.ose.config/src/mil/dod/th/ose/config/loading/impl/ConfigurationMgr.java
@Activate
    public void activate(final BundleContext context) throws UnmarshalException, IOException
    {
        final String configDirectory = context.getProperty(SystemConfigurationConstants.DATA_DIR_PROPERTY);
        final File configParentFile = new File(configDirectory, "conf");
        final File configFile = new File(configParentFile, CONFIGURATION_FILE);
        final URL defaultConfigUrl = context.getBundle().getEntry(CONFIGURATION_FILE);

        final Configurations configurations;
        try
        {
            configurations = loadConfigurationFile(configFile, defaultConfigUrl);
        }
        catch (final UnmarshalException | IOException e)
        {
            m_Log.error(e, "Unable to load configuration file [%s]", configFile.getAbsolutePath());
            return;
        }

        if (configurations != null)
        {
            processConfigurations(configurations);
        }
    }
/**
     * Method called on activation of this component.
     * @param context
     *  this bundle's context
     * @throws UnmarshalException
     *  occurs if the file provided cannot be parsed into a JAXB object
     * @throws IOException 
     *  occurs if an error occurs while attempting to set configuration properties
     */
Method called on activation of this component.
@param context
this bundle's context
@throws UnmarshalException
occurs if the file provided cannot be parsed into a JAXB object
@throws IOException
occurs if an error occurs while attempting to set configuration properties
Method called on activation of this component . @param context this bundle ' s context @throws UnmarshalException occurs if the file provided cannot be parsed into a JAXB object @throws IOException occurs if an error occurs while attempting to set configuration properties
@Activate
    public void activate(final BundleContext context) throws UnmarshalException, IOException
    {
        final String configDirectory = context.getProperty(SystemConfigurationConstants.DATA_DIR_PROPERTY);
        final File configParentFile = new File(configDirectory, "conf");
        final File configFile = new File(configParentFile, CONFIGURATION_FILE);
        final URL defaultConfigUrl = context.getBundle().getEntry(CONFIGURATION_FILE);
        final Configurations configurations;
        try
        {
            configurations = loadConfigurationFile(configFile, defaultConfigUrl);
        }
        catch (final UnmarshalException | IOException e)
        {
            m_Log.error(e, "Unable to load configuration file [%s]", configFile.getAbsolutePath());
            return;
        }
        if (configurations != null)
        {
            processConfigurations(configurations);
        }
    }
@ Activate public void activate ( final BundleContext context ) throws UnmarshalException , IOException { final String configDirectory = context . getProperty ( SystemConfigurationConstants . DATA_DIR_PROPERTY ) ; final File configParentFile = new File ( configDirectory , "conf" ) ; final File configFile = new File ( configParentFile , CONFIGURATION_FILE ) ; final URL defaultConfigUrl = context . getBundle ( ) . getEntry ( CONFIGURATION_FILE ) ; final Configurations configurations ; try { configurations = loadConfigurationFile ( configFile , defaultConfigUrl ) ; } catch ( final UnmarshalException | IOException e ) { m_Log . error ( e , "Unable to load configuration file [%s]" , configFile . getAbsolutePath ( ) ) ; return ; } if ( configurations != null ) { processConfigurations ( configurations ) ; } }
Method called on activation of this component.
Method called on activation of this component .