Package org.ametys.core.ui
Class ClientSideElementDependenciesManager
java.lang.Object
org.ametys.core.ui.ClientSideElementDependenciesManager
Dependencies manager, able to compute the full chain of dependencies.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefault constructor for the dependencies manager. -
Method Summary
Modifier and TypeMethodDescriptionCompute the chain of dependenciesvoid
Register a new dependencyvoid
register
(ClientSideElement element) Register a new dependency to a client side element
-
Field Details
-
_logger
Logger
-
-
Constructor Details
-
ClientSideElementDependenciesManager
Default constructor for the dependencies manager.- Parameters:
manager
- The service manager, used to resolve dependencies.
-
-
Method Details
-
register
Register a new dependency- Parameters:
extensionPoint
- The dependency extension pointextensionId
- The dependency extension
-
register
Register a new dependency to a client side element- Parameters:
element
- The client side element
-
computeDependencies
Compute the chain of dependencies- Returns:
- The list of dynamic dependencies calculated from the registered dependencies.
- Throws:
ServiceException
- If an error occurs with the list of ExtensionPoints
-