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