IScellApiResolver - SCell dependency container

IScellApiResolver resolve different API Interfaces implementations to the user project code.

To use the IScellApiResolver you should connect the API and make the following calls:

public class CustomerExamples {
    private static final CompletableFuture<Optional<IScellApiResolver>> apiResolverFuture = ScellApiProvider.getApiResolverAsync();

    public static void main(String[] args) {
        apiResolverFuture.thenAccept(apiResolverOpt -> apiResolverOpt.ifPresent(apiResolver -> {
            // you have access to the IScellApiResolver implementation here
        })).join();
    }
}

Use IScellApiResolver to get next main parts of the SCell API:

Main entry point here means next functionality:

  • core - to manage the xlsx content
  • UI - to have JavaFX UI spreadsheet processor.

Also, IScellApiResolver is used to get the IRangeAddressBuilder.

Getting implementations example:

public class CustomerExamples {
    private static final CompletableFuture<Optional<IScellApiResolver>> apiResolverFuture = ScellApiProvider.getApiResolverAsync();

    public static void main(String[] args) {
        apiResolverFuture.thenAccept(apiResolverOpt -> apiResolverOpt.ifPresent(apiResolver -> {

            ISpreadsheetApiProvider coreApiProvider = apiResolver.resolve(ISpreadsheetApiProvider.class); // Core API entry point

            IScellUiFxApiProvider uiApiProvider = apiResolver.resolve(IScellUiFxApiProvider.class); // JavaFX UI control entry point

            IRangeAddressBuilder addressBuilder = apiResolver.resolve(IRangeAddressBuilder.class); // IRangeAddressBuilder implementation
            
        })).join();
    }
}

Next (Core API)

Next (UI API)

See also

IRangeAddressBuilder