public class ResteasyConfig
extends javax.ws.rs.core.Application
Application configuration.
This class is used by the ResteasyAutoConfiguration class to auto configure Resteasy.
| Constructor and Description |
|---|
ResteasyConfig() |
| Modifier and Type | Method and Description |
|---|---|
Set<Class<?>> |
getClasses() |
Map<String,Object> |
getProperties() |
Set<Object> |
getSingletons() |
boolean |
isRegistered(Class<?> componentClass)
Checks whether given component class is registered in this configuration.
|
ResteasyConfig |
property(String name,
Object value)
Set the new configuration property, if already set, the existing value of the property will be updated.
|
ResteasyConfig |
register(Class<?> componentClass)
Register a class of a JAX-RS component (such as
Path resource or a Provider). |
ResteasyConfig |
register(Object component)
Register a class of a JAX-RS component (such as
Path resource or a Provider). |
public ResteasyConfig register(Class<?> componentClass)
Path resource or a Provider).
Path resources registered this way will be treated by default as per-request resources.
componentClass - JAX-RS component class to be registeredpublic ResteasyConfig register(Object component)
Path resource or a Provider).
Path resources registered this way will be treated by default as singleton resources.
component - JAX-RS component to be registeredpublic ResteasyConfig property(String name, Object value)
null value into a property effectively removes the property from the property bag.name - Property namevalue - Property valuepublic boolean isRegistered(Class<?> componentClass)
componentClass - Component class to checktrue if class is registered in this configuration, false otherwisepublic Set<Class<?>> getClasses()
getClasses in class javax.ws.rs.core.Applicationpublic Set<Object> getSingletons()
getSingletons in class javax.ws.rs.core.ApplicationCopyright © 2019 The Holon Platform. All rights reserved.