1 10 package org.picocontainer.defaults; 11 12 import org.picocontainer.PicoContainer; 13 14 19 public class InstanceComponentAdapter extends AbstractComponentAdapter { 20 private Object componentInstance; 21 22 public InstanceComponentAdapter(Object componentKey, Object componentInstance) throws AssignabilityRegistrationException, NotConcreteRegistrationException { 23 super(componentKey, componentInstance.getClass()); 24 this.componentInstance = componentInstance; 25 } 26 27 public Object getComponentInstance(PicoContainer container) { 28 return componentInstance; 29 } 30 31 public void verify(PicoContainer container) { 32 } 33 } 34 | Popular Tags |