https://github.com/forge/plugin-switchyard
SwitchYard Forge Plugin
https://github.com/forge/plugin-switchyard
Last synced: 5 months ago
JSON representation
SwitchYard Forge Plugin
- Host: GitHub
- URL: https://github.com/forge/plugin-switchyard
- Owner: forge
- Created: 2012-07-27T13:08:40.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2016-08-04T11:50:47.000Z (over 9 years ago)
- Last Synced: 2025-03-14T15:14:59.296Z (about 1 year ago)
- Language: Java
- Size: 251 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
plugin-switchyard
=================
SwitchYard Forge Plugin
# Switchyard Forge Clojure Component
This project provides an implementation of a Forge plugin capable of generating Clojure services in SwitchYard.
_ _ _
## Installing the Clojure Facet
Before you start make sure that you have the required plugins in your Forge classpath. This can be done by putting the jars in Forge's _lib_ directory or
putting them in _~/.forge/plugins_.
The Clojure plugin depend on the switchyard faced. The SwitchYard facet will update the current project and add files like _switchyard.xml_.
To see which facets are install you can run the following command:
> project list-facets
The facets that are green in this list are the ones that are installed on the current project.
### Installing the _switchyard_ facet
> project install-facet switchyard
### Installing the _switchyard.clojure_ facet
> project install-facet switchyard.clojure
_ _ _
## clojure-service create command
> help clojure-service create
[clojure-service create] - Create a new implemenation.clojure
[OPTIONS]
[--serviceName, -s] - The service name - The SwitchYard service name to use for this implementation
[--inlineScript, -i] - Use inline Clojure script - Path to the Clojure script to inline, the content will be placed into the script element
[--emptyInlineScript] - Creates an empty 'script' element - An empty 'script' element will be created that can be filled in later.
[--externalScriptPath, -e] - Path to the external Clojure Script - Path to the external Clojure script to be referenced from the 'scriptFile' attribute
[--emptyExternalScriptPath] - Creates an empty 'scriptFile' attribute - An empty 'scriptFile' attribute will be created that can be filled in later.
[--injectExchange, -x] - Inject the SwitchYard Exchange object into the Clojure script - The SwitchYard Exchange will be injected into the Clojure script if this value is set. If not, only the Message content will be injected.
### Creating with an _inline_ script
> clojure-service create --serviceName testing --inlineScript sample.clj --injectExchange
### Creating with an external script
> clojure-service create --scriptFile "/some/path/sample.clj"
_ _ _
## Enable stacktraces in Forge
set VERBOSE true
_ _ _/