|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ApplicationEvent
An event informing about application lifecycle changes. The event is created by Jersey runtime and
handled by user registered application event listener.
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.
| Nested Class Summary | |
|---|---|
static class |
ApplicationEvent.Type
The type of the event that identifies on which lifecycle change the event is triggered. |
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||