Interface PrefabRegistry

  • All Known Implementing Classes:
    PrefabRegistryImpl

    public interface PrefabRegistry
    PrefabRegistry keeps track of String Vs ConfigurableApplicationContext mapping.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addPrefabContext​(java.lang.String prefabName, org.springframework.context.ConfigurableApplicationContext prefabContext)
      Adds a new mapping.
      void deletePrefabContext​(java.lang.String prefabName)
      Deletes an existing mapping.
      void deletePrefabContexts()
      Deletes all mappings.
      org.springframework.context.ConfigurableApplicationContext getPrefabContext​(java.lang.String prefabName)
      Returns the context mapped to the given URL.
      java.util.Set<java.lang.String> getPrefabs()
      Retuns a collection of currently mapped URLs.
    • Method Detail

      • addPrefabContext

        void addPrefabContext​(java.lang.String prefabName,
                              org.springframework.context.ConfigurableApplicationContext prefabContext)
        Adds a new mapping.
        Parameters:
        prefabName - String to be added
        prefabContext - target ConfigurableApplicationContext
      • deletePrefabContext

        void deletePrefabContext​(java.lang.String prefabName)
        Deletes an existing mapping.
        Parameters:
        prefabName - String whose mapping is to be deleted
      • getPrefabContext

        org.springframework.context.ConfigurableApplicationContext getPrefabContext​(java.lang.String prefabName)
        Returns the context mapped to the given URL.
        Parameters:
        prefabName - URL whose mapping is to be retrieved
        Returns:
        target ConfigurableApplicationContext, if any, else null
      • getPrefabs

        java.util.Set<java.lang.String> getPrefabs()
        Retuns a collection of currently mapped URLs.
        Returns:
        collection containing String
      • deletePrefabContexts

        void deletePrefabContexts()
        Deletes all mappings.