Package sunstone.aws.impl
Class AwsWFSunstoneResourceInjector
- java.lang.Object
-
- sunstone.aws.impl.AwsWFSunstoneResourceInjector
-
- All Implemented Interfaces:
sunstone.core.api.SunstoneResourceInjector
public class AwsWFSunstoneResourceInjector extends Object implements sunstone.core.api.SunstoneResourceInjector
Handles injecting object related to Aws cloud. Heavily usesAwsWFIdentifiableSunstoneResourceto determine what should be injected into i.e.HostnameTo retrieve Aws cloud resources, the class relies onAwsWFIdentifiableSunstoneResource.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 AwsWFSunstoneResourceInjector(sunstone.aws.impl.AwsWFIdentifiableSunstoneResource.Identification identification, sunstone.annotation.WildFly wildFly, 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
-
AwsWFSunstoneResourceInjector
public AwsWFSunstoneResourceInjector(sunstone.aws.impl.AwsWFIdentifiableSunstoneResource.Identification identification, sunstone.annotation.WildFly wildFly, 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
-
-