Class StandardApplicationElementService
java.lang.Object
dev.getelements.elements.common.app.StandardApplicationElementService
- All Implemented Interfaces:
ApplicationElementService
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.getelements.elements.common.app.ApplicationElementService
ApplicationElementService.ApplicationElementRecord -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetElementRegistry(Application application) Gets theElementRegistryfor theApplication, loading it if it has not previously been loaded.getOrLoadApplication(Application application) Loads allElements defined by theApplication's code registry.voidsetApplicationAssetLoader(ApplicationAssetLoader applicationAssetLoader) voidsetRootElementRegistry(MutableElementRegistry rootElementRegistry)
-
Constructor Details
-
StandardApplicationElementService
public StandardApplicationElementService()
-
-
Method Details
-
getElementRegistry
Description copied from interface:ApplicationElementServiceGets theElementRegistryfor theApplication, loading it if it has not previously been loaded.- Specified by:
getElementRegistryin interfaceApplicationElementService- Parameters:
application- theApplication- Returns:
- the
ElementRegistry
-
getOrLoadApplication
public ApplicationElementService.ApplicationElementRecord getOrLoadApplication(Application application) Description copied from interface:ApplicationElementServiceLoads allElements defined by theApplication's code registry. If theApplicationhas already loaded then this returns the existing collection.- Specified by:
getOrLoadApplicationin interfaceApplicationElementService- Parameters:
application- theApplication- Returns:
- an
ElementRegistry
-
getRootElementRegistry
-
setRootElementRegistry
@Inject public void setRootElementRegistry(@Named("dev.getelements.elements.sdk.element.registry.root") MutableElementRegistry rootElementRegistry) -
getApplicationAssetLoader
-
setApplicationAssetLoader
@Inject public void setApplicationAssetLoader(@Named("dev.getelements.elements.element.storage") ApplicationAssetLoader applicationAssetLoader)
-