Class StrategyBuilderImpl
java.lang.Object
org.apache.tapestry5.ioc.internal.services.StrategyBuilderImpl
- All Implemented Interfaces:
StrategyBuilder
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StrategyBuilderImpl
-
-
Method Details
-
build
Description copied from interface:StrategyBuilder
Given a number of adapters implementing the service interface, builds a "dispatcher" implementations that delegates to the one of the adapters. It is an error if any of the methods takes no parameters.- Specified by:
build
in interfaceStrategyBuilder
- Type Parameters:
S
- the service interface type- Parameters:
registry
- defines the adapters based on parameter type (of the first parameter)- Returns:
- a service implementation
-
build
- Specified by:
build
in interfaceStrategyBuilder
registrations
- map frm class to the adapter type- Returns:
- the dispatcher
-