|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.rdf.ServiceProviderHook
public class ServiceProviderHook
This static class provides a hook which allows the replacement of services
registered via the openrdf ServiceRegistry pattern which makes use of
the same underlying pattern which is disclosed by the ServiceLoader.
The ServiceRegistry pattern provides a declarative association
between a service and a service provider. The service declarations are
located in META-INF/services/ packages. Each file in such a
package name the service interface and the contents of the file name the
service provider(s). The set of all such service provides located in all such
service packages is registered for a given service interface. For openrdf,
the service provides are initially associated with a key, such as an
RDFFormat, QueryLanguage, etc.
However, this service registration pattern does not support the specification
of a preferred service provider. In the context of multiple service
providers for the same key and service interface, there is no way to
control which service provider will remain in the ServiceRegistry.
This effects things such as the bigdata extension for the RDF/XML parser
which adds support for SIDs mode interchange and the interchange of
StatementEnum metadata.
This class is used to "hook" the various service registeries and force the
use of the bigdata extension when it adds semantics not present in the base
service provider implementation. For such "hooked" services providers, the
service registry pattern using META-INF/services is not
manditory, but following the pattern is never the less recommended.
| Constructor Summary | |
|---|---|
ServiceProviderHook()
|
|
| Method Summary | |
|---|---|
static void |
forceLoad()
This hook may be used to force the load of this class so it can ensure that the bigdata version of a service provider is used instead of the openrdf version. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceProviderHook()
| Method Detail |
|---|
public static void forceLoad()
META-INF/services files.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||