public abstract class RegistrationBean extends Object implements ServletContextInitializer, Ordered
ServletRegistrationBean
,
FilterRegistrationBean
,
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() |
boolean |
isAsyncSupported()
Returns if asynchronous operations are support for this registration.
|
boolean |
isEnabled() |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onStartup
public void setName(String name)
public void setAsyncSupported(boolean asyncSupported)
true
.public boolean isAsyncSupported()
public void setEnabled(boolean enabled)
enabled
- the enabled to setpublic boolean isEnabled()
public void setInitParameters(Map<String,String> initParameters)
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)
public void setOrder(int order)
order
- the order to setCopyright © 2014 Pivotal Software, Inc.. All rights reserved.