Class RuntimeRequirementRegistration
- java.lang.Object
-
- org.jboss.as.controller.capability.registry.RequirementRegistration
-
- org.jboss.as.controller.capability.registry.RuntimeRequirementRegistration
-
public class RuntimeRequirementRegistration extends RequirementRegistration
Registration information for requirement for aRuntimeCapability. As a runtime requirement is associated with an actual management model, the registration exposes thepoint in the modelthat triggered the requirement.- Author:
- Brian Stansberry (c) 2014 Red Hat Inc.
-
-
Constructor Summary
Constructors Constructor Description RuntimeRequirementRegistration(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.RuntimeRequirementRegistration(RuntimeRequirementRegistration toCopy)Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisRuntimeOnly()Gets whether the requirement is optional and runtime-only (i.e.-
Methods inherited from class org.jboss.as.controller.capability.registry.RequirementRegistration
addRegistrationPoint, equals, getDependentContext, getDependentId, getDependentName, getOldestRegistrationPoint, getRegistrationPointCount, getRegistrationPoints, getRequiredName, hashCode, removeRegistrationPoint
-
-
-
-
Constructor Detail
-
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
public RuntimeRequirementRegistration(RuntimeRequirementRegistration toCopy)
Copy constructor.- Parameters:
toCopy- the registration to copy.
-
-
Method Detail
-
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
-
-