org.apache.tapestry5.services
Interface AliasManager

All Known Implementing Classes:
AliasManagerImpl

@UsesConfiguration(value=AliasContribution.class)
public interface AliasManager

A thin wrapper around a set of AliasContributions. An ObjectProvider is contributed to the MasterObjectProvider service, to allow contributed objects to replace other objects (typically, built in services).


Method Summary
 Map<Class,Object> getAliasesForMode(String mode)
          Filters down the contributions based on the mode.
 

Method Detail

getAliasesForMode

Map<Class,Object> getAliasesForMode(String mode)
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).

Parameters:
mode -
Returns:
map from contribution type to contribution object


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