public class ApplicationEventImpl extends java.lang.Object implements ApplicationEvent
application event. Instances are immutable.ApplicationEvent.Type| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<java.lang.Class<?>> |
providers |
private java.util.Set<java.lang.Class<?>> |
registeredClasses |
private java.util.Set<java.lang.Object> |
registeredInstances |
private ResourceConfig |
resourceConfig |
private ResourceModel |
resourceModel |
private ApplicationEvent.Type |
type |
| Constructor and Description |
|---|
ApplicationEventImpl(ApplicationEvent.Type type,
ResourceConfig resourceConfig,
java.util.Set<java.lang.Class<?>> providers,
java.util.Set<java.lang.Class<?>> registeredClasses,
java.util.Set<java.lang.Object> registeredInstances,
ResourceModel resourceModel)
Create a new application event.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.Class<?>> |
getProviders()
Get registered providers available in the runtime.
|
java.util.Set<java.lang.Class<?>> |
getRegisteredClasses()
Get resource classes registered by the user in the current application.
|
java.util.Set<java.lang.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.
|
private final ApplicationEvent.Type type
private final ResourceConfig resourceConfig
private final java.util.Set<java.lang.Class<?>> providers
private final java.util.Set<java.lang.Class<?>> registeredClasses
private final java.util.Set<java.lang.Object> registeredInstances
private final ResourceModel resourceModel
public ApplicationEventImpl(ApplicationEvent.Type type, ResourceConfig resourceConfig, java.util.Set<java.lang.Class<?>> providers, java.util.Set<java.lang.Class<?>> registeredClasses, java.util.Set<java.lang.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()
ApplicationEventgetResourceConfig in interface ApplicationEventpublic ApplicationEvent.Type getType()
ApplicationEventgetType in interface ApplicationEventpublic java.util.Set<java.lang.Class<?>> getRegisteredClasses()
ApplicationEventModelProcessor.
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 ApplicationEventpublic java.util.Set<java.lang.Object> getRegisteredInstances()
ApplicationEventModelProcessor.
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 ApplicationEventpublic java.util.Set<java.lang.Class<?>> getProviders()
ApplicationEventfilters,
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 ApplicationEventpublic ResourceModel getResourceModel()
ApplicationEventApplicationEvent.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