    001    package org.picocontainer.adapters;
    002
    003    import org.picocontainer.ComponentAdapter;
    004    import org.picocontainer.PicoContainer;
    005    import org.picocontainer.PicoVisitor;
    006
    007    import java.lang.reflect.Type;
    008
    009    public class NullCA implements ComponentAdapter {
    010
    011        private Object key;
    012
    013        public NullCA(Object key) {
    014            this.key = key;
    015        }
    016
    017        public Object getComponentKey() {
    018            return key;
    019        }
    020
    021        public Class getComponentImplementation() {
    022            return NOTHING.class;
    023        }
    024
    025        public Object getComponentInstance(PicoContainer container)  {
    026            return null;
    027        }
    028
    029        public Object getComponentInstance(PicoContainer container, Type into)  {
    030            return null;
    031        }
    032
    033        public void verify(PicoContainer container)  {
    034        }
    035
    036        public void accept(PicoVisitor visitor) {
    037        }
    038
    039        public ComponentAdapter getDelegate() {
    040            return null;
    041        }
    042
    043        public ComponentAdapter findAdapterOfType(Class adapterType) {
    044            return null;
    045        }
    046
    047        public String getDescriptor() {
    048            return "Null-CA";
    049        }
    050    }