org.geotools.xml
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:
- Serialized Form
- Module:
modules/extension/xsd-core (gt-xsd-core.jar)
Fields inherited from class BasicComponentParameter |
BASIC_DEFAULT |
Method Summary |
boolean |
isResolvable(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
Always return true, because since the setter is optional even its not
in teh container we can always resolve to null . |
Methods inherited from class BasicComponentParameter |
accept, resolveInstance, verify |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionalComponentParameter
public OptionalComponentParameter()
OptionalComponentParameter
public OptionalComponentParameter(Object componentKey)
isResolvable
public boolean isResolvable(PicoContainer container,
ComponentAdapter adapter,
Class expectedType)
- Always return true, because since the setter is optional even its not
in teh container we can always resolve to
null
.
- Specified by:
isResolvable
in interface Parameter
- Overrides:
isResolvable
in class BasicComponentParameter
Copyright © 1996-2010 Geotools. All Rights Reserved.