]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.services/src/org/simantics/db/services/adaption/reflection/GraphObject2.java
Start of AdapterRegistry2 internal query caching.
[simantics/platform.git] / bundles / org.simantics.db.services / src / org / simantics / db / services / adaption / reflection / GraphObject2.java
index 4dbb338ad1b0e025cb556b0e4e009e1920d27271..8a2db578f6488debda2a66fa3d1719c6772cca10 100644 (file)
@@ -1,28 +1,30 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.db.services.adaption.reflection;\r
-\r
-import org.simantics.db.ReadGraph;\r
-\r
-public class GraphObject2 implements IDynamicAdapter2 {\r
-\r
-       @Override\r
-       public Class<?> getType() {\r
-               return ReadGraph.class;\r
-       }\r
-\r
-       @Override\r
-       public ReadGraph adapt(ReadGraph g, org.simantics.db.Resource r) {\r
-               return g;\r
-       }\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.db.services.adaption.reflection;
+
+import org.simantics.db.ReadGraph;
+
+public class GraphObject2 implements IDynamicAdapter2 {
+
+       public static final IDynamicAdapter2 INSTANCE = new GraphObject2();
+
+       @Override
+       public Class<?> getType() {
+               return ReadGraph.class;
+       }
+
+       @Override
+       public ReadGraph adapt(ReadGraph g, org.simantics.db.Resource r) {
+               return g;
+       }
+
+}