public class MethodLocalizationWrapper
extends java.lang.Object
java.lang.reflect.Method instance and metadata specifying
if its String return value might need localization processing.| Constructor and Description |
|---|
MethodLocalizationWrapper(java.lang.reflect.Method method,
boolean localizable)
Constructs a new
MethodLocalizationWrapper. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Method |
getMethod()
Retrieves the wrapped reflection
Method instance. |
boolean |
isLocalizable()
Checks whether the String result of invoking this method might need localization.
|
public MethodLocalizationWrapper(java.lang.reflect.Method method,
boolean localizable)
MethodLocalizationWrapper.method - The reflection Method object to be wrapped. Must not be null.localizable - A boolean flag: true if the method's String return value
should be processed by the localization logic (i.e. L10n#applyL10n),
false otherwise.public java.lang.reflect.Method getMethod()
Method instance.Method object.public boolean isLocalizable()
true if the result should be localized; false otherwise.Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.