Class PrefabRegistryImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPrefabContext​(java.lang.String prefabName, org.springframework.context.ConfigurableApplicationContext context)
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrefabRegistryImpl

        public PrefabRegistryImpl()
    • Method Detail

      • addPrefabContext

        public void addPrefabContext​(java.lang.String prefabName,
                                     org.springframework.context.ConfigurableApplicationContext context)
        Description copied from interface: PrefabRegistry
        Adds a new mapping.
        Specified by:
        addPrefabContext in interface PrefabRegistry
        Parameters:
        prefabName - String to be added
        context - target ConfigurableApplicationContext
      • deletePrefabContext

        public void deletePrefabContext​(java.lang.String prefabName)
        Description copied from interface: PrefabRegistry
        Deletes an existing mapping.
        Specified by:
        deletePrefabContext in interface PrefabRegistry
        Parameters:
        prefabName - String whose mapping is to be deleted
      • getPrefabContext

        public org.springframework.context.ConfigurableApplicationContext getPrefabContext​(java.lang.String prefabName)
        Description copied from interface: PrefabRegistry
        Returns the context mapped to the given URL.
        Specified by:
        getPrefabContext in interface PrefabRegistry
        Parameters:
        prefabName - URL whose mapping is to be retrieved
        Returns:
        target ConfigurableApplicationContext, if any, else null
      • getPrefabs

        public java.util.Set<java.lang.String> getPrefabs()
        Description copied from interface: PrefabRegistry
        Retuns a collection of currently mapped URLs.
        Specified by:
        getPrefabs in interface PrefabRegistry
        Returns:
        collection containing String