Skip to main content

Posts

Showing posts from July 24, 2015

WSO2 App Factory - Developing New Application Type

This post will describe how to use extension points to develop an application type. In [1] you can find step by step guide of adding a new application type and its runtime. In this post I will explain following. Adding new Application Event Handlers Maven Archetype creation for App Factory Applications Extending the Application Type Processor Interface Extending Deployer Interface Adding new Application Event Handlers You can find the interface ApplicationEventsHandler in [3] Lets say you need to do some special stuff for your application type (like create a database when creating an application to support your app type), you can extend methods of this to do that. For example we are creating a datasource using an handler when we create a Data Service type application. You can find that code in [4]. After you develop your handler you can add it to an OSGI bundle and then deploy it to the AppFactory server's following location. $APPFACTORY_HOME/repository/components/dr