Class 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 uses AwsWFIdentifiableSunstoneResource to determine what should be injected into i.e. Hostname To retrieve Aws cloud resources, the class relies on AwsWFIdentifiableSunstoneResource.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 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:
        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