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.此内容没有您所选择的语言版本。
13.8. Metadata and Support Class Injections
13.8.1. TestKit Injection 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
- 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 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
You can inject the SwitchYardModel instance by declaring a property of the type SwitchYardModel, as shown below:
13.8.4. ServiceDomain Injection 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
You can inject the TransformerRegistry instance by declaring a property of the type TransformerRegistry, as shown below:
13.8.6. TestMixIn Injection 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
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].)