All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.buschmais.xo.impl.proxy.entity.composite.AsMethod Maven / Gradle / Ivy

The newest version!
package com.buschmais.xo.impl.proxy.entity.composite;

import com.buschmais.xo.impl.SessionContext;
import com.buschmais.xo.impl.proxy.common.composite.AbstractAsMethod;

public class AsMethod extends AbstractAsMethod {

    private final SessionContext sessionContext;

    public AsMethod(SessionContext sessionContext) {
        this.sessionContext = sessionContext;
    }

    @Override
    protected Object getInstance(Object instance, Entity entity) {
        return sessionContext.getEntityInstanceManager()
            .readInstance(entity);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy