Examples of RepositoryImpl


Examples of org.apache.jackrabbit.oak.jcr.RepositoryImpl

        Object service = context.getService(reference);
        if (service instanceof ContentRepository) {
            ContentRepository repository = (ContentRepository) service;
            services.put(reference, context.registerService(
                    Repository.class.getName(),
                    new RepositoryImpl(repository),
                    new Properties()));
            return service;
        } else {
            context.ungetService(reference);
            return null;
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.repository.RepositoryImpl

                    Map<String, Object> attrs = new HashMap<String, Object>();
                    attrs.put(RepositoryImpl.REFRESH_INTERVAL, 0);
                    // TODO OAK-803: Backwards compatibility of long-lived
                    // sessions
                    // Remove dependency on implementation specific API
                    RepositoryImpl repo = (RepositoryImpl) OakSlingRepository.this.getRepository();
                    return repo.login(null, null, attrs);
                }
            }, null);
        } catch (PrivilegedActionException e) {
            throw new RepositoryException("failed to retrieve admin session.", e);
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.repository.RepositoryImpl

        oak.withAsyncIndexing();
        return this;
    }

    public Repository createRepository() {
        return new RepositoryImpl(
                oak.createContentRepository(),
                oak.getWhiteboard(),
                securityProvider);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.repository.RepositoryImpl

        oak.withAsyncIndexing();
        return this;
    }

    public Repository createRepository() {
        return new RepositoryImpl(
                oak.createContentRepository(),
                oak.getWhiteboard(),
                securityProvider);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.repository.RepositoryImpl

        oak.withAsyncIndexing();
        return this;
    }

    public Repository createRepository() {
        return new RepositoryImpl(
                oak.createContentRepository(),
                oak.getWhiteboard(),
                securityProvider);
    }
View Full Code Here

Examples of org.apache.karaf.features.internal.RepositoryImpl

     */
    public void execute() throws MojoExecutionException, MojoFailureException {
        try {
            prepare();
            URI uri = file.toURI();
            Repository repository = new RepositoryImpl(uri);
            schemaCheck(repository, uri);
            analyze(repository);
            validate(repository);
        } catch (Exception e) {
            throw new MojoExecutionException(String.format("Unable to validate %s: %s", file.getAbsolutePath(), e.getMessage()), e);
View Full Code Here

Examples of org.apache.karaf.features.internal.RepositoryImpl

        // add the repositories from the plugin configuration
        if (repositories != null) {
            for (String uri : repositories) {
                getLog().info(String.format(" - adding repository from %s", uri));
                Repository dependency = new RepositoryImpl(URI.create(translateFromMaven(uri)));
                schemaCheck(dependency, URI.create(uri));
                features.add(dependency.getFeatures());
                validateBundlesAvailable(dependency);
                analyzeExports(dependency);
            }
        }

        for (URI uri : repository.getRepositories()) {
            Artifact artifact = (Artifact) resolve(uri.toString());
            Repository dependency = new RepositoryImpl(new File(localRepo.getBasedir(), localRepo.pathOf(artifact)).toURI());

            schemaCheck(dependency, uri);
            getLog().info(String.format(" - adding %d known features from %s", dependency.getFeatures().length, uri));
            features.add(dependency.getFeatures());
            // we need to do this to get all the information ready for further processing
            validateBundlesAvailable(dependency);
            analyzeExports(dependency);
        }
View Full Code Here

Examples of org.apache.karaf.features.internal.RepositoryImpl

     * @throws MojoExecutionException
     */
    private List<Artifact> readResources() throws MojoExecutionException {
        List<Artifact> resources = new ArrayList<Artifact>();
        try {
            RepositoryImpl featuresRepo = new RepositoryImpl(featuresFile.toURI());
            Feature[] features = featuresRepo.getFeatures();
            for (Feature feature : features) {
                for (BundleInfo bundle : feature.getBundles()) {
                    if (!bundle.isDependency()) {
                        resources.add(resourceToArtifact(bundle.getLocation(), false));
                    }
View Full Code Here

Examples of org.apache.karaf.features.internal.service.RepositoryImpl


public class ConditionalTest extends TestCase {

    public void testLoad() throws Exception {
        RepositoryImpl r = new RepositoryImpl(getClass().getResource("internal/service/f06.xml").toURI());
        // Check repo
        Feature[] features = r.getFeatures();
        assertNotNull(features);
        assertEquals(1, features.length);
        Feature feature = features[0];

        assertNotNull(feature.getConditional());
View Full Code Here

Examples of org.apache.servicemix.kernel.gshell.features.internal.RepositoryImpl


public class RepositoryTest extends TestCase {

    public void testLoad() throws Exception {
        RepositoryImpl r = new RepositoryImpl(getClass().getResource("repo1.xml").toURI());
        // Check repo
        URI[] repos = r.getRepositories();
        assertNotNull(repos);
        assertEquals(1, repos.length);
        assertEquals(URI.create("urn:r1"), repos[0]);
        // Check features
        Feature[] features = r.getFeatures();
        assertNotNull(features);
        assertEquals(2, features.length);
        assertNotNull(features[0]);
        assertEquals("f1", features[0].getName());
        assertNotNull(features[0].getConfigurations());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.