    001    /*****************************************************************************
    002     * Copyright (c) PicoContainer Organization. All rights reserved.            *
    003     * ------------------------------------------------------------------------- *
    004     * The software in this package is published under the terms of the BSD      *
    005     * style license a copy of which has been included with this distribution in *
    006     * the LICENSE.txt file.                                                     *
    007     *                                                                           *
    008     *****************************************************************************/
    009
    010    package org.picocontainer.gems.jndi;
    011
    012    import java.util.Properties;
    013
    014    import org.picocontainer.ComponentAdapter;
    015    import org.picocontainer.ComponentFactory;
    016    import org.picocontainer.ComponentMonitor;
    017    import org.picocontainer.LifecycleStrategy;
    018    import org.picocontainer.Parameter;
    019    import org.picocontainer.PicoCompositionException;
    020    import org.picocontainer.PicoContainer;
    021    import org.picocontainer.PicoVisitor;
    022
    023    /**
    024     * TODO: decide where to get JNDI name as we do not have
    025     * implementation here. ? Property
    026     * @author k.pribluda
    027     *
    028     */
    029    public class JNDIProviding implements ComponentFactory {
    030
    031            public <T> ComponentAdapter<T> createComponentAdapter(
    032                            final ComponentMonitor componentMonitor,
    033                            final LifecycleStrategy lifecycleStrategy,
    034                            final Properties componentProperties, final Object componentKey,
    035                            final Class<T> componentImplementation, final Parameter... parameters)
    036                            throws PicoCompositionException {
    037                    return null;
    038            }
    039
    040        public void verify(final PicoContainer container) {
    041        }
    042
    043        public void accept(final PicoVisitor visitor) {
    044            visitor.visitComponentFactory(this);
    045        }
    046    }