1 package org.nanocontainer.script; 2 3 import org.picocontainer.MutablePicoContainer; 4 import org.picocontainer.defaults.ComponentAdapterFactory; 5 6 import java.util.Map ; 7 8 13 public class NullNodeBuilderDecorationDelegate implements NodeBuilderDecorationDelegate { 14 public ComponentAdapterFactory decorate(ComponentAdapterFactory componentAdapterFactory, Map attributes) { 15 return componentAdapterFactory; 16 } 17 18 public MutablePicoContainer decorate(MutablePicoContainer picoContainer) { 19 return picoContainer; 20 } 21 22 public Object createNode(Object name, Map attributes, Object parentElement) { 23 throw new NanoContainerMarkupException("Don't know how to create a '" + name + "' child of a '" + ((parentElement == null) ? "null" : parentElement.toString()) + "' element"); 24 } 25 26 public void rememberComponentKey(Map attributes) { 27 } 28 } 29 | Popular Tags |