1 5 6 package org.joseki.server.processors; 7 8 import org.joseki.server.*; 9 import org.joseki.server.module.* ; 10 import com.hp.hpl.jena.rdf.model.*; 11 12 16 public abstract class ProcessorCom implements Processor, Loadable 17 { 18 static protected Model emptyModel = ModelFactory.createDefaultModel() ; 20 21 static protected final int ReadOperation = 100 ; 22 static protected final int WriteOperation = 101 ; 23 24 static protected final int MutatesModel = 102 ; 25 static protected final int NoChangeToModel = 103 ; 26 27 protected String opName = null ; 28 protected boolean readOnlyLock = false ; 29 protected boolean mutatingOp = true ; 30 31 public ProcessorCom(String n, int lockNeeded, int mutating) 32 { 33 opName = n ; 34 readOnlyLock = (lockNeeded == ReadOperation) ; 35 mutatingOp = (mutating == MutatesModel) ; 36 } 37 38 40 public void init(Resource processor, Resource implementation) { } 41 } 42 43 44 70 | Popular Tags |