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 theElementRegistry
for theApplication
, loading it if it has not previously been loaded.getOrLoadApplication
(Application application) Loads allElement
s defined by theApplication
's code registry.void
setApplicationAssetLoader
(ApplicationAssetLoader applicationAssetLoader) void
setRootElementRegistry
(MutableElementRegistry rootElementRegistry)
-
Constructor Details
-
StandardApplicationElementService
public StandardApplicationElementService()
-
-
Method Details
-
getElementRegistry
Description copied from interface:ApplicationElementService
Gets theElementRegistry
for theApplication
, loading it if it has not previously been loaded.- Specified by:
getElementRegistry
in interfaceApplicationElementService
- Parameters:
application
- theApplication
- Returns:
- the
ElementRegistry
-
getOrLoadApplication
public ApplicationElementService.ApplicationElementRecord getOrLoadApplication(Application application) Description copied from interface:ApplicationElementService
Loads allElement
s defined by theApplication
's code registry. If theApplication
has already loaded then this returns the existing collection.- Specified by:
getOrLoadApplication
in 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)
-