T
- the type of the decorated object.public class I18nTextMethodDecorator<T>
extends com.thoughtworks.proxy.toys.decorate.Decorator<T>
Decorator
which decorates methods by delegating to the given TranslationService
.Constructor and Description |
---|
I18nTextMethodDecorator(TranslationService translationService,
LocaleProvider localeProvider,
I18nKeyGenerator keyGenerator) |
Modifier and Type | Method and Description |
---|---|
protected Object |
decorate(String undecoratedResult,
T proxiedObject,
Method method) |
Object |
decorateResult(T proxy,
Method method,
Object[] args,
Object result) |
public I18nTextMethodDecorator(TranslationService translationService, LocaleProvider localeProvider, I18nKeyGenerator keyGenerator)
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.