All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.izforge.izpack.test.provider.JarFileProvider Maven / Gradle / Ivy

There is a newer version: 5.2.3
Show newest version
package com.izforge.izpack.test.provider;

import java.io.File;
import java.io.IOException;
import java.util.jar.JarFile;

import org.picocontainer.ComponentAdapter;
import org.picocontainer.injectors.ProviderAdapter;

public class JarFileProvider extends ProviderAdapter
{
    public JarFile provide(File file) throws IOException {
      return new JarFile(file, true);
    }

    @Override
    public boolean isLazy(ComponentAdapter adapter)
    {
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy