public abstract class ConstantsInvocationHandler extends Object implements InvocationHandler
| Constructor and Description |
|---|
ConstantsInvocationHandler(Class<?> targetInterface) |
ConstantsInvocationHandler(Class<?> targetInterface,
boolean isCacheable) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getMessageFromAnnotation(Method method,
Object[] args,
String name) |
protected String |
getMessageFromProperties(Object[] args,
String name) |
protected abstract <T> PropertyResourceBundle |
getPropertiesForLocale(Class<T> targetInterface) |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
protected void |
invokeSetter(Method method,
Object[] args) |
protected boolean |
isValidPropertySetter(Method method) |
protected static PropertyResourceBundle |
loadProperties(Class<?> targetInterface,
Locale locale) |
public ConstantsInvocationHandler(Class<?> targetInterface, boolean isCacheable)
targetInterface - public ConstantsInvocationHandler(Class<?> targetInterface)
targetInterface - public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowableprotected String getMessageFromProperties(Object[] args, String name)
args - name - protected String getMessageFromAnnotation(Method method, Object[] args, String name)
method - args - name - protected boolean isValidPropertySetter(Method method)
method - protected void invokeSetter(Method method, Object[] args)
properties - method - args - protected static PropertyResourceBundle loadProperties(Class<?> targetInterface, Locale locale)
targetInterface - locale - protected abstract <T> PropertyResourceBundle getPropertiesForLocale(Class<T> targetInterface)
T - targetInterface - Copyright © 2016. All rights reserved.