Support for Custom Blueprint Namespace Interceptor in Fuse
Issue
-
We would like to use a custom Namespacehandler and the Aries Blueprint Interceptors to change a annotated Methodenparameter ( Typ java.lang.Long ) in the
preCallmethod,
public Object preCall(ComponentMetadata cm, Method m, Object... parameters) throws Throwable. -
Is this supported and are there any examples ? something like in https://github.com/apache/aries/tree/trunk/blueprint/blueprint-authz but with the possibility to change the method parameter of type Long.
-
Can a implementation of
org.apache.aries.blueprint.Interceptorimplement the Method,
public Object preCall(ComponentMetadata cm, Method m, Object... parameters) throws Throwableand in there change one (or all) of the parameters is received via the Object... parameters ? -
This means we have a class
Exampleand a Blueprint Interceptor that reacts on@InjectMyId. Is it possible to set the parameter myId with the Interceptor? Are there any examples for something like this or are there other/better solutions? At the moment we can read the value from myId in the Interceptor but we can't change it.
class Example
@InjectMyId
public void do(Long myId){
...
}
Environment
- Red Hat JBoss Fuse
- 6.x
- Aries Blueprint
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
