org.topbraid.spin.arq
Class SPINThreadPropertyFunctionRegistry

java.lang.Object
  extended by PropertyFunctionRegistry
      extended by org.topbraid.spin.arq.SPINThreadPropertyFunctionRegistry

public class SPINThreadPropertyFunctionRegistry
extends PropertyFunctionRegistry

An ARQ PropertyFunctionRegistry that can be used to associate functions with Threads, so that additional functions from a given Model can be made visible depending on the SPARQL query thread. Note that this concept only works if ARQ has been set to single threading, which is done by the static block below. The contract of this class is very strict to prevent memory leaks: Users always need to make sure that unregister is called as soon as a query (block) ends.

Author:
Holger Knublauch

Constructor Summary
SPINThreadPropertyFunctionRegistry(PropertyFunctionRegistry base)
           
 
Method Summary
 PropertyFunctionFactory get(java.lang.String uri)
           
 boolean isRegistered(java.lang.String uri)
           
 java.util.Iterator<java.lang.String> keys()
           
 boolean manages(java.lang.String uri)
           
 void put(java.lang.String uri, java.lang.Class<?> extClass)
           
 void put(java.lang.String uri, PropertyFunctionFactory factory)
           
 PropertyFunctionFactory remove(java.lang.String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPINThreadPropertyFunctionRegistry

public SPINThreadPropertyFunctionRegistry(PropertyFunctionRegistry base)
Method Detail

get

public PropertyFunctionFactory get(java.lang.String uri)

isRegistered

public boolean isRegistered(java.lang.String uri)

keys

public java.util.Iterator<java.lang.String> keys()

manages

public boolean manages(java.lang.String uri)

put

public void put(java.lang.String uri,
                java.lang.Class<?> extClass)

put

public void put(java.lang.String uri,
                PropertyFunctionFactory factory)

remove

public PropertyFunctionFactory remove(java.lang.String uri)