public class SKDMessages
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
public interface CompareViewMessages
{
@SKDMessage(text="Scenario: {0}")
public String scenario_title(String name);
@SKDMessage(text="Show Gantt")
public String show_gannt();
}
MessageFormat
for formatting
CompareViewMessages messages = SKDMessages.create(CompareViewMessages.class)
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
create(java.lang.Class<T> messages)
Given a message interface, ie an interface that is annoated using
SKDMessage, and optionally SKDMessageGroup
then create an instance class that is capable fetching messages. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Fetch a message for the given method name or key on the
SKDMessage annotation for the method. |
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
SKDMessage annotation for the method. If a message
lookup fails, then then the default text from the SKDMessage is returnedinvoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic static <T> T create(java.lang.Class<T> messages)
SKDMessage, and optionally SKDMessageGroup
then create an instance class that is capable fetching messages.T - messages -