1 Reply Latest reply: Jul 8, 2013 3:36 AM by Sergio_AA RSS

    How Get ICubeContext at Java bean (Spring Context)

    Sergio_AA

      Hello,

       

      I need to get the ICubeContext in a Java Bean (Spring Context). Is possible?

       

      For example in a custom xpath fuction, is very easy:

       

      public Object call(IXPathContext context, List args) throws XPathFunctionException { 
          Map props = (Map) context.getVariableValue(null, null, "xpath-function-data");
          ICubeContext ctx = (ICubeContext) props.get("ICubeContext");
      ....
      }
      

       

      I would appreciate any help. Thank you very much!

      Sergio.