Package org.apache.jena.sys
Class JenaSubsystemRegistryBasic
- java.lang.Object
-
- org.apache.jena.sys.JenaSubsystemRegistryBasic
-
- All Implemented Interfaces:
JenaSubsystemRegistry
public class JenaSubsystemRegistryBasic extends java.lang.Object implements JenaSubsystemRegistry
Implementation ofJenaSubsystemRegistry
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 Summary
Constructors Constructor Description JenaSubsystemRegistryBasic()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(JenaSubsystemLifecycle module)
Add to the collection.boolean
isEmpty()
boolean
isRegistered(JenaSubsystemLifecycle module)
check whether registeredvoid
load()
Load - perform some kinds of search forJenaSubsystemLifecycle
implementations.void
remove(JenaSubsystemLifecycle module)
Remove from the collection.int
size()
java.util.List<JenaSubsystemLifecycle>
snapshot()
Return the registered items in a copied list.
-
-
-
Method Detail
-
load
public void load()
Description copied from interface:JenaSubsystemRegistry
Load - perform some kinds of search forJenaSubsystemLifecycle
implementations. This is called once in the initialization process.- Specified by:
load
in interfaceJenaSubsystemRegistry
-
add
public void add(JenaSubsystemLifecycle module)
Description copied from interface:JenaSubsystemRegistry
Add to the collection.- Specified by:
add
in interfaceJenaSubsystemRegistry
-
isRegistered
public boolean isRegistered(JenaSubsystemLifecycle module)
Description copied from interface:JenaSubsystemRegistry
check whether registered- Specified by:
isRegistered
in interfaceJenaSubsystemRegistry
-
remove
public void remove(JenaSubsystemLifecycle module)
Description copied from interface:JenaSubsystemRegistry
Remove from the collection.- Specified by:
remove
in interfaceJenaSubsystemRegistry
-
size
public int size()
- Specified by:
size
in interfaceJenaSubsystemRegistry
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceJenaSubsystemRegistry
-
snapshot
public java.util.List<JenaSubsystemLifecycle> snapshot()
Description copied from interface:JenaSubsystemRegistry
Return the registered items in a copied list. The list is detached from the registry and the caller can mutate it. There is no specific ordering requirement.- Specified by:
snapshot
in interfaceJenaSubsystemRegistry
-
-