public class JenaSubsystemRegistryBasic extends Object implements JenaSubsystemRegistry
JenaSubsystemRegistry
for use in the simple
but common case of running Jena as a collection of jars
on the classpath.
Uses ServiceLoader
to find sub-systems.
Constructor and Description |
---|
JenaSubsystemRegistryBasic() |
Modifier and Type | Method and Description |
---|---|
void |
add(JenaSubsystemLifecycle module)
Add to the collection.
|
boolean |
isEmpty() |
boolean |
isRegistered(JenaSubsystemLifecycle module)
check whether registered
|
void |
load()
Load - perform some kinds of search for
JenaSubsystemLifecycle implementations. |
void |
remove(JenaSubsystemLifecycle module)
Remove from the collection.
|
int |
size() |
List<JenaSubsystemLifecycle> |
snapshot()
Return the registered items in a copied list.
|
public void load()
JenaSubsystemRegistry
JenaSubsystemLifecycle
implementations.
This is called once in the initialization process.load
in interface JenaSubsystemRegistry
public void add(JenaSubsystemLifecycle module)
JenaSubsystemRegistry
add
in interface JenaSubsystemRegistry
public boolean isRegistered(JenaSubsystemLifecycle module)
JenaSubsystemRegistry
isRegistered
in interface JenaSubsystemRegistry
public void remove(JenaSubsystemLifecycle module)
JenaSubsystemRegistry
remove
in interface JenaSubsystemRegistry
public int size()
size
in interface JenaSubsystemRegistry
public boolean isEmpty()
isEmpty
in interface JenaSubsystemRegistry
public List<JenaSubsystemLifecycle> snapshot()
JenaSubsystemRegistry
snapshot
in interface JenaSubsystemRegistry
Licenced under the Apache License, Version 2.0