Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Ce contenu n'est pas disponible dans la langue sélectionnée.
13.8. Metadata and Support Class Injections
13.8.1. TestKit Injection Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
- You can inject the SwitchYardTestKit instance into the test at runtime by declaring a property of that type in the test class, as shown below:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
13.8.2. Deployment Injection Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
You can inject the deployment instance by declaring a property of the type Deployment, as shown below:
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
13.8.3. SwitchYardModel Injection Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
You can inject the SwitchYardModel instance by declaring a property of the type SwitchYardModel, as shown below:
13.8.4. ServiceDomain Injection Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
You can inject the ServiceDomain instance by declaring a property of the type ServiceDomain, as shown below:
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
13.8.5. TransformerRegistry Injection Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
You can inject the TransformerRegistry instance by declaring a property of the type TransformerRegistry, as shown below:
13.8.6. TestMixIn Injection Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
You can inject the TestMixIn Injection instance by declaring a property of the type TestMixIn Injection, as shown below:
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
13.8.7. PropertyMixIn Injection Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
PropertyMixIn instances are injected like any other TestMixIn type, however you must set any properties you wish to use on the MixIn before deployment in order for them to be used. To do this, use the @BeforeDeploy annotation:
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
13.8.8. Invoker Injection Copier lienLien copié sur presse-papiers!
Copier lienLien copié sur presse-papiers!
To inject Service Invoker instances, declare properties of the type Invoker and annotate them with @ServiceOperation. (Note the annotation value is a dot-delimited Service Operation name of the form
[service-name].[operation-name]
.)