public interface ResourceRegistration extends AnnotableRegistration
Resource instance.
The current registration status is obtained from the underlying resource.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Compares the specified object with this resource registration
for equality.
|
java.lang.Class<? extends Listener> |
getListenerType()
Returns the listener type to which
is the underlying resource registered.
|
Resource<?> |
getResource()
Returns the underlying resource.
|
java.lang.String |
getResourceName()
Returns the underlying resource name.
|
int |
hashCode()
Returns the hash code value for this resource registration.
|
getAnnotation, getAnnotations, hasAnnotationisProvided, isRegisteredjava.lang.Class<? extends Listener> getListenerType()
Resource<?> getResource()
java.lang.String getResourceName()
boolean equals(@Nullable
java.lang.Object o)
true if the specified object is also
a resource registration and the two registrations have the same listener
type and resource name. This definition ensures that this method works
properly across different implementations of the resource registration
interface.equals in class java.lang.Objecto - an object to be compared for equality
with this resource registrationtrue if the specified object is equal to
this resource registration, false otherwiseint hashCode()
Objects.hash(Object...) for
listener type and resource name.hashCode in class java.lang.Object