org.objectledge.pico
Class AliasComponentAdapter

java.lang.Object
  extended by org.picocontainer.defaults.DecoratingComponentAdapter
      extended by 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

Field Summary
private  Object aliasKey
          The key of the alias.
 
Constructor Summary
AliasComponentAdapter(Object key, org.picocontainer.ComponentAdapter delegate)
          Creates new AliasComponentAdapter instance.
 
Method Summary
 Object getComponentKey()
          
 
Methods inherited from class org.picocontainer.defaults.DecoratingComponentAdapter
accept, getComponentImplementation, getComponentInstance, getDelegate, toString, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

aliasKey

private final Object aliasKey
The key of the alias.

Constructor Detail

AliasComponentAdapter

public AliasComponentAdapter(Object key,
                             org.picocontainer.ComponentAdapter delegate)
Creates new AliasComponentAdapter instance.

Parameters:
key - the alias key.
delegate - the delegate adapter.
Method Detail

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.