Either log or rethrow this exception
[aai/champ.git] / src / main / java / org / onap / aai / champ / ChampGraph.java
index c70294b..2762e43 100644 (file)
@@ -59,7 +59,10 @@ public interface ChampGraph {
         * If finer control is needed, you should consider accessing an implementation's
         * constructors/builders.
         */
-       public static class Factory {
+       public static final class Factory {
+               private Factory(){
+                       //not called
+               }
                public static ChampGraph newInstance(ChampGraph.Type type, String graphName) {
                        switch (type) {
                        case IN_MEMORY:
@@ -70,7 +73,6 @@ public interface ChampGraph {
                                                                                        .build();
                        /*
                        case DSE: //See above, DSE still in beta
-                               return new DseChampGraphImpl.Builder("localhost").build();
                        */
                        default:
                                throw new RuntimeException("Unknown type of ChampAPI implementation");