Package org.apache.jackrabbit.api

Examples of org.apache.jackrabbit.api.JackrabbitRepository.shutdown()


    @AfterClass
    public static void afterAll() throws Exception {
        if (repository != null) {
            try {
                JackrabbitRepository jackrabbit = (JackrabbitRepository)repository;
                jackrabbit.shutdown();
            } finally {
                repository = null;
                // Clean up the test data ...
                FileUtil.delete(JACKRABBIT_DATA_PATH);
            }
View Full Code Here


            } finally {
                keepAliveSession = null;
                if (repository != null) {
                    try {
                        JackrabbitRepository jackrabbit = (JackrabbitRepository)repository;
                        jackrabbit.shutdown();
                    } finally {
                        repository = null;
                        // Clean up the test data ...
                        FileUtil.delete(JACKRABBIT_DATA_PATH);
                    }
View Full Code Here

    }

    static void close() {
        try {
            JackrabbitRepository jackrabbit = (JackrabbitRepository) repository;
            jackrabbit.shutdown();
        } finally {
            deleteRepoData();
        }
    }
View Full Code Here

    @AfterClass
    public static void afterAll() {
        if (repository != null) {
            try {
                JackrabbitRepository jackrabbit = (JackrabbitRepository)repository;
                jackrabbit.shutdown();
            } finally {
                repository = null;
                // Clean up the test data ...
                FileUtil.delete(JACKRABBIT_DATA_PATH);
            }
View Full Code Here

            } finally {
                keepAliveSession = null;
                if (repository != null) {
                    try {
                        JackrabbitRepository jackrabbit = (JackrabbitRepository)repository;
                        jackrabbit.shutdown();
                    } finally {
                        repository = null;
                        // Clean up the test data ...
                        FileUtil.delete(JACKRABBIT_DATA_PATH);
                    }
View Full Code Here

                if (session != null) session.logout();
            } finally {
                try {
                    if (repository instanceof JackrabbitRepository) {
                        JackrabbitRepository jr = (JackrabbitRepository)repository;
                        jr.shutdown();
                    }
                    if (repository instanceof TransientRepository) {
                        TransientRepository trans = (TransientRepository)repository;
                        deleteDirectory(trans.getHomeDir());
                    }
View Full Code Here

  @AfterClass
  public static void afterAll() throws Exception {
    try {
      JackrabbitRepository jackrabbit = (JackrabbitRepository) repository;
      jackrabbit.shutdown();
    } finally {
      FileUtil.delete(new File(JCR_DATA_PATH));
    }
  }
View Full Code Here

        NodeStore nodeStore = NodeStoreFixture.DOCUMENT_MK.createNodeStore();
        JackrabbitRepository repository  = (JackrabbitRepository) new Jcr(nodeStore).createRepository();
        try {
            assertFalse(repository.getDescriptorValue(Repository.OPTION_NODE_AND_PROPERTY_WITH_SAME_NAME_SUPPORTED).getBoolean());
        } finally {
            repository.shutdown();
        }
    }

    /**
     * Tests if a nodestore fixture sets the SNNP repository descriptor to true.
View Full Code Here

        NodeStore nodeStore = NodeStoreFixture.SEGMENT_MK.createNodeStore();
        JackrabbitRepository repository  = (JackrabbitRepository) new Jcr(nodeStore).createRepository();
        try {
            assertTrue(repository.getDescriptorValue(Repository.OPTION_NODE_AND_PROPERTY_WITH_SAME_NAME_SUPPORTED).getBoolean());
        } finally {
            repository.shutdown();
        }

    }
}
View Full Code Here

        NodeStore nodeStore = NodeStoreFixture.MK_IMPL.createNodeStore();
        JackrabbitRepository repository  = (JackrabbitRepository) new Jcr(nodeStore).createRepository();
        try {
            assertFalse(repository.getDescriptorValue(Repository.OPTION_NODE_AND_PROPERTY_WITH_SAME_NAME_SUPPORTED).getBoolean());
        } finally {
            repository.shutdown();
        }
    }

    /**
     * Tests if a nodestore fixture sets the SNNP repository descriptor to true.
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.