public interface 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> stats)
Returns the decorator for the given stats class.
|
IDecorator |
getDecorator(IStats stats)
Deprecated.
|
IDecorator |
getDecorator(String statsClassName)
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.
|
@Deprecated IDecorator getDecorator(IStats stats)
stats - List<IDecorator> getDecorators()
void addDecorator(Class<? extends AbstractStats> clazz, IDecorator decorator)
clazz - Statistic-Classdecorator - The decorator to addvoid addDecorator(String clazzName, IDecorator decorator)
clazzName - Name of Stats-Classdecorator - The decorator to addIDecorator getDecorator(Class<? extends IStats> stats)
stats - IDecorator getDecorator(String statsClassName)
statsClassName - Copyright © 2010-2015 anotheria.net. All Rights Reserved.