01: package org.geotools.xml.impl;
02:
03: import org.eclipse.xsd.XSDFeature;
04: import org.geotools.xml.BindingWalkerFactory;
05: import org.geotools.xml.impl.BindingWalker.Visitor;
06: import org.picocontainer.MutablePicoContainer;
07:
08: public class BindingWalkerFactoryImpl implements BindingWalkerFactory {
09:
10: BindingLoader bindingLoader;
11: MutablePicoContainer context;
12:
13: public BindingWalkerFactoryImpl(BindingLoader bindingLoader,
14: MutablePicoContainer context) {
15: this .bindingLoader = bindingLoader;
16: this .context = context;
17: }
18:
19: public void walk(XSDFeature component, Visitor visitor) {
20: new BindingWalker(bindingLoader).walk(component, visitor,
21: context);
22: }
23:
24: public void setContext(MutablePicoContainer context) {
25: this.context = context;
26: }
27: }
|