This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new 94dd8d5  ISIS-1902 setup datanucleus extension plugin requirements
94dd8d5 is described below

commit 94dd8d5d470ca77999528c9ad76add0db469e0cd
Author: Andi Huber <ahu...@apache.org>
AuthorDate: Thu Mar 8 06:53:01 2018 +0100

    ISIS-1902 setup datanucleus extension plugin requirements
    
    as according to doc [1] chapter 1. Plugin Mechanism
    
[1]http://www.datanucleus.org/products/accessplatform/extensions/extensions.html
---
 .../core/runtime/system/persistence/PersistenceSessionFactory4.java | 3 +++
 .../jdo-datanucleus-4/src/main/resources/META-INF/MANIFEST.MF       | 6 ++++++
 .../jdo-datanucleus-4}/src/main/resources/plugin.xml                | 0
 .../core/runtime/system/persistence/PersistenceSessionFactory5.java | 4 ++++
 .../jdo-datanucleus-5/src/main/resources/META-INF/MANIFEST.MF       | 6 ++++++
 .../jdo-datanucleus-5}/src/main/resources/plugin.xml                | 0
 .../core/runtime/system/persistence/PersistenceSessionFactory.java  | 3 +++
 7 files changed, 22 insertions(+)

diff --git 
a/core/plugins/jdo-datanucleus-4/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSessionFactory4.java
 
b/core/plugins/jdo-datanucleus-4/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSessionFactory4.java
index f4a70e2..0f9a592 100644
--- 
a/core/plugins/jdo-datanucleus-4/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSessionFactory4.java
+++ 
b/core/plugins/jdo-datanucleus-4/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSessionFactory4.java
@@ -66,11 +66,13 @@ PersistenceSessionFactory, ApplicationScopedComponent, 
FixturesInstalledFlag {
     private DataNucleusApplicationComponents4 applicationComponents;
 
     @Programmatic
+    @Override
     public void init(final SpecificationLoader specificationLoader) {
         this.applicationComponents = 
createDataNucleusApplicationComponents(configuration, specificationLoader);
     }
 
     @Programmatic
+    @Override
     public boolean isInitialized() {
         return this.applicationComponents != null;
     }
@@ -155,6 +157,7 @@ PersistenceSessionFactory, ApplicationScopedComponent, 
FixturesInstalledFlag {
     }
 
     @Programmatic
+    @Override
     public final void shutdown() {
         if(!isInitialized()) {
             return;
diff --git 
a/core/plugins/jdo-datanucleus-4/src/main/resources/META-INF/MANIFEST.MF 
b/core/plugins/jdo-datanucleus-4/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..16106c4
--- /dev/null
+++ b/core/plugins/jdo-datanucleus-4/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,6 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Apache Isis JDO ObjectStore DataNucleus 4 Implementation
+Bundle-SymbolicName: org.apache.isis.objectstore.jdo.datanucleus
+Bundle-Version: 1.0.0
+Bundle-Vendor: Apache Isis
diff --git a/core/runtime/src/main/resources/plugin.xml 
b/core/plugins/jdo-datanucleus-4/src/main/resources/plugin.xml
similarity index 100%
copy from core/runtime/src/main/resources/plugin.xml
copy to core/plugins/jdo-datanucleus-4/src/main/resources/plugin.xml
diff --git 
a/core/plugins/jdo-datanucleus-5/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSessionFactory5.java
 
b/core/plugins/jdo-datanucleus-5/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSessionFactory5.java
index 24d0c2f..90e1231 100644
--- 
a/core/plugins/jdo-datanucleus-5/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSessionFactory5.java
+++ 
b/core/plugins/jdo-datanucleus-5/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSessionFactory5.java
@@ -66,11 +66,13 @@ implements PersistenceSessionFactory, 
ApplicationScopedComponent, FixturesInstal
     private DataNucleusApplicationComponents5 applicationComponents;
 
     @Programmatic
+    @Override
     public void init(final SpecificationLoader specificationLoader) {
         this.applicationComponents = 
createDataNucleusApplicationComponents(configuration, specificationLoader);
     }
 
     @Programmatic
+    @Override
     public boolean isInitialized() {
         return this.applicationComponents != null;
     }
@@ -155,6 +157,7 @@ implements PersistenceSessionFactory, 
ApplicationScopedComponent, FixturesInstal
     }
 
     @Programmatic
+    @Override
     public final void shutdown() {
         if(!isInitialized()) {
             return;
@@ -169,6 +172,7 @@ implements PersistenceSessionFactory, 
ApplicationScopedComponent, FixturesInstal
      * Called by {@link 
org.apache.isis.core.runtime.system.session.IsisSessionFactory#openSession(AuthenticationSession)}.
      */
     @Programmatic
+    @Override
     public PersistenceSession5 createPersistenceSession(
             final ServicesInjector servicesInjector,
             final AuthenticationSession authenticationSession) {
diff --git 
a/core/plugins/jdo-datanucleus-5/src/main/resources/META-INF/MANIFEST.MF 
b/core/plugins/jdo-datanucleus-5/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..373f12c
--- /dev/null
+++ b/core/plugins/jdo-datanucleus-5/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,6 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Apache Isis JDO ObjectStore DataNucleus 5 Implementation
+Bundle-SymbolicName: org.apache.isis.objectstore.jdo.datanucleus
+Bundle-Version: 1.1.0
+Bundle-Vendor: Apache Isis
diff --git a/core/runtime/src/main/resources/plugin.xml 
b/core/plugins/jdo-datanucleus-5/src/main/resources/plugin.xml
similarity index 100%
rename from core/runtime/src/main/resources/plugin.xml
rename to core/plugins/jdo-datanucleus-5/src/main/resources/plugin.xml
diff --git 
a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSessionFactory.java
 
b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSessionFactory.java
index 7e78f39..42e0014 100644
--- 
a/core/runtime/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSessionFactory.java
+++ 
b/core/runtime/src/main/java/org/apache/isis/core/runtime/system/persistence/PersistenceSessionFactory.java
@@ -14,6 +14,8 @@ public interface PersistenceSessionFactory {
                        AuthenticationSession authenticationSession);
 
        void init(SpecificationLoader specificationLoader);
+
+       boolean isInitialized();
        
        void shutdown();
        
@@ -23,4 +25,5 @@ public interface PersistenceSessionFactory {
                return 
IsisJdoRuntimePlugin.get().getPersistenceSessionFactory(configuration);
        }
 
+
 }

-- 
To stop receiving notification emails like this one, please contact
ahu...@apache.org.

Reply via email to