/*****************************************************************************
* 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);
}
}