mil.dod.th.ose.core/src/mil/dod/th/ose/core/factory/api/FactoryRegistry.java
public Configuration createConfiguration(final UUID objUuid, final String factoryPid, 
            final FactoryObjectInternal object) 
            throws IllegalArgumentException, FactoryObjectInformationException, FactoryException
    {
        final String pid;
        final Configuration config;
        try
        {
            //Create the configuration, put null as the location so that the configuration does not 
            //bind to the core bundle.
            config = m_ConfigAdmin.createFactoryConfiguration(factoryPid, null);
        }
        catch (final IOException e)
        {
            //clean up
            throw new FactoryException(String.format("Error creating configuration for %s with UUID [%s].",
                    m_BaseType, objUuid), e);
        }
        pid = config.getPid();
        
        //assign the PID if the object is not null
        if (object != null)
        {
            object.setPid(pid);
            
            //send out an event that notifies that the pid has been set for an object.
            m_DirectoryService.postFactoryObjectEvent(FactoryDescriptor.TOPIC_FACTORY_OBJ_PID_CREATED, 
                    object);
        }
        m_FactoryObjectDataManager.setPid(objUuid, pid);
        return config;
    }
/**
     * Create a configuration and assign the new PID to the object.
     * @param objUuid
     *      the UUID of the for which the PID is being persisted
     * @param factoryPid
     *      the PID to persist
     * @param object
     *      the object to assign the new configuration's PID to
     * @return
     *      the created configuration
     * @throws IllegalArgumentException
     *      if the UUID for the object cannot be found in the data store
     * @throws FactoryObjectInformationException
     *      if a problem occurs saving the object's data
     * @throws FactoryException
     *      if there was an error with the creation of the object or its configuration
     */
Create a configuration and assign the new PID to the object.
Create a configuration and assign the new PID to the object .
public Configuration createConfiguration(final UUID objUuid, final String factoryPid, 
            final FactoryObjectInternal object) 
            throws IllegalArgumentException, FactoryObjectInformationException, FactoryException
    {
        final String pid;
        final Configuration config;
        try
        {
            config = m_ConfigAdmin.createFactoryConfiguration(factoryPid, null);
        }
        catch (final IOException e)
        {
            throw new FactoryException(String.format("Error creating configuration for %s with UUID [%s].",
                    m_BaseType, objUuid), e);
        }
        pid = config.getPid();
        if (object != null)
        {
            object.setPid(pid);
            m_DirectoryService.postFactoryObjectEvent(FactoryDescriptor.TOPIC_FACTORY_OBJ_PID_CREATED, 
                    object);
        }
        m_FactoryObjectDataManager.setPid(objUuid, pid);
        return config;
    }
public Configuration createConfiguration ( final UUID objUuid , final String factoryPid , final FactoryObjectInternal object ) throws IllegalArgumentException , FactoryObjectInformationException , FactoryException { final String pid ; final Configuration config ; try { config = m_ConfigAdmin . createFactoryConfiguration ( factoryPid , null ) ; } catch ( final IOException e ) { throw new FactoryException ( String . format ( "Error creating configuration for %s with UUID [%s]." , m_BaseType , objUuid ) , e ) ; } pid = config . getPid ( ) ; if ( object != null ) { object . setPid ( pid ) ; m_DirectoryService . postFactoryObjectEvent ( FactoryDescriptor . TOPIC_FACTORY_OBJ_PID_CREATED , object ) ; } m_FactoryObjectDataManager . setPid ( objUuid , pid ) ; return config ; }
Create a configuration and assign the new PID to the object.
Create a configuration and assign the new PID to the object .
//Create the configuration, put null as the location so that the configuration does not  //bind to the core bundle. //clean up //assign the PID if the object is not null //send out an event that notifies that the pid has been set for an object.