Package clips.delegate.DEC

Source Code of clips.delegate.DEC.DECServiceRender

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package clips.delegate.DEC;

import cli_fmw.delegate.*;
import cli_fmw.delegate.cache.DelegateSecondaryCacheDgt;
import clips.delegate.service.SerRenLocal;
import cli_fmw.main.ClipsException;
import beans.DEC.HasServiceRenderID;

/**
*
* @author axe
*/
public class DECServiceRender extends DelegateSecondaryCacheDgt<SerRenLocal>{
    DelegateLine2<?, ? extends HasServiceRenderID> dl2;
    private AuditListener al;
   
    public DECServiceRender(DelegateLine2<?, ? extends HasServiceRenderID> dl2, String readableException, AuditListener al) throws ClipsException {
        super(dl2.getSCM(), true, readableException);
        this.al = al;
        this.dl2 = dl2;
    }
   
    @Override
    protected SerRenLocal init() throws Exception {
        return new SerRenLocal(dl2.getDetails().getServiceRenderID(), al);
    }

    @Override
    protected void setPrimary(SerRenLocal type) throws ClipsException {
        dl2.getDetails().setServiceRenderID(type.getID());
    }
}
TOP

Related Classes of clips.delegate.DEC.DECServiceRender

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.