Coverage Report - org.apache.tapestry5.services.AliasManager
 
Classes in this File Line Coverage Branch Coverage Complexity
AliasManager
N/A
N/A
0
 
 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.annotations.UsesConfiguration;
 18  
 
 19  
 import java.util.Map;
 20  
 
 21  
 /**
 22  
  * A thin wrapper around a set of {@link org.apache.tapestry5.services.AliasContribution}s. An {@link
 23  
  * org.apache.tapestry5.ioc.ObjectProvider} is contributed to the {@link org.apache.tapestry5.ioc.services.MasterObjectProvider}
 24  
  * service, to allow contributed objects to replace other objects (typically, built in services).
 25  
  */
 26  
 @UsesConfiguration(AliasContribution.class)
 27  
 public interface AliasManager
 28  
 {
 29  
     /**
 30  
      * Filters down the contributions based on the mode. Each {@link AliasContribution contribution} will identify a
 31  
      * contribution type and a non-null object that implements the type and may identify a mode. Only contributions
 32  
      * where the mode is blank or the mode matches the provided mode are returned. Mode specific contributions quietly
 33  
      * override non-specific contributions (where the mode is blank).
 34  
      *
 35  
      * @param mode
 36  
      * @return map from contribution type to contribution object
 37  
      */
 38  
     Map<Class, Object> getAliasesForMode(String mode);
 39  
 }