Javadoc
Register an interceptor for a given component
Since the interceptor is registered against a ComponentMetadata
instance and not an id,
interceptors can be registered for anonymous components as well as named and unnamed components.
Note: Although an interceptor is registered against a specific ComponentMetadata
instance,
an interceptor should not rely on this fact. This will allow NamespaceHandlers
and
ComponentDefinitionRegistryProcessors
to respect registered interceptors even when
the actual ComponentMetadata
instance is changed or augmented. If an interceptor does
not support such a scenario it should nevertheless fail gracefully in the case of modified
ComponentMetadata
instances.
Note: at the time of this writing (version 0.1) interceptors are only supported for BeanMetadata
.
Interceptors registered against other component types will be ignored.