1 5 6 package org.joseki.server.source; 7 8 import com.hp.hpl.jena.rdf.model.* ; 9 10 import org.joseki.server.module.*; 11 import org.joseki.server.*; 12 import org.apache.commons.logging.* ; 13 14 22 23 public class SourceControllerFileDebug 24 extends SourceControllerFile 25 implements SourceController, Loadable 26 { 27 static Log logger = LogFactory.getLog(SourceControllerFileDebug.class.getName()) ; 28 29 31 34 37 40 public String getInterfaceURI() { return null ; } 41 42 43 44 public void init(Resource binding, Resource implementation) 45 { 46 if ( binding.isAnon() ) 47 logger.info("Binding: []") ; 48 else 49 logger.info("Binding: "+binding.getURI()) ; 50 51 if ( implementation.isAnon() ) 52 logger.info("Implementation: []") ; 53 else 54 logger.info("Implementation: "+implementation.getURI()) ; 55 56 StmtIterator sIter = binding.listProperties() ; 58 for ( ; sIter.hasNext() ;) 59 { 60 Statement s = sIter.nextStatement() ; 61 logger.info(" "+s) ; 62 } 63 } 64 65 68 public ModelSource createSourceModel(Resource description, String _serverURI) 70 { 71 return super.createSourceModel(description, _serverURI) ; 72 } 73 74 public String getServerURI() { return super.getServerURI() ; } 75 76 public void activate() 78 { 79 logger.info("activate: " + getServerURI()); 80 super.activate(); 81 } 82 83 public void deactivate() 85 { 86 logger.info("deactivate: " + getServerURI()); 87 super.deactivate(); 88 } 89 public Model buildSource() 91 { 92 logger.info("buildSource: "+getServerURI()) ; 93 return super.buildSource() ; 94 } 95 96 public void releaseSource() 97 { 98 logger.info("releaseSource: "+getServerURI()) ; 99 super.releaseSource() ; 100 } 101 102 } 103 104 130 | Popular Tags |