Examples of addInterceptor()


Examples of com.buschmais.cdo.impl.interceptor.InterceptorFactory.addInterceptor()

        InterceptorFactory interceptorFactory = new InterceptorFactory(cdoTransaction, defaultTransactionAttribute);
        InstanceManager instanceManager = new InstanceManager(metadataProvider, datastoreSession, classLoader, cdoTransaction, cache, interceptorFactory);
        // Register default synchronizations.
        cdoTransaction.registerDefaultSynchronization(new ValidatorSynchronization(instanceValidator));
        cdoTransaction.registerDefaultSynchronization(new CacheSynchronization(instanceManager, cache, datastoreSession));
        return interceptorFactory.addInterceptor(new CdoManagerImpl(metadataProvider, cdoTransaction, cache, datastoreSession, instanceManager, interceptorFactory, instanceValidator));
    }

    @Override
    public void close() {
        datastore.close();
View Full Code Here

Examples of com.buschmais.xo.spi.interceptor.InterceptorFactory.addInterceptor()

        Class<XODatastoreProvider> delegateProviderType = ClassHelper.getType(delegateProviderName);
        XODatastoreProvider<EntityMetadata, EntityDiscriminator, RelationMetadata, RelationDiscriminator> delegateProvider = ClassHelper.newInstance(delegateProviderType);
        Datastore<?, EntityMetadata, EntityDiscriminator, RelationMetadata, RelationDiscriminator> delegateDatastore = delegateProvider.createDatastore(xoUnit);
        TraceMonitor traceMonitor = new TraceMonitor(xoUnit);
        InterceptorFactory interceptorFactory = new InterceptorFactory(Arrays.asList(new TraceMonitorInterceptor(traceMonitor)));
        return new TraceDatastore<>(interceptorFactory.addInterceptor(delegateDatastore, Datastore.class), interceptorFactory, traceMonitor);
    }
}
View Full Code Here

Examples of com.dyuproject.web.rest.InterceptorCollection.addInterceptor()

            else if(ph._interceptor instanceof InterceptorCollection)
                ((InterceptorCollection)ph._interceptor).addInterceptor(i);
            else
            {
                InterceptorCollection ic = new InterceptorCollection();
                ic.addInterceptor(ph._interceptor);
                ic.addInterceptor(i);
                ph._interceptor = ic;
            }
        }
    }
View Full Code Here

Examples of com.hazelcast.core.IMap.addInterceptor()

        HazelcastInstance instance1 = nodeFactory.newHazelcastInstance(cfg);
        IMap map = instance1.getMap("map");
        for (int i = 0; i < 100; i++) {
            map.put(i,i);
        }
        map.addInterceptor(new NegativeInterceptor());
        for (int i = 0; i < 100; i++) {
            assertEquals(i*-1, map.get(i));
        }
        HazelcastInstance instance2 = nodeFactory.newHazelcastInstance(cfg);
        for (int i = 0; i < 100; i++) {
View Full Code Here

Examples of com.hazelcast.map.MapContainer.addInterceptor()

            final MapContainer mapContainer = mapService.getMapContainer(interceptorInfo.mapName);
            Map<String, MapInterceptor> interceptorMap = mapContainer.getInterceptorMap();
            List<Map.Entry<String, MapInterceptor>> entryList = interceptorInfo.interceptors;
            for (Map.Entry<String, MapInterceptor> entry : entryList) {
                if (!interceptorMap.containsKey(entry.getKey())) {
                    mapContainer.addInterceptor(entry.getKey(), entry.getValue());
                }
            }
        }
    }
View Full Code Here

Examples of com.hazelcast.map.MapService.addInterceptor()

    }

    @Override
    protected OperationFactory createOperationFactory() {
        final MapService mapService = getService();
        id = mapService.addInterceptor(name, mapInterceptor);
        return new AddInterceptorOperationFactory(id, name, mapInterceptor);
    }

    @Override
    protected Object reduce(Map<Address, Object> map) {
View Full Code Here

Examples of com.hazelcast.map.impl.MapContainer.addInterceptor()

            final MapContainer mapContainer = mapService.getMapServiceContext().getMapContainer(interceptorInfo.mapName);
            Map<String, MapInterceptor> interceptorMap = mapContainer.getInterceptorMap();
            List<Map.Entry<String, MapInterceptor>> entryList = interceptorInfo.interceptors;
            for (Map.Entry<String, MapInterceptor> entry : entryList) {
                if (!interceptorMap.containsKey(entry.getKey())) {
                    mapContainer.addInterceptor(entry.getKey(), entry.getValue());
                }
            }
        }
    }
View Full Code Here

Examples of com.sun.xml.internal.ws.api.pipe.Fiber.addInterceptor()

        if (wsdlProperties != null) {
            request.addSatellite(wsdlProperties);
        }
        Fiber fiber = engine.createFiber();
        if (interceptor != null) {
            fiber.addInterceptor(interceptor);
        }
        final Tube tube = tubePool.take();
        fiber.start(tube, request, new Fiber.CompletionCallback() {
            public void onCompletion(@NotNull Packet response) {
                tubePool.recycle(tube);
View Full Code Here

Examples of com.sun.xml.ws.api.pipe.Fiber.addInterceptor()

        if (wsdlProperties != null) {
            request.addSatellite(wsdlProperties);
        }
        Fiber fiber = engine.createFiber();
        if (interceptor != null) {
            fiber.addInterceptor(interceptor);
        }
        final Tube tube = tubePool.take();
        fiber.start(tube, request, new Fiber.CompletionCallback() {
            public void onCompletion(@NotNull Packet response) {
                tubePool.recycle(tube);
View Full Code Here

Examples of org.apache.cactus.extension.jsp.JspTagLifecycle.addInterceptor()

    {
        try
        {
            JspTagLifecycle lifecycle =
                new JspTagLifecycle(pageContext, new OutTag());
            lifecycle.addInterceptor(null);
            fail("Expected NullPointerException");
        }
        catch (NullPointerException expected)
        {
            // expected
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.