Package org.apache.tapestry5.services
Interface ComponentOverride
- 
- All Known Implementing Classes:
- ComponentOverrideImpl
 
 @UsesMappedConfiguration(key=java.lang.Class.class, value=java.lang.Class.class) public interface ComponentOverride Service that allows replacing one component, page or mixin class by another without changing the sources. This service shouldn't be used directly: it's not an internal service just because it receives contributions. Contributions to it are mapped: the key is the component, page or mixin class to be replaced, the value is the replacement.- Since:
- 5.4
- See Also:
- ComponentClassResolver
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassgetReplacement(String className)Returns the replacement for a class given its name.booleanhasReplacements()Returns true if the service configuration is non-empty.
 
- 
- 
- 
Method Detail- 
hasReplacementsboolean hasReplacements() Returns true if the service configuration is non-empty.
 - 
getReplacementClass getReplacement(String className) Returns the replacement for a class given its name.- Parameters:
- className- the fully qualified class name.
- Returns:
- a Classor null.
 
 
- 
 
-