Package org.geotools.xsd
Class OptionalComponentParameter
- Object
-
- BasicComponentParameter
-
- OptionalComponentParameter
-
- All Implemented Interfaces:
Serializable,Parameter
public class OptionalComponentParameter extends BasicComponentParameterA pico container "parameter" which allows one to make setter injection optional.This class is a hack of pico container... it should be used with care.
- Author:
- Justin Deoliveira, The Open Planning Project
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OptionalComponentParameter()OptionalComponentParameter(Object componentKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisResolvable(PicoContainer container, ComponentAdapter adapter, Class expectedType)Always return true, because since the setter is optional even its not in the container we can always resolve tonull.
-
-
-
Constructor Detail
-
OptionalComponentParameter
public OptionalComponentParameter()
-
OptionalComponentParameter
public OptionalComponentParameter(Object componentKey)
-
-
Method Detail
-
isResolvable
public boolean isResolvable(PicoContainer container, ComponentAdapter adapter, Class expectedType)Always return true, because since the setter is optional even its not in the container we can always resolve tonull.- Specified by:
isResolvablein interfaceParameter- Overrides:
isResolvablein classBasicComponentParameter
-
-