/** * 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, MutablePicoContainer context) { Class bindingClass = getBinding(qName); if (bindingClass == null) { return null; } try { context.registerComponentImplementation(bindingClass); } catch (DuplicateComponentKeyRegistrationException e) { //ok, just means that we have already registerd the class } return (Binding) context.getComponentInstanceOfType(bindingClass); }
if ((bindingName == null) || (loader.getBinding(bindingName) == null)) {
if ((bindingName == null) || (loader.getBinding(bindingName) == null)) {
if ( bindingName == null || loader.getBinding( bindingName ) == null ) {