public class MessageBuilderInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
| Constructor and Description |
|---|
MessageBuilderInvocationHandler(java.util.List<MessageBuilderCall> calls)
Creates a new message builder invocation handler, with initial calls.
|
MessageBuilderInvocationHandler(java.lang.String context)
Creates a new message builder invocation handler.
|
MessageBuilderInvocationHandler(java.lang.String context,
java.lang.Object instance)
Creates a new message builder invocation handler.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
buildMessage()
Build the message based on annotations from methods called previously.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
public MessageBuilderInvocationHandler(java.lang.String context)
context - base context of the generated messagepublic MessageBuilderInvocationHandler(java.lang.String context,
java.lang.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(java.util.List<MessageBuilderCall> calls)
calls - initial calls.public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic java.lang.String buildMessage()
java.lang.IllegalStateException - if one of the recorded call has no @Message/@NotMessage annotation.Copyright © 2018 FluentLenium. All Rights Reserved.