Details
-
Type:
Improvement Request
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.2
-
Fix Version/s: 1.1.0
-
Component/s: None
-
Security Level: Public
-
- Environment:
- -
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Victor NOËL [ vnoel ] | Christophe DENEUX [ cdeneux ] |
| Priority | Major [ 3 ] | |
| Description |
Add support of placeholders configured at component level to configure the Java routes.
If the placeholder '{{my-placeholder}}' is defined, it could be used as following in the Java route: {code:java} fromPetals(OBTENIR_SIGNATAIRE).process(new Step("Prepare obtention du signataire du bordereau") { @Override public void process(final Exchange exchange) throws Exception { final ObtenirSignataire body = marshalling.unmarshal(exchange.getIn(), ObtenirSignataire.class); ... final String myPlaceholder = this.getPlaceHolder("my-placeholder"); ... marshalling.marshal(exchange.getOut(), request); } }).to(...) {code} And if placeholders are reloaded, the route definition based on '{{PetalsRouteBuilder}}' will be notified through the method '{{onPlaceHolderValuesReloaded}}'. |
Add support of placeholders configured at component level to configure the Java routes.
If the placeholder '{{my-placeholder}}' is defined, it could be used as following in the Java route: {code:java} fromPetals(OBTENIR_SIGNATAIRE).process(new Step("Prepare obtention du signataire du bordereau") { @Override public void process(final Exchange exchange) throws Exception { final ObtenirSignataire body = marshalling.unmarshal(exchange.getIn(), ObtenirSignataire.class); ... final String myPlaceholder = this.getPlaceHolder("my-placeholder"); ... marshalling.marshal(exchange.getOut(), request); } }).to(...) {code} And if placeholders are reloaded, the route definition based on '{{PetalsRouteBuilder}}' will be notified through the method '{{onPlaceHolderValuesReloaded}}': {code:java} @Override public void onPlaceHolderValuesReloaded(final Properties newPlaceholders) { super.onPlaceHolderValuesReloaded(newPlaceholders); try { this.reloadFiles(); } catch (final IOException e) { log.warn("An error occurs !.", e); } } {code} |
| Status | New [ 10000 ] | Open [ 10002 ] |
| Status | Open [ 10002 ] | In Progress [ 10003 ] |
| Status | In Progress [ 10003 ] | Resolved [ 10004 ] |
| Fix Version/s | 1.1.0 [ 10750 ] | |
| Resolution | Fixed [ 1 ] |
| Transition | Status Change Time | Execution Times | Last Executer | Last Execution Date | |||||||||
|
|
|
|
|
|||||||||
|
|
|
|
|
|||||||||
|
|
|
|
|
Support of placeholders added