jfun.yan.containers
Class ManualWiringContainer

java.lang.Object
  extended by jfun.yan.containers.SimpleContainer
      extended by jfun.yan.containers.ImmutablePreferredContainer
          extended by jfun.yan.containers.ManualWiringContainer
All Implemented Interfaces:
java.io.Serializable, ComponentMap, Container, Registrar
Direct Known Subclasses:
ManualContainer

public class ManualWiringContainer
extends ImmutablePreferredContainer

A container where auto-wiring is disabled.

Codehaus.org.

Author:
Ben Yu
See Also:
Serialized Form

Constructor Summary
ManualWiringContainer(Registrar reg)
          Create a ManualWiringContainer object.
 
Method Summary
 Dependency getDependency(java.lang.Object key, ComponentMap cmap)
          Gets the Dependency object for a component key.
 Dependency getDependencyOfType(java.lang.Class type, ComponentMap cmap)
          Gets the Dependency object for a component instance type.
 
Methods inherited from class jfun.yan.containers.ImmutablePreferredContainer
containsType, getComponentOfType, getComponentsOfType, getFactory, getFactory, getFactoryOfType, getFactoryOfType, getInstance, getInstance, getInstanceOfType, getInstanceOfType, registerComponent, unregisterComponent, unregisterComponentsOfType
 
Methods inherited from class jfun.yan.containers.SimpleContainer
containsKey, defaultTransform, equals, getComponent, getComponents, getComponentType, getDelegateTarget, getDependency, getDependencyOfType, getInstances, getInstances, getInstances, getInstances, getInstancesOfType, getInstancesOfType, hashCode, inherit, instantiateComponent, instantiateComponent, instantiateComponent, instantiateComponent, keys, registerComponent, registerConstructor, registerConstructor, registerConstructor, registerConstructor, registerStaticMethod, registerStaticMethod, registerStaticMethod, registerStaticMethod, registerValue, registerValue, toString, verify, verify, verifyComponent, verifyKey, verifyType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManualWiringContainer

public ManualWiringContainer(Registrar reg)
Create a ManualWiringContainer object.

Parameters:
reg - the Registrar object to use.
Method Detail

getDependency

public Dependency getDependency(java.lang.Object key,
                                ComponentMap cmap)
Description copied from interface: ComponentMap
Gets the Dependency object for a component key.

Specified by:
getDependency in interface ComponentMap
Overrides:
getDependency in class SimpleContainer
Parameters:
key - The component key.
cmap - The ComponentMap object from which the parts of the component should be obtained. This parameter is typically passed as 'this' so that the parts are created in the same container. When implementing container interaction such as inheritance, this parameter may be passed as a different ComponentMap object.
Returns:
the Dependency object.

getDependencyOfType

public Dependency getDependencyOfType(java.lang.Class type,
                                      ComponentMap cmap)
Description copied from interface: ComponentMap
Gets the Dependency object for a component instance type.

Specified by:
getDependencyOfType in interface ComponentMap
Overrides:
getDependencyOfType in class SimpleContainer
Parameters:
type - The component instance type.
cmap - The ComponentMap object from which the parts of the component should be obtained. This parameter is typically passed as 'this' so that the parts are created in the same container. When implementing container interaction such as inheritance, this parameter may be passed as a different ComponentMap object.
Returns:
the Dependency object.