Package sunstone.azure.impl
Class AzureWFSunstoneResourceInjector
- java.lang.Object
-
- sunstone.azure.impl.AzureWFSunstoneResourceInjector
-
- All Implemented Interfaces:
sunstone.core.api.SunstoneResourceInjector
public class AzureWFSunstoneResourceInjector extends Object implements sunstone.core.api.SunstoneResourceInjector
Handles injecting object related to Azure cloud. Heavily usesAzureWFIdentifiableSunstoneResourceto determine what should be injected into i.e.HostnameTo retrieve Azure cloud resources, the class relies onAzureWFIdentifiableSunstoneResource.get(Annotation, AzureSunstoneStore, 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 the extension store so that they are closed once the store is closed
-
-
Constructor Summary
Constructors Constructor Description AzureWFSunstoneResourceInjector(sunstone.azure.impl.AzureWFIdentifiableSunstoneResource.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
-
AzureWFSunstoneResourceInjector
public AzureWFSunstoneResourceInjector(sunstone.azure.impl.AzureWFIdentifiableSunstoneResource.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
-
-