public class AwsWFSunstoneResourceInjector extends Object implements SunstoneResourceInjector
AwsWFIdentifiableSunstoneResource to determine what should be injected into i.e. Hostname
To retrieve Aws cloud resources, the class relies on AwsWFIdentifiableSunstoneResource.get(Annotation, AwsSunstoneStore, 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 extension store so that they are closed once the store is closed| Constructor and Description |
|---|
AwsWFSunstoneResourceInjector(sunstone.aws.impl.AwsWFIdentifiableSunstoneResource.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 AwsWFSunstoneResourceInjector(sunstone.aws.impl.AwsWFIdentifiableSunstoneResource.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.