I’m trying to create a component extension. I’ve got through EntX Mediator (7.4.2) documentation and succseeded to create a sceleton WAR that is correctly seen my Studio as an component extension definition.
I have not run this yet. I have found couple of examples of extensions and configurations on each of them differs from the one provided in SampleExtension.
It is not clear what should be signatures of Java class implementing component extension. I supposed (and reading of this discussion list acknoleges me on that) that String is a main type accepted as a params type.
But what’s a possibilities for parameters accepting payloads - that’s not so clear. I’ve found in this list information it should be ByteArray, but is that mean byte or ByteArrayInputStream.
To be honest I found here in other inforamtion, that should be ByteArrayInputStream. But then in one of examples simple byte is used!
Another issue is how method calls results are returned???
Yet another problem is the way the payload is transfered to extension differs:
- I’ve seen one example with JOG.getContent before and JOG.addContent after an actuall component extension call,
- Other example just the component extension with configuration suggestiong methods getContent and addContent are implemented within it (but it well my be that those methds are available to every extension - kind of Mediator environment convinience methods).
That’s just couple of examples of how things can differ from one solution to the other.
I think I need a documentation describing how to develop extensions more presisly then the standard documentation presents. Not just a directories plan but some ideology that’s on the basis of mechanism of creating extensions.
Is such documenta available for SAG internal use?