public class AwsSunstoneResourceInjector extends Object implements SunstoneResourceInjector
AwsIdentifiableSunstoneResource to determine what should be injected into i.e. Hostname
To retrieve Aws cloud resources, the class relies on AwsIdentifiableSunstoneResource.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 |
|---|
AwsSunstoneResourceInjector(sunstone.aws.impl.AwsIdentifiableSunstoneResource.Identification identification,
Class<?> fieldType) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeResource(Object obj) |
Object |
getResource(org.junit.jupiter.api.extension.ExtensionContext ctx) |
public AwsSunstoneResourceInjector(sunstone.aws.impl.AwsIdentifiableSunstoneResource.Identification identification,
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.