public class DecoratorRegistryImpl extends Object implements IDecoratorRegistry
| Modifier and Type | Method and Description |
|---|---|
void |
addDecorator(Class<? extends AbstractStats> clazz,
IDecorator decorator)
Add a decorator instance suitable for given Stats-Class.
|
void |
addDecorator(String clazzName,
IDecorator decorator)
Add a decorator instance suitable for given Stats-Class.
|
IDecorator |
getDecorator(Class<? extends IStats> statsClazz)
Returns the decorator for the given stats class.
|
IDecorator |
getDecorator(IStats stats)
Returns the decorator for the given stats object.
|
IDecorator |
getDecorator(String className)
This method is added to enable remote registry instances work without having the need to transfer the
decorator class via network.
|
List<IDecorator> |
getDecorators()
Returns all known decorators.
|
public IDecorator getDecorator(IStats stats)
IDecoratorRegistrygetDecorator in interface IDecoratorRegistrypublic IDecorator getDecorator(Class<? extends IStats> statsClazz)
IDecoratorRegistrygetDecorator in interface IDecoratorRegistrypublic IDecorator getDecorator(String className)
IDecoratorRegistrygetDecorator in interface IDecoratorRegistrypublic List<IDecorator> getDecorators()
IDecoratorRegistrygetDecorators in interface IDecoratorRegistrypublic void addDecorator(Class<? extends AbstractStats> clazz, IDecorator decorator)
addDecorator in interface IDecoratorRegistryclazz - Statistic-Classdecorator - The decorator to addpublic void addDecorator(String clazzName, IDecorator decorator)
addDecorator in interface IDecoratorRegistryclazzName - Name of Stats-Classdecorator - The decorator to addCopyright © 2010-2015 anotheria.net. All Rights Reserved.