Interface RDFServiceFactory
-
- All Known Implementing Classes:
LoggingRDFServiceFactory,RDFServiceFactorySDB,RDFServiceFactorySingle,SameAsFilteringRDFServiceFactory
public interface RDFServiceFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RDFServicegetRDFService()RDFServicegetShortTermRDFService()Returns an instance of RDFService that may not support being left idle for long periods of time.voidregisterJenaModelChangedListener(org.apache.jena.rdf.model.ModelChangedListener changeListener)Registers a Jena ModelChangedListener to listen to changes in any graph in the RDF store.voidregisterListener(ChangeListener changeListener)Registers a listener to listen to changes in any graph in the RDF store.voidunregisterJenaModelChangedListener(org.apache.jena.rdf.model.ModelChangedListener changeListener)Unregisters a Jena ModelChangedListener from listening to changes in the RDF store.voidunregisterListener(ChangeListener changeListener)Unregisters a listener from listening to changes in the RDF store.
-
-
-
Method Detail
-
getRDFService
RDFService getRDFService()
- Returns:
- RDFService - an RDFService instance
-
getShortTermRDFService
RDFService getShortTermRDFService()
Returns an instance of RDFService that may not support being left idle for long periods of time. RDFService instances returned by this method should be immediately used and closed, not stored in (for example) session or context attributes. This method exists to enable performance improvements resulting from a lack of need to handle database connection or other service timeouts and reconnects. The results provided by RDFService instances returned by this method must be identical to those provided by instances returned by getRDFService().- Returns:
- RDFService - an RDFService instance
-
registerListener
void registerListener(ChangeListener changeListener) throws RDFServiceException
Registers a listener to listen to changes in any graph in the RDF store. Any RDFService objects returned by this factory should notify this listener of changes.- Parameters:
changeListener- - the change listener- Throws:
RDFServiceException
-
unregisterListener
void unregisterListener(ChangeListener changeListener) throws RDFServiceException
Unregisters a listener from listening to changes in the RDF store. Any RDFService objects returned by this factory should no longer notify this listener of changes.- Parameters:
changeListener- - the change listener- Throws:
RDFServiceException
-
registerJenaModelChangedListener
void registerJenaModelChangedListener(org.apache.jena.rdf.model.ModelChangedListener changeListener) throws RDFServiceExceptionRegisters a Jena ModelChangedListener to listen to changes in any graph in the RDF store. Any RDFService objects returned by this factory should notify this listener of changes.- Parameters:
changeListener- - the change listener- Throws:
RDFServiceException
-
unregisterJenaModelChangedListener
void unregisterJenaModelChangedListener(org.apache.jena.rdf.model.ModelChangedListener changeListener) throws RDFServiceExceptionUnregisters a Jena ModelChangedListener from listening to changes in the RDF store. Any RDFService objects returned by this factory should no longer notify this listener of changes.- Parameters:
changeListener- - the change listener- Throws:
RDFServiceException
-
-