--- /dev/null
+package org.simantics.databoard.adapter;\r
+\r
+\r
+public abstract class AbstractAdapter implements Adapter {\r
+ \r
+ /** True if this adapter has to make type conversion (incl. sub-adapters) */\r
+ boolean typeAdapter = false; \r
+ /** True if the adapter clones or creates a new instance (incl. all sub-adapters) */\r
+ boolean clones = true;\r
+ \r
+ /**\r
+ * A back-reference to the adapter request for keeping adapters that are currently used\r
+ * from being unnecessarily purged from the cache.\r
+ */\r
+ AdapterRequest request;\r
+ \r
+ public Object adaptUnchecked(Object obj) throws RuntimeAdaptException {\r
+ try {\r
+ return adapt(obj);\r
+ } catch (AdaptException e) {\r
+ throw new RuntimeAdaptException( e ); \r
+ }\r
+ }\r
+ \r
+ public void finalizeConstruction() {}\r
+ \r
+}
\ No newline at end of file