mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/persistence/ObservationStoreImpl.java
@Activate
    public void activate(final Map<String, Object> props, final BundleContext context) throws IOException
    {
        final String maxCacheSizeFrameworkProp = context.getProperty(MAX_CACHE_SIZE);
        final Map<String, Object> combindedProps = new HashMap<String, Object>(props);
        if (props.get(H2DataStoreConfig.MAX_CACHE_SIZE_KEY) == null)
        {
            // may still be null if framework property is not set, will end up using default if so
            combindedProps.put(H2DataStoreConfig.MAX_CACHE_SIZE_KEY, maxCacheSizeFrameworkProp);
        }
        
        final String dataDir = context.getProperty(SystemConfigurationConstants.DATA_DIR_PROPERTY);
        activateStore(String.format("jdbc:h2:file:%s", dataDir + "/" + DATABASE_FILE_BASE), combindedProps);
        
        //pull out the version numbers
        final URL entry = m_ClassService.getResource(Observation.class, "version.properties");
        final Properties properties = m_PropertyRetriever.getPropertiesFromUrl(entry);
        //major number
        final int major = Integer.parseInt(properties.getProperty("majorNum"));
        //minor number
        final int minor = Integer.parseInt(properties.getProperty("minorNum"));
        //save the information
        m_Version = new Version(major, minor); 
    }
/**
     * Activate the component by activating the abstract persistent store.
     * 
     * @param props
     *      configuration properties associated with the component
     * @param context
     *      the bundle context of the bundle which contains this component
     * @throws IOException 
     *      thrown in the event that the file can not be found
     */
Activate the component by activating the abstract persistent store.

@param props
configuration properties associated with the component
@param context
the bundle context of the bundle which contains this component
@throws IOException
thrown in the event that the file can not be found
Activate the component by activating the abstract persistent store . @param props configuration properties associated with the component @param context the bundle context of the bundle which contains this component @throws IOException thrown in the event that the file can not be found
@Activate
    public void activate(final Map<String, Object> props, final BundleContext context) throws IOException
    {
        final String maxCacheSizeFrameworkProp = context.getProperty(MAX_CACHE_SIZE);
        final Map<String, Object> combindedProps = new HashMap<String, Object>(props);
        if (props.get(H2DataStoreConfig.MAX_CACHE_SIZE_KEY) == null)
        {
            combindedProps.put(H2DataStoreConfig.MAX_CACHE_SIZE_KEY, maxCacheSizeFrameworkProp);
        }
        final String dataDir = context.getProperty(SystemConfigurationConstants.DATA_DIR_PROPERTY);
        activateStore(String.format("jdbc:h2:file:%s", dataDir + "/" + DATABASE_FILE_BASE), combindedProps);
        final URL entry = m_ClassService.getResource(Observation.class, "version.properties");
        final Properties properties = m_PropertyRetriever.getPropertiesFromUrl(entry);
        final int major = Integer.parseInt(properties.getProperty("majorNum"));
        final int minor = Integer.parseInt(properties.getProperty("minorNum"));
        m_Version = new Version(major, minor); 
    }
@ Activate public void activate ( final Map < String , Object > props , final BundleContext context ) throws IOException { final String maxCacheSizeFrameworkProp = context . getProperty ( MAX_CACHE_SIZE ) ; final Map < String , Object > combindedProps = new HashMap < String , Object > ( props ) ; if ( props . get ( H2DataStoreConfig . MAX_CACHE_SIZE_KEY ) == null ) { combindedProps . put ( H2DataStoreConfig . MAX_CACHE_SIZE_KEY , maxCacheSizeFrameworkProp ) ; } final String dataDir = context . getProperty ( SystemConfigurationConstants . DATA_DIR_PROPERTY ) ; activateStore ( String . format ( "jdbc:h2:file:%s" , dataDir + "/" + DATABASE_FILE_BASE ) , combindedProps ) ; final URL entry = m_ClassService . getResource ( Observation . class , "version.properties" ) ; final Properties properties = m_PropertyRetriever . getPropertiesFromUrl ( entry ) ; final int major = Integer . parseInt ( properties . getProperty ( "majorNum" ) ) ; final int minor = Integer . parseInt ( properties . getProperty ( "minorNum" ) ) ; m_Version = new Version ( major , minor ) ; }
Activate the component by activating the abstract persistent store.
Activate the component by activating the abstract persistent store .
// may still be null if framework property is not set, will end up using default if so //pull out the version numbers //major number //minor number //save the information