org.apache.tapestry5.internal.services
Class AliasManagerImpl

java.lang.Object
  extended by org.apache.tapestry5.internal.services.AliasManagerImpl
All Implemented Interfaces:
AliasManager

public class AliasManagerImpl
extends Object
implements AliasManager


Constructor Summary
AliasManagerImpl(org.slf4j.Logger logger, Collection<AliasContribution> contributions)
           
 
Method Summary
 Map<Class,Object> getAliasesForMode(String mode)
          Filters down the contributions based on the mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AliasManagerImpl

public AliasManagerImpl(org.slf4j.Logger logger,
                        Collection<AliasContribution> contributions)
Method Detail

getAliasesForMode

public Map<Class,Object> getAliasesForMode(String mode)
Description copied from interface: AliasManager
Filters down the contributions based on the mode. Each contribution will identify a contribution type and a non-null object that implements the type and may identify a mode. Only contributions where the mode is blank or the mode matches the provided mode are returned. Mode specific contributions quietly override non-specific contributions (where the mode is blank).

Specified by:
getAliasesForMode in interface AliasManager
Returns:
map from contribution type to contribution object


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.