org.apache.tapestry5.ioc.services
Interface ServiceOverride
- All Known Implementing Classes:
- ServiceOverrideImpl
@UsesMappedConfiguration(key=java.lang.Class.class,
value=java.lang.Object.class)
public interface ServiceOverride
Used to override built in services. Simply contribute a mapping from a type to an instance of that type. Anywhere
that exact type is injected, without specifying markers or other annotations, the contributed instance will be
injected, even if there is already a service that implements the interface.
- Since:
- 5.1.0.0
getServiceOverrideProvider
ObjectProvider getServiceOverrideProvider()
- Returns a provider based on the configuration; this is wired into the
MasterObjectProvider's configuration.
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.