C
- the specific type of capability associated with this registrationpublic class CapabilityRegistration<C extends Capability> extends Object implements Comparable<CapabilityRegistration>
capability
.Constructor and Description |
---|
CapabilityRegistration(CapabilityRegistration<C> toCopy)
Copy constructor.
|
CapabilityRegistration(C capability,
CapabilityScope scope) |
CapabilityRegistration(C capability,
CapabilityScope scope,
RegistrationPoint registrationPoint) |
Modifier and Type | Method and Description |
---|---|
boolean |
addRegistrationPoint(RegistrationPoint toAdd) |
int |
compareTo(CapabilityRegistration o) |
boolean |
equals(Object o) |
C |
getCapability()
Gets the capability.
|
CapabilityId |
getCapabilityId() |
String |
getCapabilityName() |
CapabilityScope |
getCapabilityScope()
Gets the scope in which the capability is registered.
|
RegistrationPoint |
getOldestRegistrationPoint()
Gets the registration point that been associated with the registration for the longest period.
|
int |
getRegistrationPointCount() |
Set<RegistrationPoint> |
getRegistrationPoints()
Get all registration points associated with this registration.
|
int |
hashCode() |
boolean |
removeRegistrationPoint(RegistrationPoint toAdd) |
public CapabilityRegistration(C capability, CapabilityScope scope)
public CapabilityRegistration(C capability, CapabilityScope scope, RegistrationPoint registrationPoint)
public CapabilityRegistration(CapabilityRegistration<C> toCopy)
toCopy
- the registration to copy. Cannot be null
public C getCapability()
null
public CapabilityScope getCapabilityScope()
null
public String getCapabilityName()
public CapabilityId getCapabilityId()
public RegistrationPoint getOldestRegistrationPoint()
null
if there are no longer any registration pointspublic Set<RegistrationPoint> getRegistrationPoints()
null
but may be emptypublic boolean addRegistrationPoint(RegistrationPoint toAdd)
public boolean removeRegistrationPoint(RegistrationPoint toAdd)
public int getRegistrationPointCount()
public int compareTo(CapabilityRegistration o)
compareTo
in interface Comparable<CapabilityRegistration>
Copyright © 2023 JBoss by Red Hat. All rights reserved.