Package sunstone.aws.impl
Class AwsSunstoneResourceInjector
- java.lang.Object
-
- sunstone.aws.impl.AwsSunstoneResourceInjector
-
- All Implemented Interfaces:
sunstone.core.api.SunstoneResourceInjector
public class AwsSunstoneResourceInjector extends Object implements sunstone.core.api.SunstoneResourceInjector
Handles injecting object related to Aws cloud. Heavily usesAwsIdentifiableSunstoneResourceto determine what should be injected into i.e.HostnameTo retrieve Aws cloud resources, the class relies onAwsIdentifiableSunstoneResource.get(Annotation, AwsSunstoneStore, Class). If needed, it can inject resources directly or form the resources (get a hostname of AZ VM and create aHostname) lambda Closable resources are registered in extension store so that they are closed once the store is closed
-
-
Constructor Summary
Constructors Constructor Description AwsSunstoneResourceInjector(sunstone.aws.impl.AwsIdentifiableSunstoneResource.Identification identification, Class<?> fieldType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseResource(Object obj)ObjectgetResource(org.junit.jupiter.api.extension.ExtensionContext ctx)
-
-
-
Constructor Detail
-
AwsSunstoneResourceInjector
public AwsSunstoneResourceInjector(sunstone.aws.impl.AwsIdentifiableSunstoneResource.Identification identification, Class<?> fieldType)
-
-
Method Detail
-
getResource
public Object getResource(org.junit.jupiter.api.extension.ExtensionContext ctx) throws sunstone.core.exceptions.SunstoneException
- Specified by:
getResourcein interfacesunstone.core.api.SunstoneResourceInjector- Throws:
sunstone.core.exceptions.SunstoneException
-
-