public class AzureWFSunstoneResourceInjector extends Object implements SunstoneResourceInjector
AzureWFIdentifiableSunstoneResource to determine what should be injected into i.e. Hostname
To retrieve Azure cloud resources, the class relies on AzureWFIdentifiableSunstoneResource.get(Annotation, AzureSunstoneStore, Class).
If needed, it can inject resources directly or form the resources (get a hostname of AZ VM and create a Hostname) lambda
Closable resources are registered in the extension store so that they are closed once the store is closed| Constructor and Description |
|---|
AzureWFSunstoneResourceInjector(sunstone.azure.impl.AzureWFIdentifiableSunstoneResource.Identification identification,
WildFly wildFly,
Class<?> fieldType) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeResource(Object obj) |
Object |
getResource(org.junit.jupiter.api.extension.ExtensionContext ctx) |
public AzureWFSunstoneResourceInjector(sunstone.azure.impl.AzureWFIdentifiableSunstoneResource.Identification identification, WildFly wildFly, Class<?> fieldType)
public Object getResource(org.junit.jupiter.api.extension.ExtensionContext ctx) throws SunstoneException
getResource in interface SunstoneResourceInjectorSunstoneExceptionpublic void closeResource(Object obj) throws Exception
closeResource in interface SunstoneResourceInjectorExceptionCopyright © 2023. All rights reserved.