Package org.jboss.osgi.repository.core

Examples of org.jboss.osgi.repository.core.FileBasedRepositoryCachePlugin


        // Register the MavenArtifactProvider
        ArtifactProviderPlugin provider = new MavenArtifactProvider();
        syscontext.registerService(ArtifactProviderPlugin.class.getName(), provider, null);
        // Create the RepositoryCachePlugin
        File cacheFile = syscontext.getDataFile("repository");
        RepositoryCachePlugin cache = new FileBasedRepositoryCachePlugin(cacheFile);
        // Register the Repository
        repository = new RepositoryImpl(new TrackingArtifactProvider(syscontext), cache);
        syscontext.registerService(Repository.class.getName(), repository, null);
    }
View Full Code Here


        ArtifactProviderPlugin provider = new MavenArtifactProvider();
        syscontext.registerService(ArtifactProviderPlugin.class.getName(), provider, null);
        // Create the RepositoryCachePlugin
        File dataDir = injectedServerEnvironment.getValue().getServerDataDir();
        File cacheFile = new File(dataDir.getPath() + File.separator + "repository");
        RepositoryCachePlugin cache = new FileBasedRepositoryCachePlugin(cacheFile);
        // Register the Repository
        repository = new RepositoryImpl(new TrackingArtifactProvider(syscontext), cache);
        syscontext.registerService(Repository.class.getName(), repository, null);
    }
View Full Code Here

TOP

Related Classes of org.jboss.osgi.repository.core.FileBasedRepositoryCachePlugin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.