public final class ConfigHelper extends Object
application configuration.| Modifier and Type | Method and Description |
|---|---|
static ContainerLifecycleListener |
getContainerLifecycleListener(ApplicationHandler applicationHandler)
Provides a single ContainerLifecycleListener instance based on the
application configuration. |
static Application |
getWrappedApplication(Application app)
Gets the most internal wrapped
application class. |
public static ContainerLifecycleListener getContainerLifecycleListener(ApplicationHandler applicationHandler)
application configuration.
This method looks for providers implementing ContainerLifecycleListener interface and aggregates them into
a single umbrella listener instance that is returned.applicationHandler - actual application from where to get the listener.public static Application getWrappedApplication(Application app)
application class. This method is similar to ResourceConfig.getApplication()
except if provided application was created by wrapping multiple ResourceConfig instances this method returns the original application
and not a resource config wrapper.Application subclass.Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.