01: package org.geotools.xml.impl;
02:
03: import javax.xml.namespace.QName;
04:
05: import org.geotools.xml.Binding;
06: import org.geotools.xml.BindingFactory;
07: import org.picocontainer.MutablePicoContainer;
08:
09: public class BindingFactoryImpl implements BindingFactory {
10:
11: MutablePicoContainer context;
12: BindingLoader loader;
13:
14: public BindingFactoryImpl(BindingLoader loader) {
15: this .loader = loader;
16: }
17:
18: public Binding createBinding(QName name) {
19: return loader.loadBinding(name, context);
20: }
21:
22: public void setContext(MutablePicoContainer context) {
23: this.context = context;
24: }
25:
26: }
|