Package org.jboss.gravia.runtime.spi

Examples of org.jboss.gravia.runtime.spi.RuntimePropertiesProvider


        return systemStore;
    }

    public RuntimeEnvironment initDefaultContent() {
        Runtime runtime = RuntimeLocator.getRequiredRuntime();
        RuntimePropertiesProvider propertyProvider = new RuntimePropertiesProvider(runtime);
    Path storagePath = DefaultRepositoryStorage.getRepositoryStoragePath(propertyProvider);
        File environmentXML = storagePath.resolve("environment.xml").toFile();
        try {
            InputStream content = new FileInputStream(environmentXML);
            initDefaultContent(content);
View Full Code Here


        resolverRegistration = syscontext.registerService(Resolver.class, resolver, null);
        return resolver;
    }

    private Repository registerRepositoryService(final Runtime runtime) {
        PropertiesProvider propertyProvider = new RuntimePropertiesProvider(runtime);
        Repository repository = new DefaultRepository(propertyProvider);
        ModuleContext syscontext = runtime.getModuleContext();
        repositoryRegistration =  RepositoryRuntimeRegistration.registerRepository(syscontext, repository);
        return repository;
    }
View Full Code Here

    private Repository delegate;

    @Activate
    void activate(BundleContext context) throws JMException {
        Runtime runtime = RuntimeLocator.getRequiredRuntime();
        delegate = new DefaultRepository(new RuntimePropertiesProvider(runtime));
    }
View Full Code Here

    @Override
    public void start(BundleContext context) throws Exception {
        Runtime runtime = RuntimeLocator.getRequiredRuntime();
        Module module = runtime.getModule(context.getBundle().getBundleId());
        DefaultRepository repository = new DefaultRepository(new RuntimePropertiesProvider(runtime));
        registration =  RepositoryRuntimeRegistration.registerRepository(module.getModuleContext(), repository);
    }
View Full Code Here

    private Repository delegate;

    @Activate
    void activate(BundleContext context) throws JMException {
        Runtime runtime = RuntimeLocator.getRequiredRuntime();
        delegate = new DefaultRepository(new RuntimePropertiesProvider(runtime));
    }
View Full Code Here

TOP

Related Classes of org.jboss.gravia.runtime.spi.RuntimePropertiesProvider

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.