/*
* 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());
}
}