package com.rho.connectionchecking;

import com.rhomobile.rhodes.api.RhoApiFactory;

public class ConnectionCheckingFactory
        extends RhoApiFactory< ConnectionChecking, ConnectionCheckingSingleton>
        implements IConnectionCheckingFactory {

    @Override
    protected ConnectionCheckingSingleton createSingleton() {
        return new ConnectionCheckingSingleton(this);
    }

    @Override
    protected ConnectionChecking createApiObject(String id) {
        return new ConnectionChecking(id);
    }
}

@@ -120,166 +120,120 @@
 tory
-%0A        extends RhoApiFactory%3C ConnectionChecking, ConnectionCheckingSingleton%3E%0A        implements IConnectionCheckingFactory %7B%0A%0A    @Override%0A    protected 
+ implements IConnectionCheckingFactory %7B%0A%0A%09private ConnectionCheckingSingleton singleton;%0A%0A%09@Override%0A%09public%0A%09I
 Conn
@@ -256,22 +256,22 @@
 ngleton 
-create
+getApi
 Singleto
@@ -272,38 +272,59 @@
 ngleton() %7B%0A
-        return
+%09%09if(singleton == null) singleton =
  new Connect
@@ -355,43 +355,53 @@
 s);%0A
-    %7D%0A%0A    @Override%0A    protected 
+%09%09return singleton;%0A%09%7D%0A%0A%09@Override%0A%09public%0A%09I
 Conn
@@ -419,14 +419,11 @@
 ing 
-create
+get
 ApiO
@@ -445,55 +445,27 @@
 ) %7B%0A
-        return new ConnectionChecking(id);%0A    
+%09%09%0A%09%09return null;%0A%09
 %7D%0A%7D%0A

Update ConnectionCheckingFactory.java