org.objectledge.pico
Class AliasComponentAdapter
java.lang.Object
org.picocontainer.defaults.DecoratingComponentAdapter
org.objectledge.pico.AliasComponentAdapter
- All Implemented Interfaces:
- Serializable, org.picocontainer.ComponentAdapter
public class AliasComponentAdapter
- extends org.picocontainer.defaults.DecoratingComponentAdapter
Allows registering a component under several different keys.
- Version:
- $Id: AliasComponentAdapter.java,v 1.1 2005/02/04 02:27:49 rafal Exp $
- Author:
- Rafal Krzewski
- See Also:
- Serialized Form
|
Constructor Summary |
AliasComponentAdapter(Object key,
org.picocontainer.ComponentAdapter delegate)
Creates new AliasComponentAdapter instance. |
| Methods inherited from class org.picocontainer.defaults.DecoratingComponentAdapter |
accept, getComponentImplementation, getComponentInstance, getDelegate, toString, verify |
aliasKey
private final Object aliasKey
- The key of the alias.
AliasComponentAdapter
public AliasComponentAdapter(Object key,
org.picocontainer.ComponentAdapter delegate)
- Creates new AliasComponentAdapter instance.
- Parameters:
key - the alias key.delegate - the delegate adapter.
getComponentKey
public Object getComponentKey()
-
- Specified by:
getComponentKey in interface org.picocontainer.ComponentAdapter- Overrides:
getComponentKey in class org.picocontainer.defaults.DecoratingComponentAdapter
Copyright © 2003-2006 objectledge.org. All Rights Reserved.