Wraps another service in a service that broadcasts events on actions.
- Inheritance
- Object
- Extensible
- Routable
- Service
- HookedService
Constructors
- HookedService(Service inner)
Properties
- afterCreated → HookedServiceEventDispatcher
-
read / write
- afterIndexed → HookedServiceEventDispatcher
-
read / write
- afterModified → HookedServiceEventDispatcher
-
read / write
- afterRead → HookedServiceEventDispatcher
-
read / write
- afterRemoved → HookedServiceEventDispatcher
-
read / write
- afterUpdated → HookedServiceEventDispatcher
-
read / write
- app → Angel
-
The Angel app powering this service.
read / write, inherited - beforeCreated → HookedServiceEventDispatcher
-
read / write
- beforeIndexed → HookedServiceEventDispatcher
-
read / write
- beforeModified → HookedServiceEventDispatcher
-
read / write
- beforeRead → HookedServiceEventDispatcher
-
read / write
- beforeRemoved → HookedServiceEventDispatcher
-
read / write
- beforeUpdated → HookedServiceEventDispatcher
-
read / write
- hashCode → int
-
Get a hash code for this object.…
read-only, inherited - inner → Service
-
read-only
- properties → Map
-
A set of custom properties that can be assigned to the server.…
read / write, inherited - requestMiddleware → Map<String, RequestMiddleware>
-
Additional filters to be run on designated requests.
read / write, inherited - routes → List<Route>
-
Dynamic request paths that this server will respond to.
read / write, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - services → Map<Pattern, Service>
-
A set of Service objects that have been mapped into routes.
read / write, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.…
inherited
Methods
-
addRoute(
String method, Pattern path, Object handler, {List middleware}) → Route -
Adds a route that responds to the given path for requests with the given method (case-insensitive). Provide '*' as the method to respond to all methods.
inherited -
all(
Pattern path, Object handler, {List middleware}) → Route -
Adds a route that responds to any request matching the given path.
inherited -
create(
data, [Map params]) → Future -
Creates a resource.
-
delete(
Pattern path, Object handler, {List middleware}) → Route -
Adds a route that responds to a DELETE request.
inherited -
get(
Pattern path, Object handler, {List middleware}) → Route -
Adds a route that responds to a GET request.
inherited -
index(
[Map params]) → Future<List> -
Retrieves all resources.
-
modify(
id, data, [Map params]) → Future -
Modifies a resource.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.…
inherited -
patch(
Pattern path, Object handler, {List middleware}) → Route -
Adds a route that responds to a PATCH request.
inherited -
post(
Pattern path, Object handler, {List middleware}) → Route -
Adds a route that responds to a POST request.
inherited -
read(
id, [Map params]) → Future -
Retrieves the desired resource.
-
registerMiddleware(
String name, RequestMiddleware middleware(RequestContext req, ResponseContext res)) → dynamic -
Assigns a middleware to a name for convenience.
inherited -
remove(
id, [Map params]) → Future -
Removes the given resource.
-
service(
Pattern path) → Service -
Retrieves the service assigned to the given path.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited -
update(
id, data, [Map params]) → Future -
Overwrites a resource.
-
use(
Pattern path, Routable routable, {bool hooked: true, String middlewareNamespace: null}) → dynamic -
Incorporates another Routable's routes into this one's.…
inherited