-
Notifications
You must be signed in to change notification settings - Fork 6
How to implement new extensions
When you want to create new extension then follow these steps:
See Development info for more details.
- create new Maven module for new extension (pom.xml, README.txt)
- create new packages which start by org.cleverbus.extension.[extension name]
Each extension must have Spring XML configuration file that completelly initializes specific extension.
- /META-INF/sp_ext_[ext_name].xml - this configuration most often loads property files and initializes routes.
- ext_[ext_name].cfg - file with configuration parameters
Each extension is initialized in independent Spring context, see dynamic extension loading for more details.
Use parent class org.cleverbus.api.route.AbstractExtRoute for imlementation of extension routes.
If there are specific error codes then implement *ErrorExtEnum *with your codes.
Enumeration of external systems (ExternalSystemExtEnum) or enumeration of services (ServiceExtensionEnum) is in common module of CleverBus extension project.
Each extension can have own XSD/WSDL resources for converting to Java - use jaxb_global_bindings.xjb file from common module. See MVCR module for more details.
Don't forget to implement unit tests and write comprehensive info about extension to wiki. Add new page under CleverBus extensions page.