public interface ArgumentsAccessor
ArgumentAccessor
can be used to pass arguments to a constructor or method.Modifier and Type | Method and Description |
---|---|
BeanAccessor<?> |
with(Argument<?>... arguments)
Passes the given arguments to the called constructor or method.
|
BeanAccessor<?> with(Argument<?>... arguments)
Argument.argument(Class, Object)
and pass the primitive class. This
especially applies if you called ClassAccessor.invokeExactConstructor(Argument...)
,
ClassAccessor.invokeExactStatic(String)
or BeanAccessor.invokeExact(String)
before.arguments
- the arguments to be passed. May be empty.BeanAccessor
for the result of the method invocation.Copyright © 2012–2014 The Apache Software Foundation. All rights reserved.