@DebugProxy public final class DebugResourceProxy<L extends Listener> extends DebugRegistrableProxy implements DebugResource<L>
| Modifier and Type | Method and Description |
|---|---|
Resource<L> |
delegate() |
java.lang.String |
getName()
Returns a fully qualified name of this resource.
|
void |
register(L listener)
Registers a listener to this resource.
|
<U extends Listener> |
registered(java.lang.Class<U> type)
Returns all registered listeners assignable to the specified
listener type.
|
boolean |
registered(Listener listener)
Determines whether the specified listener
is registered to this resource.
|
void |
unregister(L listener)
Unregisters a listener from this resource.
|
static <L extends Listener> |
unwrap(Resource<L> resource) |
static <L extends Listener> |
wrap(Resource<L> resource) |
static <L extends Listener> |
wrap(Resource<L> resource,
DebugConsole console) |
postRegister, postUnregister, preRegister, preUnregisterequals, hashCode, toStringerror, getDebugConsole, notice, notice, print, print, put, put, tab, untab, warning, warningclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitgetDebugConsolepostRegister, postUnregister, preRegister, preUnregisterpublic static <L extends Listener> DebugResourceProxy<L> wrap(Resource<L> resource)
public static <L extends Listener> DebugResourceProxy<L> wrap(Resource<L> resource, DebugConsole console)
public Resource<L> delegate()
delegate in class DebugRegistrableProxypublic void register(L listener)
ResourceWarning: Does not invoke listener registration hooks.
Only ListenerManager.register(Listener) is responsible
for proper hook method invocation during the registration process.
public void unregister(L listener)
ResourceWarning: Does not invoke listener unregistration hooks.
Only ListenerManager.unregister(Listener) is responsible
for proper hook method invocation during the unregistration process.
unregister in interface Resource<L extends Listener>listener - the listener to be unregistered, not nullpublic <U extends Listener> java.util.Collection<U> registered(java.lang.Class<U> type)
Resourceregistered in interface Resource<L extends Listener>type - the listener type of the registered listeners,
not nullpublic boolean registered(Listener listener)
Resourceregistered in interface Resource<L extends Listener>listener - the listener to be checked, not nulltrue if the specified listener is registered
to this resource, false otherwise