]> git.mxchange.org Git - jcountry-lib.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Sun, 11 Oct 2015 20:00:08 +0000 (22:00 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 11 Oct 2015 20:00:08 +0000 (22:00 +0200)
- added Java EE 7 API
- added remote interface for singleton country data retrieval
- added .gitignore + dist.sh

.gitignore [new file with mode: 0644]
dist.sh [new file with mode: 0755]
lib/cdi-api.jar [new file with mode: 0644]
lib/javaee-api-7.0/javaee-api-7.0.jar [new file with mode: 0644]
lib/javaee-api-7.0/javaee-doc-api.jar [new file with mode: 0644]
lib/nblibraries.properties
nbproject/project.properties
src/org/mxchange/jcountry/data/CountrySingletonBeanRemote.java [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..0383bcc
--- /dev/null
@@ -0,0 +1,7 @@
+/nbproject/private/
+/nbproject/*~
+/manifest.mf
+/build/
+/dist/
+/data/*
+/*.properties
diff --git a/dist.sh b/dist.sh
new file mode 100755 (executable)
index 0000000..f48251e
--- /dev/null
+++ b/dist.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="${PWD##*/}"
+DIST="dist/${NAME}.jar"
+LIST=`find ../*/lib/${NAME}.jar`
+LIST="${LIST} `find ../*/*-ejb/lib/${NAME}.jar`"
+LIST="${LIST} ${HOME}/gf_domains/domain1/lib/"
+
+for target in ${LIST};
+do
+       if [ ! -f "${DIST}" ]
+       then
+               echo "$0: '${DIST}' not found."
+       elif [ -d "${target}" ]
+       then
+               cp -v "${DIST}" "${target}"
+       elif [ -f "${target}" ]
+       then
+               cp -v "${DIST}" "${target}"
+       else
+               echo "$0: Target '${target}' not found."
+       fi
+done
diff --git a/lib/cdi-api.jar b/lib/cdi-api.jar
new file mode 100644 (file)
index 0000000..1fa239e
Binary files /dev/null and b/lib/cdi-api.jar differ
diff --git a/lib/javaee-api-7.0/javaee-api-7.0.jar b/lib/javaee-api-7.0/javaee-api-7.0.jar
new file mode 100644 (file)
index 0000000..09de736
Binary files /dev/null and b/lib/javaee-api-7.0/javaee-api-7.0.jar differ
diff --git a/lib/javaee-api-7.0/javaee-doc-api.jar b/lib/javaee-api-7.0/javaee-doc-api.jar
new file mode 100644 (file)
index 0000000..bdebe91
Binary files /dev/null and b/lib/javaee-api-7.0/javaee-doc-api.jar differ
index 6d0afb59d64978f1c42b37eda93de4d6acaa674c..1f1df427e12615ae2880d19c49e1903396a894ce 100644 (file)
@@ -2,3 +2,9 @@ libs.CopyLibs.classpath=\
     ${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
 libs.CopyLibs.displayName=CopyLibs Task
 libs.CopyLibs.prop-version=2.0
+libs.javaee-api-7.0.classpath=\
+    ${base}/javaee-api-7.0/javaee-api-7.0.jar
+libs.javaee-api-7.0.displayName=Java EE 7 API Library
+libs.javaee-api-7.0.javadoc=\
+    ${base}/javaee-api-7.0/javaee-doc-api.jar
+libs.javaee-api-7.0.prop-maven-dependencies=javax:javaee-api:7.0:jar
index 7a4c3a860438f6ad9c10420035e838d8b9a751bd..0f81dea15699f05ce0673e8179287b82de46fb3e 100644 (file)
@@ -29,11 +29,14 @@ dist.jar=${dist.dir}/jcountry-lib.jar
 dist.javadoc.dir=${dist.dir}/javadoc
 endorsed.classpath=
 excludes=
+file.reference.cdi-api.jar=lib/cdi-api.jar
 file.reference.jcountry-core.jar=lib/jcountry-core.jar
 includes=**
 jar.compress=false
 javac.classpath=\
-    ${file.reference.jcountry-core.jar}
+    ${file.reference.jcountry-core.jar}:\
+    ${libs.javaee-api-7.0.classpath}:\
+    ${file.reference.cdi-api.jar}
 # Space-separated list of extra javac options
 javac.compilerargs=-Xlint:unchecked -Xlint:deprecation
 javac.deprecation=true
diff --git a/src/org/mxchange/jcountry/data/CountrySingletonBeanRemote.java b/src/org/mxchange/jcountry/data/CountrySingletonBeanRemote.java
new file mode 100644 (file)
index 0000000..0ac8e9c
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2015 Roland Haeder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jcountry.data;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * A remote interface for country informations
+ * <p>
+ * @author Roland Haeder
+ */
+public interface CountrySingletonBeanRemote extends Serializable {
+
+       /**
+        * All registered countries
+        * <p>
+        * @return A list of all countries
+        */
+       public List<Country> allCountries ();
+}