mil.dod.th.ose.controller/src/mil/dod/th/ose/controller/impl/TerraHarvestControllerImpl.java
@Activate
    public void activate(final BundleContext context) throws UnmarshalException
    {
        loadProperties(context);
        
        final ServiceReference<TerraHarvestControllerProxy> proxyServiceRef = 
                context.getServiceReference(TerraHarvestControllerProxy.class);
        final URL capabilitiesXmlUrl;
        // get capabilities XML from the bundle providing the proxy service if there is one, otherwise, use base
        // capabilities provided by the THOSE controller bundle
        if (proxyServiceRef == null)
        {
            capabilitiesXmlUrl = m_XMLUnmarshalService.getXmlResource(context.getBundle(), 
                    FactoryDescriptor.CAPABILITIES_XML_FOLDER_NAME, getClass().getName());
        }
        else
        {
            capabilitiesXmlUrl = m_XMLUnmarshalService.getXmlResource(proxyServiceRef.getBundle(), 
                    FactoryDescriptor.CAPABILITIES_XML_FOLDER_NAME, m_Proxy.getClass().getName());
        }
        m_Capabilities = m_XMLUnmarshalService.getXmlObject(ControllerCapabilities.class, capabilitiesXmlUrl);
    }
/**
     * This is the activation method for the TerraHarvestSystemImplementation.
     * This method loads the properties from the file and into memory. This method 
     * must be called by any class that overrides this class as the method will not be 
     * called otherwise.
     * 
     * @param context
     *      bundle that contains this component
     * @throws UnmarshalException
     *      if unable to read in the capabilities XML file 
     */
This is the activation method for the TerraHarvestSystemImplementation.
This method loads the properties from the file and into memory. This method
must be called by any class that overrides this class as the method will not be
called otherwise.

@param context
bundle that contains this component
@throws UnmarshalException
if unable to read in the capabilities XML file
This is the activation method for the TerraHarvestSystemImplementation . This method loads the properties from the file and into memory . This method must be called by any class that overrides this class as the method will not be called otherwise . @param context bundle that contains this component @throws UnmarshalException if unable to read in the capabilities XML file
@Activate
    public void activate(final BundleContext context) throws UnmarshalException
    {
        loadProperties(context);
        final ServiceReference<TerraHarvestControllerProxy> proxyServiceRef = 
                context.getServiceReference(TerraHarvestControllerProxy.class);
        final URL capabilitiesXmlUrl;
        if (proxyServiceRef == null)
        {
            capabilitiesXmlUrl = m_XMLUnmarshalService.getXmlResource(context.getBundle(), 
                    FactoryDescriptor.CAPABILITIES_XML_FOLDER_NAME, getClass().getName());
        }
        else
        {
            capabilitiesXmlUrl = m_XMLUnmarshalService.getXmlResource(proxyServiceRef.getBundle(), 
                    FactoryDescriptor.CAPABILITIES_XML_FOLDER_NAME, m_Proxy.getClass().getName());
        }
        m_Capabilities = m_XMLUnmarshalService.getXmlObject(ControllerCapabilities.class, capabilitiesXmlUrl);
    }
@ Activate public void activate ( final BundleContext context ) throws UnmarshalException { loadProperties ( context ) ; final ServiceReference < TerraHarvestControllerProxy > proxyServiceRef = context . getServiceReference ( TerraHarvestControllerProxy . class ) ; final URL capabilitiesXmlUrl ; if ( proxyServiceRef == null ) { capabilitiesXmlUrl = m_XMLUnmarshalService . getXmlResource ( context . getBundle ( ) , FactoryDescriptor . CAPABILITIES_XML_FOLDER_NAME , getClass ( ) . getName ( ) ) ; } else { capabilitiesXmlUrl = m_XMLUnmarshalService . getXmlResource ( proxyServiceRef . getBundle ( ) , FactoryDescriptor . CAPABILITIES_XML_FOLDER_NAME , m_Proxy . getClass ( ) . getName ( ) ) ; } m_Capabilities = m_XMLUnmarshalService . getXmlObject ( ControllerCapabilities . class , capabilitiesXmlUrl ) ; }
This is the activation method for the TerraHarvestSystemImplementation.
This is the activation method for the TerraHarvestSystemImplementation .
// get capabilities XML from the bundle providing the proxy service if there is one, otherwise, use base // capabilities provided by the THOSE controller bundle