mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/observation/RemoteObservationListener.java
private void updateProps(final Map<String, Object> props)
    {
        //new property list
        final Map<String, Object> properties = new HashMap<String, Object>(props);

        //property key
        //This is a workaround because the handling of boolean values is not correct through the configurable class.
        //The property should be created when a configuration is made, and use a default from the configuration 
        //defined for this component.
        final String property = "enabled";

        if (props.get(property) == null)
        {
            //framework property
            final String prop = m_Context.getProperty(ENABLED_FRAMEWORK_PROPERTY);

            //if the property from the context is null then use default of true
            final boolean enabled = prop == null ? true : Boolean.parseBoolean(prop);

            properties.put(property, enabled);
            m_Logging.debug("Remote Listener framework property identifies the component is enabled [%s]", prop);
        }

        final RemoteObservationListenerConfig config = Configurable.createConfigurable(
            RemoteObservationListenerConfig.class, properties);
        setEnabled(config.enabled());
    }
/**
     * Sets the this class's configuration values. 
     * 
     * @param props
     *    key, value pair map of applicable configuration values 
     */
Sets the this class's configuration values.

@param props
key, value pair map of applicable configuration values
Sets the this class ' s configuration values . @param props key value pair map of applicable configuration values
private void updateProps(final Map<String, Object> props)
    {
        final Map<String, Object> properties = new HashMap<String, Object>(props);
        final String property = "enabled";
        if (props.get(property) == null)
        {
            final String prop = m_Context.getProperty(ENABLED_FRAMEWORK_PROPERTY);
            final boolean enabled = prop == null ? true : Boolean.parseBoolean(prop);
            properties.put(property, enabled);
            m_Logging.debug("Remote Listener framework property identifies the component is enabled [%s]", prop);
        }
        final RemoteObservationListenerConfig config = Configurable.createConfigurable(
            RemoteObservationListenerConfig.class, properties);
        setEnabled(config.enabled());
    }
private void updateProps ( final Map < String , Object > props ) { final Map < String , Object > properties = new HashMap < String , Object > ( props ) ; final String property = "enabled" ; if ( props . get ( property ) == null ) { final String prop = m_Context . getProperty ( ENABLED_FRAMEWORK_PROPERTY ) ; final boolean enabled = prop == null ? true : Boolean . parseBoolean ( prop ) ; properties . put ( property , enabled ) ; m_Logging . debug ( "Remote Listener framework property identifies the component is enabled [%s]" , prop ) ; } final RemoteObservationListenerConfig config = Configurable . createConfigurable ( RemoteObservationListenerConfig . class , properties ) ; setEnabled ( config . enabled ( ) ) ; }
Sets the this class's configuration values.
Sets the this class ' s configuration values .
//new property list //property key //This is a workaround because the handling of boolean values is not correct through the configurable class. //The property should be created when a configuration is made, and use a default from the configuration  //defined for this component. //framework property //if the property from the context is null then use default of true