Package org.apache.jackrabbit.mk.api

Examples of org.apache.jackrabbit.mk.api.MicroKernel.dispose()


            e.printStackTrace(System.out);
            head = mk.commit("/", move, head, null);
            head = mk.commit("/", set, head, null);
        }
        System.out.println();
        mk.dispose();
    }

}
View Full Code Here


            try {
                return new SecurityWrapper(mk, user, pass) {
                    @Override
                    public void dispose() {
                        super.dispose();
                        mk.dispose();
                    }
                };
            } catch (MicroKernelException e) {
                mk.dispose();
                throw e;
View Full Code Here

                        super.dispose();
                        mk.dispose();
                    }
                };
            } catch (MicroKernelException e) {
                mk.dispose();
                throw e;
            }
        } else if (head.equals("virtual")) {
            MicroKernel mk = getInstance(tail);
            try {
View Full Code Here

        } else if (head.equals("virtual")) {
            MicroKernel mk = getInstance(tail);
            try {
                return new VirtualRepositoryWrapper(mk);
            } catch (MicroKernelException e) {
                mk.dispose();
                throw e;
            }
        } else if (head.equals("index")) {
            return new IndexWrapper(getInstance(tail));
        } else if (head.equals("http")) {
View Full Code Here

        if (!stopped.compareAndSet(false, true)) {
            return;
        }
        MicroKernel mk = mkref.getAndSet(null);
        if (mk != null) {
            mk.dispose();
        }
        if (es != null) {
            es.shutdown();
        }
        if (ss != null) {
View Full Code Here

            e.printStackTrace(System.out);
            head = mk.commit("/", move, head, null);
            head = mk.commit("/", set, head, null);
        }
        System.out.println();
        mk.dispose();
    }

}
View Full Code Here

        if (!stopped.compareAndSet(false, true)) {
            return;
        }
        MicroKernel mk = mkref.getAndSet(null);
        if (mk != null) {
            mk.dispose();
        }
        if (es != null) {
            es.shutdown();
        }
        if (ss != null) {
View Full Code Here

                    vm.getHeadRevision();
                }
            }
            return vm;
        } catch (MicroKernelException e) {
            mk.dispose();
            throw e;
        }
    }

    private void addMount(String mount, String url, String[] paths) {
View Full Code Here

                throw ExceptionFactory.get("Wrong password");
            }
            String rights = JsopTokenizer.decodeQuoted(n.getProperty("rights"));
            return new SecurityWrapper(mk, rights.split(","));
        } catch (MicroKernelException e) {
            mk.dispose();
            throw e;
        }
    }

    public String commitStream(String rootPath, JsopReader jsonDiff, String revisionId, String message) {
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.