Support for Custom Blueprint Namespace Interceptor in Fuse

Solution Verified - Updated -

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 preCall method,
    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.Interceptor implement the Method,
    public Object preCall(ComponentMetadata cm, Method m, Object... parameters) throws Throwable and in there change one (or all) of the parameters is received via the Object... parameters ?

  • This means we have a class Example and 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content