com.buschmais.xo.impl.proxy.relation.property.EntityReferencePropertyGetMethod Maven / Gradle / Ivy
The newest version!
package com.buschmais.xo.impl.proxy.relation.property;
import com.buschmais.xo.api.metadata.method.EntityReferencePropertyMethodMetadata;
import com.buschmais.xo.impl.RelationPropertyManager;
import com.buschmais.xo.impl.proxy.common.property.AbstractPropertyMethod;
public class EntityReferencePropertyGetMethod
extends AbstractPropertyMethod, EntityReferencePropertyMethodMetadata> {
public EntityReferencePropertyGetMethod(RelationPropertyManager propertyManager, EntityReferencePropertyMethodMetadata metadata) {
super(propertyManager, metadata);
}
public Object invoke(Relation relation, Object instance, Object[] args) {
return getPropertyManager().getEntityReference(relation, getMetadata());
}
}