| 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 {
|
|
|