Examples of OsgiWhiteboard


Examples of org.apache.jackrabbit.oak.osgi.OsgiWhiteboard

    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.osgi.OsgiWhiteboard

            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.osgi.OsgiWhiteboard

    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.osgi.OsgiWhiteboard

    @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.osgi.OsgiWhiteboard

    public Object addingService(ServiceReference reference) {
        Object service = context.getService(reference);
        if (service instanceof ContentRepository) {
            SlingRepository repository = new SlingRepositoryImpl(
                    (ContentRepository) service,
                    new OsgiWhiteboard(context),
                    securityProvider);
            jcrRepositories.put(reference, context.registerService(
                    Repository.class.getName(),
                    repository, new Properties()));
            slingRepositories.put(reference, context.registerService(
View Full Code Here

Examples of org.apache.jackrabbit.oak.osgi.OsgiWhiteboard

            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.osgi.OsgiWhiteboard

        }
    }

    @Activate
    protected void activate(ComponentContext context) throws Exception {
        whiteboard = new OsgiWhiteboard(context.getBundleContext());
        authorizableActionProvider.start(whiteboard);
        restrictionProvider.start(whiteboard);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.osgi.OsgiWhiteboard


    @Activate
    protected void activate(ComponentContext context, Map<String, ?> config) throws Exception {
        this.context = context;
        this.whiteboard = new OsgiWhiteboard(context.getBundleContext());
        this.executor = new WhiteboardExecutor();
        executor.start(whiteboard);

        if (blobStore == null &&
                PropertiesUtil.toBoolean(prop(CUSTOM_BLOB_STORE), false)) {
View Full Code Here

Examples of org.apache.jackrabbit.oak.osgi.OsgiWhiteboard

            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.osgi.OsgiWhiteboard

        Dictionary<String, String> props = new Hashtable<String, String>();
        props.put(Constants.SERVICE_PID, SegmentNodeStore.class.getName());
        registration = context.getBundleContext().registerService(NodeStore.class.getName(), this, props);

        OsgiWhiteboard whiteboard = new OsgiWhiteboard(context.getBundleContext());
        executor = new WhiteboardExecutor();
        executor.start(whiteboard);

        RevisionGC revisionGC = new RevisionGC(new Runnable() {
            @Override
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.