File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/main/java/org/scijava/preferences Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 5353@ Plugin (type = Service .class )
5454public class DefaultPrefService extends AbstractPrefService {
5555
56+ // TODO - with the conversion from a static utility class to a service, we
57+ // have unfortunately lost some power to adapt behavior to individual data
58+ // types - either the whole service is superceded, or it's not. For example,
59+ // see the saveValue/loadValue of the ModuleItem class, where each item could
60+ // decide how it was saved and loaded.
61+ // Thus it would be nice to refactor this service to use the Handler pattern,
62+ // such that there would just be a few base put/get methods that delegated
63+ // to appropriate handlers. Then the handlers of a single type could be
64+ // provided and overridden.
65+
5666 // -- Global preferences --
5767
5868 @ Override
You can’t perform that action at this time.
0 commit comments