Class PrefabRegistryImpl
- java.lang.Object
-
- com.wavemaker.runtime.prefab.impl.PrefabRegistryImpl
-
- All Implemented Interfaces:
PrefabRegistry
@Service("prefabRegistry") public class PrefabRegistryImpl extends java.lang.Object implements PrefabRegistryDefault implementation ofPrefabRegistry.
-
-
Constructor Summary
Constructors Constructor Description PrefabRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPrefabContext(java.lang.String prefabName, org.springframework.context.ConfigurableApplicationContext context)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
public void addPrefabContext(java.lang.String prefabName, org.springframework.context.ConfigurableApplicationContext context)Description copied from interface:PrefabRegistryAdds a new mapping.- Specified by:
addPrefabContextin interfacePrefabRegistry- Parameters:
prefabName-Stringto be addedcontext- targetConfigurableApplicationContext
-
deletePrefabContext
public void deletePrefabContext(java.lang.String prefabName)
Description copied from interface:PrefabRegistryDeletes an existing mapping.- Specified by:
deletePrefabContextin interfacePrefabRegistry- Parameters:
prefabName-Stringwhose mapping is to be deleted
-
getPrefabContext
public org.springframework.context.ConfigurableApplicationContext getPrefabContext(java.lang.String prefabName)
Description copied from interface:PrefabRegistryReturns the context mapped to the given URL.- Specified by:
getPrefabContextin interfacePrefabRegistry- 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:PrefabRegistryRetuns a collection of currently mapped URLs.- Specified by:
getPrefabsin interfacePrefabRegistry- Returns:
- collection containing
String
-
deletePrefabContexts
public void deletePrefabContexts()
Description copied from interface:PrefabRegistryDeletes all mappings.- Specified by:
deletePrefabContextsin interfacePrefabRegistry
-
-