Search in sources :

Example 1 with GraalChannel

use of org.graalvm.component.installer.gds.GraalChannel in project graal by oracle.

the class InstallLicensedCatalogTest method initCatalogIterable.

private void initCatalogIterable(URL u) {
    GraalChannel channel = new GraalChannel(this, this, getLocalRegistry());
    channel.setIndexURL(u);
    cfactory = new CatalogFactory() {

        @Override
        public ComponentCatalog createComponentCatalog(CommandInput input) {
            try {
                return new CatalogContents(InstallLicensedCatalogTest.this, channel.getStorage(), localRegistry);
            } catch (IOException ex) {
                fail("Unexpected exception");
                return null;
            }
        }

        @Override
        public List<GraalEdition> listEditions(ComponentRegistry targetGraalVM) {
            return Collections.emptyList();
        }
    };
    paramIterable = new CatalogIterable(this, this);
}
Also used : ComponentCatalog(org.graalvm.component.installer.ComponentCatalog) GraalChannel(org.graalvm.component.installer.gds.GraalChannel) CommandInput(org.graalvm.component.installer.CommandInput) ComponentRegistry(org.graalvm.component.installer.model.ComponentRegistry) CatalogContents(org.graalvm.component.installer.model.CatalogContents) List(java.util.List) IOException(java.io.IOException) CatalogIterable(org.graalvm.component.installer.remote.CatalogIterable)

Aggregations

IOException (java.io.IOException)1 List (java.util.List)1 CommandInput (org.graalvm.component.installer.CommandInput)1 ComponentCatalog (org.graalvm.component.installer.ComponentCatalog)1 GraalChannel (org.graalvm.component.installer.gds.GraalChannel)1 CatalogContents (org.graalvm.component.installer.model.CatalogContents)1 ComponentRegistry (org.graalvm.component.installer.model.ComponentRegistry)1 CatalogIterable (org.graalvm.component.installer.remote.CatalogIterable)1