Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(627)

Unified Diff: dart/pkg/analysis_server/lib/src/protocol.dart

Issue 625923003: Add Domain handler with startup and shutdown stubs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add default empty impls for startup and shutdown Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/analysis_server/lib/src/protocol.dart
diff --git a/dart/pkg/analysis_server/lib/src/protocol.dart b/dart/pkg/analysis_server/lib/src/protocol.dart
index 8ce7e103702e7fec42b40e9695b9fe9b3c061328..a88f9d55ad1ec2972cbf741bce20e1fc097255c0 100644
--- a/dart/pkg/analysis_server/lib/src/protocol.dart
+++ b/dart/pkg/analysis_server/lib/src/protocol.dart
@@ -854,6 +854,25 @@ abstract class RequestHandler {
}
/**
+ * Instances of the class [DomainHandler] implement a [RequestHandler] and
+ * also startup and shutdown methods.
+ */
+abstract class DomainHandler extends RequestHandler {
+ /**
+ * Perform any operations associated with the startup of the domain. This
+ * will be called before the first [Request].
+ */
+ void startup() { }
+
+ /**
+ * Perform any operations associated with the shutdown of the domain. It is
+ * not guaranteed that this method will be called. If it is, it will be
+ * called after the last [Request] has been made.
+ */
+ void shutdown() { }
+}
+
+/**
* Instances of the class [Response] represent a response to a request.
*/
class Response {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698