mil.dod.th.ose.core/src/mil/dod/th/ose/core/factory/impl/FactoryDescriptorImpl.java
@Activate
    public void activate(final Map<String, Object> props) throws UnmarshalException
    {   
        m_ComponentFactory = (ComponentFactory)props.get(KEY_COMPONENT_FACTORY);
        m_FactoryServiceContext = (FactoryServiceContext<?>)props.get(KEY_SERVICE_CONTEXT);
        @SuppressWarnings("unchecked")
        final ServiceReference<ComponentFactory> serviceRef = 
                (ServiceReference<ComponentFactory>)props.get(KEY_SERVICE_REFERENCE);
        m_PluginServiceRef = serviceRef;
        
        m_ProductType = (String)serviceRef.getProperty(ComponentConstants.COMPONENT_NAME);

        // read in capabilities XML
        final URL xmlResource = m_XMLUnmarshalService.getXmlResource(m_PluginServiceRef.getBundle(), 
                CAPABILITIES_XML_FOLDER_NAME, m_ProductType);
        m_Capabilities = m_XMLUnmarshalService.getXmlObject(m_FactoryServiceContext.getCapabilityType(), xmlResource);
        
        m_PluginPid = getProductType() + FactoryObjectInternal.ATTRIBUTES_CLASS_SUFFIX; 
    
        //verify plug-in OCD and associated attribute definitions can be found
        getPluginAttributeDefinitions(ObjectClassDefinition.ALL);
    }
/**
     * Activates the factory.
     * 
     * @param props
     *      component properties, must have {@link #KEY_SERVICE_CONTEXT}, {@link #KEY_SERVICE_REFERENCE} and
     *      {@link #KEY_COMPONENT_FACTORY} properties set
     * @throws UnmarshalException 
     *      if the capabilities resource is invalid and cannot be read
     */
Activates the factory.

@param props
component properties, must have  #KEY_SERVICE_CONTEXT,  #KEY_SERVICE_REFERENCE and
#KEY_COMPONENT_FACTORY properties set
@throws UnmarshalException
if the capabilities resource is invalid and cannot be read
Activates the factory . @param props component properties must have #KEY_SERVICE_CONTEXT #KEY_SERVICE_REFERENCE and #KEY_COMPONENT_FACTORY properties set @throws UnmarshalException if the capabilities resource is invalid and cannot be read
@Activate
    public void activate(final Map<String, Object> props) throws UnmarshalException
    {   
        m_ComponentFactory = (ComponentFactory)props.get(KEY_COMPONENT_FACTORY);
        m_FactoryServiceContext = (FactoryServiceContext<?>)props.get(KEY_SERVICE_CONTEXT);
        @SuppressWarnings("unchecked")
        final ServiceReference<ComponentFactory> serviceRef = 
                (ServiceReference<ComponentFactory>)props.get(KEY_SERVICE_REFERENCE);
        m_PluginServiceRef = serviceRef;
        m_ProductType = (String)serviceRef.getProperty(ComponentConstants.COMPONENT_NAME);
        final URL xmlResource = m_XMLUnmarshalService.getXmlResource(m_PluginServiceRef.getBundle(), 
                CAPABILITIES_XML_FOLDER_NAME, m_ProductType);
        m_Capabilities = m_XMLUnmarshalService.getXmlObject(m_FactoryServiceContext.getCapabilityType(), xmlResource);
        m_PluginPid = getProductType() + FactoryObjectInternal.ATTRIBUTES_CLASS_SUFFIX; 
        getPluginAttributeDefinitions(ObjectClassDefinition.ALL);
    }
@ Activate public void activate ( final Map < String , Object > props ) throws UnmarshalException { m_ComponentFactory = ( ComponentFactory ) props . get ( KEY_COMPONENT_FACTORY ) ; m_FactoryServiceContext = ( FactoryServiceContext < ? > ) props . get ( KEY_SERVICE_CONTEXT ) ; @ SuppressWarnings ( "unchecked" ) final ServiceReference < ComponentFactory > serviceRef = ( ServiceReference < ComponentFactory > ) props . get ( KEY_SERVICE_REFERENCE ) ; m_PluginServiceRef = serviceRef ; m_ProductType = ( String ) serviceRef . getProperty ( ComponentConstants . COMPONENT_NAME ) ; final URL xmlResource = m_XMLUnmarshalService . getXmlResource ( m_PluginServiceRef . getBundle ( ) , CAPABILITIES_XML_FOLDER_NAME , m_ProductType ) ; m_Capabilities = m_XMLUnmarshalService . getXmlObject ( m_FactoryServiceContext . getCapabilityType ( ) , xmlResource ) ; m_PluginPid = getProductType ( ) + FactoryObjectInternal . ATTRIBUTES_CLASS_SUFFIX ; getPluginAttributeDefinitions ( ObjectClassDefinition . ALL ) ; }
Activates the factory.
Activates the factory .
// read in capabilities XML //verify plug-in OCD and associated attribute definitions can be found