org.omnaest.utils.proxy
Class BeanProperty.Accessor

java.lang.Object
  extended by 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...)

Constructor Summary
BeanProperty.Accessor()
           
 
Method Summary
<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() ); }
<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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanProperty.Accessor

public BeanProperty.Accessor()
Method Detail

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.