public interface ApplicationEvent
application event listener
.
The event contains the ApplicationEvent.Type
which distinguishes between types of event. There are various
properties in the event (accessible by getters) and some of them might be relevant only to specific event types.
Note that internal state of the event must be modified. Even the event is immutable it exposes objects
which might be mutable and the code of event listener must not change state of these objects.Modifier and Type | Interface and Description |
---|---|
static class |
ApplicationEvent.Type
The type of the event that identifies on which lifecycle change the event is triggered.
|
Modifier and Type | Method and Description |
---|---|
Set<Class<?>> |
getProviders()
Get registered providers available in the runtime.
|
Set<Class<?>> |
getRegisteredClasses()
Get resource classes registered by the user in the current application.
|
Set<Object> |
getRegisteredInstances()
Get resource instances registered by the user in the current application.
|
ResourceConfig |
getResourceConfig()
Get resource config associated with the application.
|
ResourceModel |
getResourceModel()
Get the resource model of the application.
|
ApplicationEvent.Type |
getType()
Return the type of the event.
|
ApplicationEvent.Type getType()
ResourceConfig getResourceConfig()
Set<Class<?>> getRegisteredClasses()
ModelProcessor
.
User resources are resources that
were explicitly registered by the configuration, discovered by the class path scanning or that
constructs explicitly registered programmatic resource
.Set<Object> getRegisteredInstances()
ModelProcessor
.
User resources are resources that
were explicitly registered by the configuration, discovered by the class path scanning or that
constructs explicitly registered programmatic resource
.Set<Class<?>> getProviders()
filters
,
reader
and writer
interceptors which are explicitly registered by configuration, or annotated by
@Provider
or registered in META-INF/services. The
set does not include providers that are by default built in Jersey.ResourceModel getResourceModel()
ApplicationEvent.Type.INITIALIZATION_START
event type as the resource model is not initialized yet.
The returned resource model is the final deployed model including resources enhanced by
model processors
.Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.