public class MessageBuilderInvocationHandler extends Object implements InvocationHandler
| Constructor and Description |
|---|
MessageBuilderInvocationHandler(List<MessageBuilderCall> calls)
Creates a new message builder invocation handler, with initial calls.
|
MessageBuilderInvocationHandler(String context)
Creates a new message builder invocation handler.
|
MessageBuilderInvocationHandler(String context,
Object instance)
Creates a new message builder invocation handler.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildMessage()
Build the message based on annotations from methods called previously.
|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
public MessageBuilderInvocationHandler(String context)
context - base context of the generated messagepublic MessageBuilderInvocationHandler(String context, Object instance)
context - base context of the generated messageinstance - underlying wrapped instance. If not null, calls will also be performed on this instance.public MessageBuilderInvocationHandler(List<MessageBuilderCall> calls)
calls - initial calls.public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic String buildMessage()
IllegalStateException - if one of the recorded call has no @Message/@NotMessage annotation.Copyright © 2016 FluentLenium. All Rights Reserved.