You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2015/09/19 14:09:34 UTC

svn commit: r1703996 - /jena/site/trunk/content/documentation/notes/system-initialization.mdtext

Author: andy
Date: Sat Sep 19 12:09:34 2015
New Revision: 1703996

URL: http://svn.apache.org/viewvc?rev=1703996&view=rev
Log:
Edits: Jena initialization

Modified:
    jena/site/trunk/content/documentation/notes/system-initialization.mdtext

Modified: jena/site/trunk/content/documentation/notes/system-initialization.mdtext
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/notes/system-initialization.mdtext?rev=1703996&r1=1703995&r2=1703996&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/notes/system-initialization.mdtext (original)
+++ jena/site/trunk/content/documentation/notes/system-initialization.mdtext Sat Sep 19 12:09:34 2015
@@ -18,16 +18,14 @@ is done when the application first uses
 
 ## Initialization code
 
-Initialzation code is an implementation of `JenaSubsystemLifecycle`.
-and must have a zero-argument constructor.
+Initialzation code is an implementation of `JenaSubsystemLifecycle`
+and the class must have a zero-argument constructor.
 
-```
-public interface JenaSubsystemLifecycle {
-    public void start() ;
-    public void stop() ;
-    default public int level() { return 9999 ; }
-}
-```
+    public interface JenaSubsystemLifecycle {
+        public void start() ;
+        public void stop() ;
+        default public int level() { return 9999 ; }
+    }
 
 The code also supply a level, indicating its place in the order of initialization.
 The levels used by Jena are:
@@ -54,7 +52,7 @@ when in doubt about the initialization s
 Overlapping concurrent calls to `JenaSystem.init()` are thread-safe.
 On a return from `JenaSystem.init()`, Jena has been initialized at some point.
 
-== The Standard Subsystem Registry
+## The Standard Subsystem Registry
 
 The `JenaSubsystemRegistry` normally used is based on `java.util.ServiceLoader`.
 It looks for class resources
@@ -84,7 +82,6 @@ An application can change the `JenaSubsy
 This must be done before any Jena code is called anywhere
 in the current JVM. 
 
-```
     // Example alternative registry.
     JenaSubsystemRegistry r = new JenaSubsystemRegistryBasic() {
         @Override
@@ -103,4 +100,3 @@ in the current JVM.
 
     // Initialize Jena
     JenaSystem.init() ;
-```