Package org.geotools.xsd
Class OptionalComponentParameter
Object
BasicComponentParameter
OptionalComponentParameter
- All Implemented Interfaces:
Serializable
,Parameter
public class OptionalComponentParameter
extends BasicComponentParameter
A 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:
-
Field Summary
Fields inherited from class BasicComponentParameter
BASIC_DEFAULT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
.Methods inherited from class BasicComponentParameter
accept, resolveInstance, verify
-
Constructor Details
-
OptionalComponentParameter
public OptionalComponentParameter() -
OptionalComponentParameter
-
-
Method Details
-
isResolvable
Always return true, because since the setter is optional even its not in the container we can always resolve tonull
.- Specified by:
isResolvable
in interfaceParameter
- Overrides:
isResolvable
in classBasicComponentParameter
-