public class DecoratorRegistryImpl extends java.lang.Object implements 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> statsClazz)
Returns the decorator for the given stats class.
|
IDecorator |
getDecorator(java.lang.String className)
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.
|
public IDecorator getStatsObjectSpecificDecorator(IStats stats)
IDecoratorRegistryICustomDecoratorStats
stats object-specific decorator should be returned.getStatsObjectSpecificDecorator in interface IDecoratorRegistrystats - stats objectpublic IDecorator getStatsObjectSpecificDecorator(DecoratorName decoratorName)
IDecoratorRegistrygetStatsObjectSpecificDecorator in interface IDecoratorRegistrydecoratorName - stats objectpublic IDecorator getDecorator(java.lang.Class<? extends IStats> statsClazz)
IDecoratorRegistrygetDecorator in interface IDecoratorRegistrypublic IDecorator getDecorator(java.lang.String className)
IDecoratorRegistrygetDecorator in interface IDecoratorRegistrypublic java.util.List<IDecorator> getDecorators()
IDecoratorRegistrygetDecorators in interface IDecoratorRegistrypublic void addDecorator(java.lang.Class<? extends AbstractStats> clazz, IDecorator decorator)
addDecorator in interface IDecoratorRegistryclazz - Statistic-Classdecorator - The decorator to addpublic void addDecorator(java.lang.String clazzName,
IDecorator decorator)
addDecorator in interface IDecoratorRegistryclazzName - Name of Stats-Classdecorator - The decorator to addCopyright © 2010-2020 anotheria.net. All Rights Reserved.