|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.internal.monitoring.ApplicationEventImpl
public class ApplicationEventImpl
Implementation of application event. Instances are immutable.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.glassfish.jersey.server.monitoring.ApplicationEvent |
|---|
ApplicationEvent.Type |
| Constructor Summary | |
|---|---|
ApplicationEventImpl(ApplicationEvent.Type type,
ResourceConfig resourceConfig,
Set<Class<?>> providers,
Set<Class<?>> registeredClasses,
Set<Object> registeredInstances,
ResourceModel resourceModel)
Create a new application event. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public ResourceConfig getResourceConfig()
ApplicationEvent
getResourceConfig in interface ApplicationEventpublic ApplicationEvent.Type getType()
ApplicationEvent
getType 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 ApplicationEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||