[mapguide-commits] r7219 - sandbox/jng/swig-java/Web/src/JavaApiEx

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Nov 23 00:40:00 PST 2012


Author: jng
Date: 2012-11-23 00:40:00 -0800 (Fri, 23 Nov 2012)
New Revision: 7219

Added:
   sandbox/jng/swig-java/Web/src/JavaApiEx/javaextensions.i
Modified:
   sandbox/jng/swig-java/Web/src/JavaApiEx/java.i
Log:
Add new javaextensions.i which will contain java-specific augmentations to swig-generated java proxy classes

Modified: sandbox/jng/swig-java/Web/src/JavaApiEx/java.i
===================================================================
--- sandbox/jng/swig-java/Web/src/JavaApiEx/java.i	2012-11-23 07:19:11 UTC (rev 7218)
+++ sandbox/jng/swig-java/Web/src/JavaApiEx/java.i	2012-11-23 08:40:00 UTC (rev 7219)
@@ -15,6 +15,8 @@
 //  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 //
 
+%include "javaextensions.i"
+
 %typemap(jni) STRINGPARAM "jstring"
 %typemap(jtype) STRINGPARAM "String"
 %typemap(jstype) STRINGPARAM "String"

Added: sandbox/jng/swig-java/Web/src/JavaApiEx/javaextensions.i
===================================================================
--- sandbox/jng/swig-java/Web/src/JavaApiEx/javaextensions.i	                        (rev 0)
+++ sandbox/jng/swig-java/Web/src/JavaApiEx/javaextensions.i	2012-11-23 08:40:00 UTC (rev 7219)
@@ -0,0 +1,24 @@
+//
+//  Copyright (C) 2004-2011 by Autodesk, Inc.
+//
+//  This library is free software; you can redistribute it and/or
+//  modify it under the terms of version 2.1 of the GNU Lesser
+//  General Public License as published by the Free Software Foundation.
+//
+//  This library 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
+//  Lesser General Public License for more details.
+//
+//  You should have received a copy of the GNU Lesser General Public
+//  License along with this library; if not, write to the Free Software
+//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+//
+
+//NOTE: If we're eventually targeting JDK7, change to AutoCloseable for automatic try-with-resources syntax support
+%typemap(javainterfaces) MgReader "java.io.Closeable"
+%typemap(javainterfaces) MgFeatureReader "java.io.Closeable"
+%typemap(javainterfaces) MgDataReader "java.io.Closeable"
+%typemap(javainterfaces) MgSqlDataReader "java.io.Closeable"
+%typemap(javainterfaces) MgLongTransactionReader "java.io.Closeable"
+%typemap(javainterfaces) MgSpatialContextReader "java.io.Closeable"
\ No newline at end of file



More information about the mapguide-commits mailing list