public abstract class RegistrationBean extends Object implements ServletContextInitializer, Ordered
ServletRegistrationBean
,
FilterRegistrationBean
,
DelegatingFilterProxyRegistrationBean
,
ServletListenerRegistrationBean
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
RegistrationBean() |
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 void |
configure(Registration.Dynamic registration)
Configure registration base settings.
|
Map<String,String> |
getInitParameters()
Returns a mutable Map of the registration init-parameters.
|
protected String |
getOrDeduceName(Object value)
Deduces the name for this registration.
|
int |
getOrder()
Get the order of the registration bean.
|
boolean |
isAsyncSupported()
Returns if asynchronous operations are support for this registration.
|
boolean |
isEnabled()
Return if the registration is enabled.
|
void |
setAsyncSupported(boolean asyncSupported)
Sets if asynchronous operations are support for this registration.
|
void |
setEnabled(boolean enabled)
Flag to indicate that the registration is enabled.
|
void |
setInitParameters(Map<String,String> initParameters)
Set init-parameters for this registration.
|
void |
setName(String name)
Set the name of this registration.
|
void |
setOrder(int order)
Set the order of the registration bean.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onStartup
public void setName(String name)
name
- the name of the registrationpublic void setAsyncSupported(boolean asyncSupported)
true
.asyncSupported
- if async is supportedpublic boolean isAsyncSupported()
public void setEnabled(boolean enabled)
enabled
- the enabled to setpublic boolean isEnabled()
true
)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 String getOrDeduceName(Object value)
value
- the object used for convention based namesprotected void configure(Registration.Dynamic registration)
registration
- the registrationpublic void setOrder(int order)
order
- the orderCopyright © 2017 Pivotal Software, Inc.. All rights reserved.