1 10 11 package org.nanocontainer.nanning; 12 13 import org.codehaus.nanning.config.AspectSystem; 14 import org.picocontainer.defaults.DefaultComponentAdapterFactory; 15 import org.picocontainer.defaults.ComponentAdapterFactory; 16 import org.picocontainer.defaults.DefaultPicoContainer; 17 18 25 public class NanningNanoContainer extends DefaultPicoContainer { 26 public NanningNanoContainer(AspectSystem aspectSystem, ComponentAdapterFactory componentAdapterFactory) { 27 super(new NanningComponentAdapterFactory(aspectSystem, componentAdapterFactory)); 28 } 29 30 public NanningNanoContainer(AspectSystem aspectSystem) { 31 this(aspectSystem, new DefaultComponentAdapterFactory()); 32 } 33 34 public NanningNanoContainer(ComponentAdapterFactory componentAdapterFactory) { 35 this(new AspectSystem(), componentAdapterFactory); 36 } 37 38 public NanningNanoContainer() { 39 this(new AspectSystem(), new DefaultComponentAdapterFactory()); 40 } 41 } 42 | Popular Tags |