@Override public Object invoke( Object proxy, Method method, Object[] args ) throws Throwable { return state.propertyFor( method ); }
@Override public TemplateCollectionModel keys() throws TemplateModelException { return (TemplateCollectionModel) wrapper.wrap( Iterables.map( new Function<PropertyDescriptor, String>() { @Override public String map( PropertyDescriptor propertyDescriptor ) { return propertyDescriptor.qualifiedName().name(); } }, descriptor.state().properties() ).iterator() ); }
return handler.state().propertyFor( accessor );
@Override public TemplateModel get( String key ) throws TemplateModelException { try { return wrapper.wrap( Qi4j.FUNCTION_COMPOSITE_INSTANCE_OF .map( composite ) .state() .propertyFor( descriptor.state().findPropertyModelByName( key ).accessor() ) .get() ); } catch( IllegalArgumentException e ) { return null; } }
.map( (Composite) value ) .state() .propertyFor( persistentProperty.accessor() ) .get();