--- a
+++ b/trunk/php-java-bridge/Cache.java
@@ -0,0 +1,16 @@
+public class Cache {// Compile this class, create cache.jar and copy it to /usr/share/java
+ static Cache instance=null;
+ public static Cache getInstance() {
+ if(instance==null) instance=makeInstance();
+ return instance;
+ }
+ static Cache makeInstance() {
+ Cache cache=null;
+ try {
+ System.out.println("create new instance");
+ java.lang.Thread.sleep(3000);
+ System.out.println("done creating new instance");
+ } catch (Exception e) {}
+ return cache;
+ }
+}
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.