Class 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 uses AzureWFIdentifiableSunstoneResource to determine what should be injected into i.e. Hostname To retrieve Azure cloud resources, the class relies on AzureWFIdentifiableSunstoneResource.get(Annotation, AzureSunstoneStore, 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 the extension store so that they are closed once the store is closed
    • 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:
        getResource in interface sunstone.core.api.SunstoneResourceInjector
        Throws:
        sunstone.core.exceptions.SunstoneException
      • closeResource

        public void closeResource​(Object obj)
                           throws Exception
        Specified by:
        closeResource in interface sunstone.core.api.SunstoneResourceInjector
        Throws:
        Exception