liveBook · Manning

Aspect

An aspect is a modular unit of cross-cutting behavior applied around selected program operations or method invocations.

How 2 Manning books explain it

Go by Example

Interceptor is a book-specific wrapper type that intercepts response-writing behavior while retaining access to the wrapped response writer.

How it is used
Captures HTTP response status codes in middleware while leaving handlers unaware of the wrapper.
How deep it goes
Explains embedding, method precedence, callbacks, status defaults, and optional-interface hazards; defers modern wrapper use beyond Unwrap.
Examples
Uses StatusCode middleware, WriteHeader hooks, a flushing handler, and an Unwrap implementation.
What you can do after
Build it from scratch: wrap a ResponseWriter to record status codes while forwarding normal response behavior.

Read how Go by Example explains aspect →

Spring Security in Action, Second Edition

An aspect is a modular unit that encapsulates behavior applied across selected program execution points, commonly by intercepting method calls.

How it is used
Separates authorization and filtering concerns from protected method implementations through intercepted execution points.
How deep it goes
Explains interception, preauthorization, postauthorization, and prefiltering with execution flows and runnable examples.
Examples
Demonstrates protected document access, ownership-based product filtering, HTTP requests, and mutable versus immutable collections.
What you can do after
Apply it via Spring Security to authorize method calls, check returned values, or filter collection arguments.

Read how Spring Security in Action, Second Edition explains aspect →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.