Package jfun.yan.containers

Source Code of jfun.yan.containers.ManualWiringContainer

/*****************************************************************************
* Copyright (C) Codehaus.org. All rights reserved.            *
* ------------------------------------------------------------------------- *
* The software in this package is published under the terms of the BSD      *
* style license a copy of which has been included with this distribution in *
* the LICENSE.txt file.                                                     *
*****************************************************************************/
/*
* Created on Mar 20, 2005
*
* Author Ben Yu
* ZBS
*/
package jfun.yan.containers;

import jfun.yan.ComponentMap;
import jfun.yan.Dependency;
import jfun.yan.ManualDependency;
import jfun.yan.Registrar;

/**
* A container where auto-wiring is disabled.
* <p>
* Codehaus.org.
*
* @author Ben Yu
*
*/
public class ManualWiringContainer extends ImmutablePreferredContainer {

  /**
   * Create a ManualWiringContainer object.
   * @param reg the Registrar object to use.
   */
  public ManualWiringContainer(Registrar reg) {
    super(reg);
  }
  public Dependency getDependency(Object key, ComponentMap cmap){
    return new ManualDependency(cmap, key);
  }
  public Dependency getDependencyOfType(Class type, ComponentMap cmap){
    return new ManualDependency(cmap, type);
  }
}
TOP

Related Classes of jfun.yan.containers.ManualWiringContainer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.