Class RuntimeRequirementRegistration
java.lang.Object
org.jboss.as.controller.capability.registry.RequirementRegistration
org.jboss.as.controller.capability.registry.RuntimeRequirementRegistration
Registration information for requirement for a
RuntimeCapability. As a runtime
requirement is associated with an actual management model, the registration exposes the point in the model
that triggered the requirement.- Author:
- Brian Stansberry (c) 2014 Red Hat Inc.
-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeRequirementRegistration(String requiredName, String dependentName, CapabilityScope dependentScope, RegistrationPoint registrationPoint) Creates a new requirement registration.RuntimeRequirementRegistration(String requiredName, String dependentName, CapabilityScope dependentScope, RegistrationPoint registrationPoint, boolean runtimeOnly) Creates a new requirement registration.Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether the requirement is optional and runtime-only (i.e. not mandated by the persistent configuration), and therefore should not result in a configuration validation failure if it is not satisfied.Methods inherited from class org.jboss.as.controller.capability.registry.RequirementRegistration
addRegistrationPoint, equals, getDependentContext, getDependentId, getDependentName, getOldestRegistrationPoint, getRegistrationPointCount, getRegistrationPoints, getRequiredName, hashCode, removeRegistrationPoint
-
Constructor Details
-
RuntimeRequirementRegistration
public RuntimeRequirementRegistration(String requiredName, String dependentName, CapabilityScope dependentScope, RegistrationPoint registrationPoint) Creates a new requirement registration.- Parameters:
requiredName- the name of the required capabilitydependentName- the name of the capability that requiresrequiredNamedependentScope- scope in which the dependent capability existsregistrationPoint- point in the configuration model that triggered the requirement
-
RuntimeRequirementRegistration
public RuntimeRequirementRegistration(String requiredName, String dependentName, CapabilityScope dependentScope, RegistrationPoint registrationPoint, boolean runtimeOnly) Creates a new requirement registration.- Parameters:
requiredName- the name of the required capabilitydependentName- the name of the capability that requiresrequiredNamedependentScope- scope in which the dependent capability existsregistrationPoint- point in the configuration model that triggered the requirementruntimeOnly-trueif and only if the requirement is optional and runtime-only (i.e. not mandated by the persistent configuration), and therefore should not result in a configuration validation failure if it is not satisfied
-
RuntimeRequirementRegistration
Copy constructor.- Parameters:
toCopy- the registration to copy.
-
-
Method Details
-
isRuntimeOnly
public boolean isRuntimeOnly()Gets whether the requirement is optional and runtime-only (i.e. not mandated by the persistent configuration), and therefore should not result in a configuration validation failure if it is not satisfied.- Returns:
trueif the requirement is optional and runtime-only
-