In the previous article (here), I explained how to create a component that generates one or more VMs. In this one, I will explain a method to create a component which doesn’t generate VM but interacts with another one via a link. You can find a use case of this in the WebApp pattern where you are able to add extra “archive file” to a WAS via the “Extra Archive File” component.
In this article, I will explain how to call a java method from your topology template. This is achieved by creating a class which extends the TemplateTransformer class and declaring it as the implementation class for your topology transformer.