Interface PrefabRegistry
-
- All Known Implementing Classes:
PrefabRegistryImpl
public interface PrefabRegistryPrefabRegistrykeeps track ofStringVsConfigurableApplicationContextmapping.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPrefabContext(java.lang.String prefabName, org.springframework.context.ConfigurableApplicationContext prefabContext)Adds a new mapping.voiddeletePrefabContext(java.lang.String prefabName)Deletes an existing mapping.voiddeletePrefabContexts()Deletes all mappings.org.springframework.context.ConfigurableApplicationContextgetPrefabContext(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-Stringto be addedprefabContext- targetConfigurableApplicationContext
-
deletePrefabContext
void deletePrefabContext(java.lang.String prefabName)
Deletes an existing mapping.- Parameters:
prefabName-Stringwhose 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.
-
-