mil.dod.th.ose.core/test/mil/dod/th/ose/core/ConfigurationAdminMocker.java
public static void registerManagedServiceFactory(String factoryPid, ManagedServiceFactory msf) throws IOException,
            ConfigurationException
    {
        m_MSF.put(factoryPid, msf);
        Set<String> restorePidSet = new HashSet<String>();
        for (String pid : m_Configs.keySet())
        {
            if (pid.startsWith(factoryPid))
            {
                restorePidSet.add(pid);
            }
        }

        for (String pid : restorePidSet)
        {
            createMockConfiguration(factoryPid, pid);
        }
    }
/**
     * Store factory information, and create initial factory config.
     */
Store factory information, and create initial factory config.
Store factory information and create initial factory config .
public static void registerManagedServiceFactory(String factoryPid, ManagedServiceFactory msf) throws IOException,
            ConfigurationException
    {
        m_MSF.put(factoryPid, msf);
        Set<String> restorePidSet = new HashSet<String>();
        for (String pid : m_Configs.keySet())
        {
            if (pid.startsWith(factoryPid))
            {
                restorePidSet.add(pid);
            }
        }
        for (String pid : restorePidSet)
        {
            createMockConfiguration(factoryPid, pid);
        }
    }
public static void registerManagedServiceFactory ( String factoryPid , ManagedServiceFactory msf ) throws IOException , ConfigurationException { m_MSF . put ( factoryPid , msf ) ; Set < String > restorePidSet = new HashSet < String > ( ) ; for ( String pid : m_Configs . keySet ( ) ) { if ( pid . startsWith ( factoryPid ) ) { restorePidSet . add ( pid ) ; } } for ( String pid : restorePidSet ) { createMockConfiguration ( factoryPid , pid ) ; } }
Store factory information, and create initial factory config.
Store factory information and create initial factory config .