Browse Source

Added javadoc for the JassimpLibraryLoader

Jesper Smith 8 years ago
parent
commit
21391b1f74
1 changed files with 17 additions and 3 deletions
  1. 17 3
      port/jassimp/jassimp/src/jassimp/JassimpLibraryLoader.java

+ 17 - 3
port/jassimp/jassimp/src/jassimp/JassimpLibraryLoader.java

@@ -40,10 +40,24 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 package jassimp;
 
+/**
+ * Library loader for the jassimp library.<p>
+ * 
+ * The default implementation uses "System.loadLibrary" to
+ * load the jassimp native library. <p>
+ * 
+ * Custom implementations should override the loadLibrary()
+ * function. 
+ *
+ */
 public class JassimpLibraryLoader
-{
-   static final JassimpLibraryLoader instance = new JassimpLibraryLoader();
-   
+{  
+   /**
+    * Function to load the native jassimp library.
+    * 
+    * Called the first time Jassimp.importFile() is 
+    * called. 
+    */
    public void loadLibrary()
    {
       System.loadLibrary("jassimp");