Module org.apache.jena.base
Package org.apache.jena.base.module
Interface SubsystemRegistry<T extends SubsystemLifecycle>
- All Known Implementing Classes:
SubsystemRegistryServiceLoader
public interface SubsystemRegistry<T extends SubsystemLifecycle>
A
JenaSubsystemRegistry is a set of objects implementing SubsystemLifecycle.-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd to the collection.booleanisEmpty()booleanisRegistered(T module) check whether registeredvoidload()Load - perform some kinds of search forSubsystemLifecycleimplementations.voidRemove from the collection.intsize()snapshot()Return the registered items in a copied list.
-
Method Details
-
load
void load()Load - perform some kinds of search forSubsystemLifecycleimplementations. This is called once in the initialization process.The registry must load object of class T. If using the
ServiceLoader, the registry implementation will need an object ofClass<T>. -
add
Add to the collection. -
isRegistered
check whether registered -
remove
Remove from the collection. -
size
int size() -
isEmpty
boolean isEmpty() -
snapshot
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.
-