@Test public void wildcard() throws IOException { final File folder = new File("target/jars"); folder.mkdirs(); write(folder, "jar1.jar"); write(folder, "jar2.jar"); final Set<String> urls = ProvisioningUtil.realLocation(folder.getAbsolutePath() + "/*.jar"); assertEquals(3, urls.size()); }
public static Set<String> realLocation(final String location) { final boolean initialized = SystemInstance.isInitialized(); if (!initialized) { if (DEFAULT_PROVISIONING_RESOLVER == null) { synchronized (ProvisioningUtil.class) { if (DEFAULT_PROVISIONING_RESOLVER == null) { DEFAULT_PROVISIONING_RESOLVER = new ProvisioningResolver(); } } } return DEFAULT_PROVISIONING_RESOLVER.realLocation(location); } return SystemInstance.get().getComponent(ProvisioningResolver.class).realLocation(location); }
ProvisioningUtil { public static Set<String> realLocation(final String location) { final boolean initialized = SystemInstance.isInitialized(); if (!initialized) { if (DEFAULT_PROVISIONING_RESOLVER == null) { synchronized (ProvisioningUtil.class) { if (DEFAULT_PROVISIONING_RESOLVER == null) { DEFAULT_PROVISIONING_RESOLVER = new ProvisioningResolver(); } } } return DEFAULT_PROVISIONING_RESOLVER.realLocation(location); } return SystemInstance.get().getComponent(ProvisioningResolver.class).realLocation(location); } }
ProvisioningUtil { public static Set<String> realLocation(final String location) { final boolean initialized = SystemInstance.isInitialized(); if (!initialized) { if (DEFAULT_PROVISIONING_RESOLVER == null) { synchronized (ProvisioningUtil.class) { if (DEFAULT_PROVISIONING_RESOLVER == null) { DEFAULT_PROVISIONING_RESOLVER = new ProvisioningResolver(); } } } return DEFAULT_PROVISIONING_RESOLVER.realLocation(location); } return SystemInstance.get().getComponent(ProvisioningResolver.class).realLocation(location); } private  ProvisioningUtil(); }
ProvisioningUtil { public static Set<String> realLocation(final String location) { final boolean initialized = SystemInstance.isInitialized(); if (!initialized) { if (DEFAULT_PROVISIONING_RESOLVER == null) { synchronized (ProvisioningUtil.class) { if (DEFAULT_PROVISIONING_RESOLVER == null) { DEFAULT_PROVISIONING_RESOLVER = new ProvisioningResolver(); } } } return DEFAULT_PROVISIONING_RESOLVER.realLocation(location); } return SystemInstance.get().getComponent(ProvisioningResolver.class).realLocation(location); } private  ProvisioningUtil(); static Collection<File> addAdditionalLibraries(); static Set<String> realLocation(final String location); }
ProvisioningUtil { public static Set<String> realLocation(final String location) { final boolean initialized = SystemInstance.isInitialized(); if (!initialized) { if (DEFAULT_PROVISIONING_RESOLVER == null) { synchronized (ProvisioningUtil.class) { if (DEFAULT_PROVISIONING_RESOLVER == null) { DEFAULT_PROVISIONING_RESOLVER = new ProvisioningResolver(); } } } return DEFAULT_PROVISIONING_RESOLVER.realLocation(location); } return SystemInstance.get().getComponent(ProvisioningResolver.class).realLocation(location); } private  ProvisioningUtil(); static Collection<File> addAdditionalLibraries(); static Set<String> realLocation(final String location);  }