public final class LiveResourceRegistration extends AbstractResourceRegistration
Modifier and Type | Method and Description |
---|---|
<A extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<A> type) |
java.util.List<java.lang.annotation.Annotation> |
getAnnotations() |
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.
|
boolean |
hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> type) |
static <L extends Listener> |
of(java.lang.Class<L> type,
Resource<? super L> resource) |
static <L extends Listener> |
of(java.lang.Class<L> type,
java.lang.String name) |
static java.util.Set<LiveResourceRegistration> |
snapshot() |
ResourcePersistenceData |
toPersistenceData() |
equals, hashCode, isProvided, isRegistered, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotations, hasAnnotation
public static <L extends Listener> LiveResourceRegistration of(java.lang.Class<L> type, java.lang.String name)
public static <L extends Listener> LiveResourceRegistration of(java.lang.Class<L> type, Resource<? super L> resource)
public static java.util.Set<LiveResourceRegistration> snapshot()
public ResourcePersistenceData toPersistenceData()
public java.lang.Class<? extends Listener> getListenerType()
ResourceRegistration
public Resource<?> getResource()
ResourceRegistration
public java.lang.String getResourceName()
ResourceRegistration
public final boolean hasAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> type)
hasAnnotation
in interface Annotable
public final <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> type)
getAnnotation
in interface Annotable
public final java.util.List<java.lang.annotation.Annotation> getAnnotations()
getAnnotations
in interface Annotable