Package org.jboss.osgi.repository

Examples of org.jboss.osgi.repository.ArtifactProviderPlugin


    @Override
    public void start(StartContext context) throws StartException {
        BundleContext syscontext = injectedSystemContext.getValue();
        // 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
View Full Code Here


    @Override
    public void start(StartContext context) throws StartException {
        BundleContext syscontext = injectedSystemContext.getValue();
        // Register the MavenArtifactProvider
        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);
View Full Code Here

TOP

Related Classes of org.jboss.osgi.repository.ArtifactProviderPlugin

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.