// that the setter property gets updated properly every time
bindings.put(
GML.AbstractGeometryType,
new SetterInjectionComponentAdapter(
GML.AbstractGeometryType, AbstractGeometryTypeBinding.class,
new Parameter[]{ new OptionalComponentParameter(CoordinateReferenceSystem.class)}
)
);
bindings.put(
GML.BoxType,
new SetterInjectionComponentAdapter(
GML.BoxType, GMLBoxTypeBinding.class,
new Parameter[]{ new OptionalComponentParameter(CoordinateReferenceSystem.class)}
)
);
// use setter injection for OGCBBoxTypeBinding to allow an
// optional crs to be set in teh binding context for parsing, this crs
// is set by the binding of a parent element.
// note: it is important that this component adapter is non-caching so
// that the setter property gets updated properly every time
bindings.put(
OGC.BBOXType,
new SetterInjectionComponentAdapter(OGC.BBOXType,
OGCBBOXTypeBinding.class,
new Parameter[] { new OptionalComponentParameter(CoordinateReferenceSystem.class) }));
}