Skip to content
mkalam-alami edited this page Jun 14, 2011 · 17 revisions

Sources location

The source code is available in the easysoa-model-demo repository. All code regarding SCA import is located in the plugins/easysoa-model-demo-core Maven project, except for the XHTML file (in plugins/easysoa-model-demo-web).

See Development Environment to install all needed programs, and easysoa-demo-dist's README.md to set up your projects and build them.

Current features

Parses any .composite file to import services to the model. For now, it recognizes:

  • <binding.ws> tags (WS bindings)
  • <binding.rest> tags (REST bindings)

Limitations: For now, the import is quite basic, since it assumes all services come from the same application.

Architecture

The .composite parsing is done using something close to the visitor pattern: the XML parsing is done once, and several visitor implementations are used to handle each piece of information as they come. There is one visitor per tag type.

The package containing all SCA-related sources is org.easysoa.sca. It can be found in the easysoa-model-demo-core bundle.

  • SCAVisitor is the interface to be implemented by all visitors. It is currently implemented by two classes, RestBindingScaVisitor and WSBindingScaVisitor.
  • SCAImportBean is used to handle web requests, parse the XML and call all visitors each time a tag of interest is found.
Clone this wiki locally