Package org.vaadin.spring.servlet
Class SingletonCustomInitParameterProvider
java.lang.Object
org.vaadin.spring.servlet.SingletonCustomInitParameterProvider
- All Implemented Interfaces:
CustomInitParameterProvider
public class SingletonCustomInitParameterProvider
extends Object
implements CustomInitParameterProvider
Implementation of
CustomInitParameterProvider that provides a single init parameter.- Author:
- Petter Holmström (petter@vaadin.com)
-
Constructor Summary
ConstructorsConstructorDescriptionSingletonCustomInitParameterProvider(String parameterName, String parameterValue) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsInitParameter(String parameterName) Returns whether this provider contains an init parameter with the specified name.getInitParameter(String parameterName) Returns the value of the specified init parameter name.Returns the names of all the init parameters in this provider.
-
Constructor Details
-
SingletonCustomInitParameterProvider
-
-
Method Details
-
containsInitParameter
Description copied from interface:CustomInitParameterProviderReturns whether this provider contains an init parameter with the specified name.- Specified by:
containsInitParameterin interfaceCustomInitParameterProvider- Parameters:
parameterName- the name of the init parameter.- Returns:
- true if the parameter exists, false otherwise.
-
getInitParameter
Description copied from interface:CustomInitParameterProviderReturns the value of the specified init parameter name.- Specified by:
getInitParameterin interfaceCustomInitParameterProvider- Parameters:
parameterName- the name of the init parameter.- Returns:
- the value of the parameter name or
nullif no such parameter exists.
-
getInitParameterNames
Description copied from interface:CustomInitParameterProviderReturns the names of all the init parameters in this provider.- Specified by:
getInitParameterNamesin interfaceCustomInitParameterProvider- Returns:
- a collection of parameter names.
-