Examples of Whiteboard


Examples of org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard

    protected Repository acquireRepository() {
        final SecurityProvider securityProvider = new SecurityProviderImpl(buildSecurityConfig());
        this.adminUserName = securityProvider.getConfiguration(UserConfiguration.class).getParameters().getConfigValue(
            UserConstants.PARAM_ADMIN_ID, UserConstants.DEFAULT_ADMIN_ID);

        final Whiteboard whiteboard = new OsgiWhiteboard(this.getComponentContext().getBundleContext());
        this.indexProvider.start(whiteboard);
        this.indexEditorProvider.start(whiteboard);
        this.oakExecutorServiceReference = this.componentContext.getBundleContext().registerService(
                Executor.class.getName(), new Executor() {
            @Override
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard

    }

//----------------------------------------------------< SCR Integration >---
    @Activate
    protected void activate(ComponentContext context) throws Exception {
        Whiteboard whiteboard = new OsgiWhiteboard(context.getBundleContext());
        authorizableActionProvider.start(whiteboard);
        restrictionProvider.start(whiteboard);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard

            mk.dispose();
        }
    }

    private void registerJMXBeans(MongoMK mk, BundleContext context) {
        Whiteboard wb = new OsgiWhiteboard(context);
        registrations.add(
                registerMBean(wb,
                        CacheStatsMBean.class,
                        mk.getNodeCacheStats(),
                        CacheStatsMBean.TYPE,
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard

        reg = context.registerService(MicroKernel.class.getName(), mk, new Properties());
    }

    private void registerJMXBeans(MongoMK mk, BundleContext context) {
        Whiteboard wb = new OsgiWhiteboard(context);
        registrations.add(
            registerMBean(wb,
                    CacheStatsMBean.class,
                    mk.getNodeCacheStats(),
                    CacheStatsMBean.TYPE,
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard

    public void start(BundleContext bundleContext) throws Exception {
        context = bundleContext;
        tracker = new ServiceTracker(context, NodeStore.class.getName(), this);
        tracker.open();

        Whiteboard whiteboard = new OsgiWhiteboard(bundleContext);
        editorProvider.start(whiteboard);
        indexEditorProvider.start(whiteboard);
        indexProvider.start(whiteboard);
        executor.start(whiteboard);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard

    @Override
    public Object addingService(ServiceReference reference) {
        Object service = context.getService(reference);
        if (service instanceof NodeStore) {
            Whiteboard whiteboard = new OsgiWhiteboard(context);

            ContentRepository cr = new Oak((NodeStore) service)
                .with(new InitialContent())
                .with(JcrConflictHandler.JCR_CONFLICT_HANDLER)
                .with(whiteboard)
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard

        // merge options with osgi options if needed
        if (osgiConfig != null) {
            options = ConfigurationParameters.of(osgiConfig, options);
        }

        Whiteboard whiteboard = getWhiteboard();
        if (whiteboard == null) {
            log.error("External login module needs whiteboard. Will not be used for login.");
            return;
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard

            mk.dispose();
        }
    }

    private void registerJMXBeans(DocumentNodeStore store, BundleContext context) {
        Whiteboard wb = new OsgiWhiteboard(context);
        registrations.add(
                registerMBean(wb,
                        CacheStatsMBean.class,
                        store.getNodeCacheStats(),
                        CacheStatsMBean.TYPE,
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard

            log.debug("No login configuration available for {}; using default", appName);
            loginConfig = ConfigurationUtil.getDefaultConfiguration(getParameters());
        }
        // todo: temporary workaround
        SecurityProvider provider = getSecurityProvider();
        Whiteboard whiteboard = null;
        if (provider instanceof WhiteboardAware) {
            whiteboard = ((WhiteboardAware) provider).getWhiteboard();
        } else {
            log.warn("Unable to obtain whiteboard from SecurityProvider");
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard

        // merge options with osgi options if needed
        if (osgiConfig != null) {
            options = ConfigurationParameters.of(osgiConfig, options);
        }

        Whiteboard whiteboard = getWhiteboard();
        if (whiteboard == null) {
            log.error("External login module needs whiteboard. Will not be used for login.");
            return;
        }
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.