D - the dynamic registration resultpublic abstract class DynamicRegistrationBean<D extends Registration.Dynamic> extends RegistrationBean
dynamic based
 registration beans.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description | 
|---|
DynamicRegistrationBean()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addInitParameter(String name,
                String value)
Add a single init-parameter, replacing any existing parameter with the same name. 
 | 
protected abstract D | 
addRegistration(String description,
               ServletContext servletContext)  | 
protected void | 
configure(D registration)  | 
Map<String,String> | 
getInitParameters()
Returns a mutable Map of the registration init-parameters. 
 | 
protected String | 
getOrDeduceName(Object value)
Deduces the name for this registration. 
 | 
boolean | 
isAsyncSupported()
Returns if asynchronous operations are supported for this registration. 
 | 
protected void | 
register(String description,
        ServletContext servletContext)
Register this bean with the servlet context. 
 | 
void | 
setAsyncSupported(boolean asyncSupported)
Sets if asynchronous operations are supported for this registration. 
 | 
void | 
setInitParameters(Map<String,String> initParameters)
Set init-parameters for this registration. 
 | 
void | 
setName(String name)
Set the name of this registration. 
 | 
getDescription, getOrder, isEnabled, onStartup, setEnabled, setOrderpublic void setName(String name)
name - the name of the registrationpublic void setAsyncSupported(boolean asyncSupported)
true.asyncSupported - if async is supportedpublic boolean isAsyncSupported()
public void setInitParameters(Map<String,String> initParameters)
initParameters - the init parametersgetInitParameters(), 
addInitParameter(java.lang.String, java.lang.String)public Map<String,String> getInitParameters()
public void addInitParameter(String name, String value)
name - the init-parameter namevalue - the init-parameter valueprotected final void register(String description, ServletContext servletContext)
RegistrationBeanregister in class RegistrationBeandescription - a description of the item being registeredservletContext - the servlet contextprotected abstract D addRegistration(String description, ServletContext servletContext)
protected void configure(D registration)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.