flutter_aop
library
Classes
-
After
-
Runs the annotated method after the join point completes successfully.
-
Aop
-
Annotation that marks a method as an AOP pointcut.
-
AopBootstrapper
-
Manages registration of generated initialization callbacks.
-
AopContext
-
Details about the method invocation being intercepted.
-
AopHooks
-
Collection of interceptors used by proxies.
-
AopObservationEvent
-
Structured event emitted for AOP method observations.
-
AopProxyRegistry
-
Stores generated proxy factories and exposes helper APIs to wrap objects.
-
AopRegistry
-
Global registry that proxies consult when dispatching hooks.
-
Around
-
Wraps around the join point, controlling when the original method executes.
-
Aspect
-
Marks a class as an aspect definition similar to Spring's
@Aspect.
-
Before
-
Runs the annotated method before the join point executes.
-
OnError
-
Runs the annotated method when the join point throws.
-
OrderedHooks
-
Wraps AopHooks with ordering information for controlling execution order.
-
Pointcut
-
Defines a pointcut expression for matching methods.
-
Pointcuts
-
Convenience factory for common pointcut patterns.
-
TypeKey
-
A unique key for identifying types, including generic types with type arguments.
Functions
-
aopWrap<T>(T target, {AopHooks? hooks})
→ T
-
Convenience helper mirroring Spring-style bean post processing.
-
aopWrapGeneric<T>(T target, TypeKey typeKey, {AopHooks? hooks})
→ T
-
Convenience helper for wrapping generic types.
-
compareOrderedHooks(OrderedHooks a, OrderedHooks b)
→ int
-
Compares OrderedHooks by their order for sorting.
-
createObservationHooks({required AopObservationSink sink, bool includeArguments = false, bool includeResult = false, bool includeStackTrace = false, Duration? slowCallThreshold})
→ AopHooks
-
Creates hooks that emit structured observation events for every invocation.
-
ensureAllAopInitialized()
→ void
-
Convenience helper to initialize every generated proxy/aspect.
-
runAsyncWithAop<R>({required AopContext context, required FutureOr<R> invoke(), AopHooks? localHooks})
→ Future<R>
-
Executes an async method with AOP hooks.
-
runSyncWithAop<R>({required AopContext context, required R invoke(), AopHooks? localHooks})
→ R
-
Executes a synchronous method with AOP hooks.