public class ApplicationEventImpl extends Object implements ApplicationEvent
application event
. Instances are immutable.ApplicationEvent.Type
Constructor and Description |
---|
ApplicationEventImpl(ApplicationEvent.Type type,
ResourceConfig resourceConfig,
Set<Class<?>> providers,
Set<Class<?>> registeredClasses,
Set<Object> registeredInstances,
ResourceModel resourceModel)
Create a new application event.
|
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.
|
public ApplicationEventImpl(ApplicationEvent.Type type, ResourceConfig resourceConfig, Set<Class<?>> providers, Set<Class<?>> registeredClasses, Set<Object> registeredInstances, ResourceModel resourceModel)
type
- Type of the event.resourceConfig
- Resource config of the application.registeredClasses
- Registered resource classes.registeredInstances
- Registered resource instances.resourceModel
- Resource model of the application (enhanced by
model processors
).providers
- Registered providers.public ResourceConfig getResourceConfig()
ApplicationEvent
getResourceConfig
in interface ApplicationEvent
public ApplicationEvent.Type getType()
ApplicationEvent
getType
in interface ApplicationEvent
public Set<Class<?>> getRegisteredClasses()
ApplicationEvent
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
.getRegisteredClasses
in interface ApplicationEvent
public Set<Object> getRegisteredInstances()
ApplicationEvent
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
.getRegisteredInstances
in interface ApplicationEvent
public Set<Class<?>> getProviders()
ApplicationEvent
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.getProviders
in interface ApplicationEvent
public ResourceModel getResourceModel()
ApplicationEvent
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
.getResourceModel
in interface ApplicationEvent
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.