public interface IDecoratorRegistry
| Modifier and Type | Method and Description |
|---|---|
void |
addDecorator(java.lang.Class<? extends AbstractStats> clazz,
IDecorator decorator)
Add a decorator instance suitable for given Stats-Class.
|
void |
addDecorator(java.lang.String clazzName,
IDecorator decorator)
Add a decorator instance suitable for given Stats-Class.
|
IDecorator |
getDecorator(java.lang.Class<? extends IStats> stats)
Returns the decorator for the given stats class.
|
IDecorator |
getDecorator(java.lang.String statsClassName)
This method is added to enable remote registry instances work without having the need to transfer the
decorator class via network.
|
java.util.List<IDecorator> |
getDecorators()
Returns all known decorators.
|
IDecorator |
getStatsObjectSpecificDecorator(DecoratorName decoratorName)
Returns the decorator for the given decorator name.
|
IDecorator |
getStatsObjectSpecificDecorator(IStats stats)
Returns the decorator for the given stats object.
|
IDecorator getStatsObjectSpecificDecorator(IStats stats)
ICustomDecoratorStats
stats object-specific decorator should be returned.stats - stats objectIDecorator getStatsObjectSpecificDecorator(DecoratorName decoratorName)
decoratorName - stats objectjava.util.List<IDecorator> getDecorators()
void addDecorator(java.lang.Class<? extends AbstractStats> clazz, IDecorator decorator)
clazz - Statistic-Classdecorator - The decorator to addvoid addDecorator(java.lang.String clazzName,
IDecorator decorator)
clazzName - Name of Stats-Classdecorator - The decorator to addIDecorator getDecorator(java.lang.Class<? extends IStats> stats)
stats - IDecorator getDecorator(java.lang.String statsClassName)
statsClassName - Copyright © 2010-2020 anotheria.net. All Rights Reserved.