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()
ApplicationEventgetResourceConfig in interface ApplicationEventpublic ApplicationEvent.Type getType()
ApplicationEventgetType in interface ApplicationEventpublic Set<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 Set<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 Set<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 ApplicationEventCopyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.