Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 // Copyright 2006, 2007, 2008, 2010 The Apache Software Foundation
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.
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.

public interface Alias
Returns an object provider that checks the desired type against the service's contributions.
New to GrepCode? Check out our FAQ X