protected void configure(Configuration config) { // configure the bindings Map bindings = config.setupBindings(); handlerFactory = new HandlerFactoryImpl(); bindingLoader = new BindingLoader(bindings); bindingWalker = new BindingWalker(bindingLoader); }
public Binding getAnyTypeBinding() { return loader.loadBinding(XS.ANYTYPE, context); }
BindingLoader bindingLoader = new BindingLoader(bindings); return bindingLoader.loadBinding(name, context);
if ((bindingName == null) || (loader.getBinding(bindingName) == null)) { Binding binding = loader.loadBinding(bindingName, context);
public Binding createBinding(QName name) { return loader.loadBinding(name, context); }
bindingLoader = new BindingLoader(configuration.setupBindings()); bindingWalker = new BindingWalker(bindingLoader);
/** * Loads a binding with a specifc QName into a context. * * @param qName The qualified name of the type of the binding object. * @param context The context which is to contain the binding. * @return The binding object of the associated type, otherwise null if no such binding could be * created. */ public Binding loadBinding(QName qName, PicoContainer context) { Object o = bindings.get(qName); if (o == null) { return null; } if (o instanceof ComponentAdapter) { return (Binding) ((ComponentAdapter) o).getComponentInstance(context); } if (o instanceof Class) { return loadBinding(qName, (Class) o, context); } return (Binding) o; }
bindings.putAll(mappedBindings); BindingLoader bindingLoader = new BindingLoader(bindings);
public Binding stratagy(QName qname) throws Exception { return factory.loadBinding(qname, new DefaultPicoContainer()); }
BindingLoader bindingLoader = new BindingLoader(bindings);
public Binding stratagy(String name) throws Exception { return factory.loadBinding(xs(name), new DefaultPicoContainer()); }
Binding binding = loader.loadBinding(qName, context);
if (binding == null) { binding = parser.getBindingLoader().loadBinding(bindingTarget, context); if (binding == null) { binding = parser.getBindingLoader() .loadBinding(bindingTarget, bindingClass, context);
bindingLoader.loadBinding( new QName(e.getTargetNamespace(), e.getName()), context); bindingLoader.loadBinding( new QName( type.getTargetNamespace(),
bindingLoader.loadBinding(contentTypeName, encoder.getContext()); attribute.binding = binding;