org.apache.tapestry5.services
Interface Alias

All Known Implementing Classes:
AliasImpl

Deprecated. Use ServiceOverride instead

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

The Alias service provides an ObjectProvider that fits into the MasterObjectProvider command chain and disambiguates injections based on type. Contibutions to the Alias service identify the desired service to inject for a particular service interface; this is only necessary when there is more than one service implementing the same interface.

The AliasManager service also takes an unordered configuration of AliasContribution; such contributions override the "factory" contributions to the Alias service itself. This is often used to replace built-in service implementations with ones that are specific to a particular application.


Method Summary
 ObjectProvider getObjectProvider()
          Deprecated. Returns an object provider that checks the desired type against the service's contributions.
 

Method Detail

getObjectProvider

ObjectProvider getObjectProvider()
Deprecated. 
Returns an object provider that checks the desired type against the service's contributions.



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