Class LocalisationResolver
java.lang.Object
de.aristaflow.adept2.model.common.defaultimplementation.DefaultWrappingProxy<PluginDataContainer>
de.aristaflow.adept2.model.common.i18n.LocalisationResolver
- All Implemented Interfaces:
Localiser,WrappingProxy,Serializable,InvocationHandler
public class LocalisationResolver
extends de.aristaflow.adept2.model.common.defaultimplementation.DefaultWrappingProxy<PluginDataContainer>
implements Localiser
Transparently resolves translations of localised model objects.
Note the order in which to apply wrappers for localisation! They need to be
applied before the system data consumer (
ParameterRefResolver
)!
- See Also:
-
Field Summary
FieldsFields inherited from class de.aristaflow.adept2.model.common.defaultimplementation.DefaultWrappingProxy
target -
Constructor Summary
ConstructorsConstructorDescriptionLocalisationResolver(PluginDataContainer target, Locale locale) Default constructor. -
Method Summary
Methods inherited from class de.aristaflow.adept2.model.common.defaultimplementation.DefaultWrappingProxy
invoke, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.aristaflow.adept2.model.common.WrappingProxy
isWrapperFor, unwrap
-
Field Details
-
PLUGIN_LOCALISED
The plug-in ID for localisations. FIXME move somewhere else- See Also:
-
-
Constructor Details
-
LocalisationResolver
Default constructor.- Parameters:
target- The target object, containing translation data in the plug-in data.locale- The target locale.
-
-
Method Details
-
invokeSpecific
public Pair<Boolean,Object> invokeSpecific(Object proxy, Method method, Object[] args) throws Throwable - Specified by:
invokeSpecificin classde.aristaflow.adept2.model.common.defaultimplementation.DefaultWrappingProxy<PluginDataContainer>- Throws:
Throwable
-
getLocale
Description copied from interface:LocaliserGets theLocalethat should be used or that is used for localisation of this object or a related object.
-