public class BootstrapBag extends Object
Constructor and Description |
---|
BootstrapBag() |
Modifier and Type | Method and Description |
---|---|
List<org.glassfish.jersey.internal.spi.AutoDiscoverable> |
getAutoDiscoverables()
Gets a list of
AutoDiscoverable . |
javax.ws.rs.core.Configuration |
getConfiguration()
Gets an instance of
Configuration . |
ContextResolvers |
getContextResolvers()
Gets an instance of
ContextResolvers . |
ExceptionMappers |
getExceptionMappers()
Gets an instance of
ExceptionMappers . |
ManagedObjectsFinalizer |
getManagedObjectsFinalizer()
Gets an instance of
ManagedObjectsFinalizer . |
MessageBodyWorkers |
getMessageBodyWorkers()
Gets an instance of
MessageBodyWorkers . |
RequestScope |
getRequestScope()
Gets an instance of
RequestScope . |
protected static void |
requireNonNull(Object object,
Type type)
Check whether the value is not
null that means that the proper BootstrapConfigurator has not been configured
or in a wrong order. |
void |
setAutoDiscoverables(List<org.glassfish.jersey.internal.spi.AutoDiscoverable> autoDiscoverables)
Sets a list of
AutoDiscoverable . |
void |
setConfiguration(javax.ws.rs.core.Configuration configuration)
Sets an instance of
Configuration . |
void |
setContextResolvers(ContextResolvers contextResolvers)
Sets an instance of
ContextResolvers . |
void |
setExceptionMappers(ExceptionMappers exceptionMappers)
Sets an instance of
ExceptionMappers . |
void |
setManagedObjectsFinalizer(ManagedObjectsFinalizer managedObjectsFinalizer)
Sets an instance of
ManagedObjectsFinalizer . |
void |
setMessageBodyWorkers(MessageBodyWorkers messageBodyWorkers)
Sets an instance of
MessageBodyWorkers . |
void |
setRequestScope(RequestScope requestScope)
Sets an instance of
RequestScope . |
public List<org.glassfish.jersey.internal.spi.AutoDiscoverable> getAutoDiscoverables()
AutoDiscoverable
.AutoDiscoverable
.public void setAutoDiscoverables(List<org.glassfish.jersey.internal.spi.AutoDiscoverable> autoDiscoverables)
AutoDiscoverable
.autoDiscoverables
- list of AutoDiscoverable
.public ManagedObjectsFinalizer getManagedObjectsFinalizer()
ManagedObjectsFinalizer
.ManagedObjectsFinalizer
instance.public void setManagedObjectsFinalizer(ManagedObjectsFinalizer managedObjectsFinalizer)
ManagedObjectsFinalizer
.managedObjectsFinalizer
- ManagedObjectsFinalizer
instance.public RequestScope getRequestScope()
RequestScope
.RequestScope
instance.public void setRequestScope(RequestScope requestScope)
RequestScope
.requestScope
- RequestScope
instance.public MessageBodyWorkers getMessageBodyWorkers()
MessageBodyWorkers
.MessageBodyWorkers
instance.public void setMessageBodyWorkers(MessageBodyWorkers messageBodyWorkers)
MessageBodyWorkers
.messageBodyWorkers
- MessageBodyWorkers
instance.public javax.ws.rs.core.Configuration getConfiguration()
Configuration
.Configuration
instance.public void setConfiguration(javax.ws.rs.core.Configuration configuration)
Configuration
.configuration
- Configuration
instance.public ExceptionMappers getExceptionMappers()
ExceptionMappers
.ExceptionMappers
instance.public void setExceptionMappers(ExceptionMappers exceptionMappers)
ExceptionMappers
.exceptionMappers
- ExceptionMappers
instance.public ContextResolvers getContextResolvers()
ContextResolvers
.ContextResolvers
instance.public void setContextResolvers(ContextResolvers contextResolvers)
ContextResolvers
.contextResolvers
- ContextResolvers
instance.protected static void requireNonNull(Object object, Type type)
null
that means that the proper BootstrapConfigurator
has not been configured
or in a wrong order.object
- tested object.type
- type of the tested object.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.