Skip to content, Skip to search

Changes

SciJava Common

56 bytes removed, 17:02, 23 September 2015
Services: Use ImageJ1 template
== Services ==
{{BoxImageJ1| title = Comparison with ImageJ 1.x| text = Whereas [[ImageJ1]] is a [https://en.wikipedia.org/wiki/Singleton_pattern singleton], with static methods to access much of its functionality, [[ImageJ2]] encapsulates its program state in the application context, allowing multiple simultaneous such contexts in the same JVM.| float = right
}}
ImageJ encapsulates its various parts as separate "services" that provide related state functionality and track related program state. An instance of the {{Javadoc | package = net/imagej | class = ImageJ}} class is nothing more than a collection of these services; this instance is referred to as the "application gateway." Services are defined as interfaces, with concrete implementations as plugins. This design provides [http://c2.com/cgi/wiki?SoftwareSeam seams] in the right places so that behavior at every level can be customized and overridden.
Bureaucrat, emailconfirmed, incoming, administrator, uploaders
11,689
edits