Package com.framed.core.spi
Interface DeploymentValidator
- All Known Implementing Classes:
ARN
public interface DeploymentValidator
Extension point invoked once after all services have been instantiated, allowing
domain modules to validate the deployed topology (e.g. checking that a network of
services satisfies structural constraints) without the orchestrator depending on any
domain type.
Implementations are discovered at runtime via ServiceLoader, so a
provider must declare itself in
META-INF/services/com.framed.core.spi.DeploymentValidator and expose a public
no-argument constructor.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(Collection<Service> services) Validates the set of instantiated services.
-
Method Details
-
validate
Validates the set of instantiated services. Implementations should inspect only the services they care about (typically viainstanceof) and ignore the rest.- Parameters:
services- all services instantiated by the orchestrator- Throws:
IllegalArgumentException- if the deployed topology is invalid
-
