Coverage Report - org.apache.tapestry5.services.Alias
 
Classes in this File Line Coverage Branch Coverage Complexity
Alias
N/A
N/A
1
 
 1  
 // Copyright 2006, 2007, 2008 The Apache Software Foundation
 2  
 //
 3  
 // Licensed under the Apache License, Version 2.0 (the "License");
 4  
 // you may not use this file except in compliance with the License.
 5  
 // You may obtain a copy of the License at
 6  
 //
 7  
 //     http://www.apache.org/licenses/LICENSE-2.0
 8  
 //
 9  
 // Unless required by applicable law or agreed to in writing, software
 10  
 // distributed under the License is distributed on an "AS IS" BASIS,
 11  
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12  
 // See the License for the specific language governing permissions and
 13  
 // limitations under the License.
 14  
 
 15  
 package org.apache.tapestry5.services;
 16  
 
 17  
 import org.apache.tapestry5.ioc.ObjectProvider;
 18  
 
 19  
 /**
 20  
  * The Alias service provides an ObjectProvider that fits into the MasterObjectProvider command chain and disambiguates
 21  
  * injections based on type. {@linkplain org.apache.tapestry5.services.AliasContribution Contibutions} to the Alias
 22  
  * service identify the desired service to inject for a particular service interface; this is only necessary when there
 23  
  * is more than one service implementing the same interface.
 24  
  * <p/>
 25  
  * The {@linkplain AliasManager AliasOverrides} service also takes an unordered configuration of {@link
 26  
  * org.apache.tapestry5.services.AliasContribution}; such contributions override the "factory" contributions to the Alias
 27  
  * service itself.  This is often used to replace built-in service implementations with ones that are specific to a
 28  
  * particular application.
 29  
  */
 30  
 public interface Alias
 31  
 {
 32  
     /**
 33  
      * Returns an object provideer that checks the desired type against the service's contributions.
 34  
      */
 35  
     ObjectProvider getObjectProvider();
 36  
 }