org.omnaest.utils.proxy
Class BeanProperty.Accessor
java.lang.Object
org.omnaest.utils.proxy.BeanProperty.Accessor
- Enclosing class:
- BeanProperty
public class BeanProperty.Accessor
- extends Object
BeanPropertyAccessorresolver for a Java BeanProperty
- See Also:
of(Object),
of(Object...)
|
Method Summary |
|
of(Object... methodCalls)
{
TestClass testClass = this.beanProperty.newInstanceOfTransitivlyCapturedType( TestClass.class );
BeanPropertyAccessors<TestClass> beanPropertyAccessors = this.beanProperty.accessor.of( testClass.getFieldString(),
testClass.getTestClass()
.getFieldDouble() );
}
|
|
of(Object methodCall)
Returns the BeanPropertyAccessor related to the last method call done from the stub created by the
BeanProperty.newInstanceOfCapturedType(Class) method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanProperty.Accessor
public BeanProperty.Accessor()
of
public <B> BeanPropertyAccessor<B> of(Object methodCall)
- Returns the
BeanPropertyAccessor related to the last method call done from the stub created by the
BeanProperty.newInstanceOfCapturedType(Class) method.
This should be used like
{
TestInterface testInterface = this.beanProperty.newInstanceOfTransitivlyCapturedType( TestInterface.class );
String propertyName = this.beanProperty.accessor.of( testInterface.getSomething() );
}
where the stub is a previously created stub by this BeanProperty instance.
- Parameters:
methodCall -
- Returns:
- See Also:
of(Object...),
BeanProperty.newInstanceOfCapturedType(Class)
of
public <B> BeanPropertyAccessors<B> of(Object... methodCalls)
{
TestClass testClass = this.beanProperty.newInstanceOfTransitivlyCapturedType( TestClass.class );
BeanPropertyAccessors<TestClass> beanPropertyAccessors = this.beanProperty.accessor.of( testClass.getFieldString(),
testClass.getTestClass()
.getFieldDouble() );
}
- Parameters:
methodCalls -
- Returns:
- See Also:
of(Object),
BeanProperty.newInstanceOfCapturedType(Class)
Copyright © 2013. All Rights Reserved.