Examples of path()


Examples of org.apache.jackrabbit.oak.plugins.observation.filter.FilterBuilder.path()

        assumeTrue(observationManager instanceof ObservationManagerImpl);
        ObservationManagerImpl oManager = (ObservationManagerImpl) observationManager;
        ExpectationListener listener = new ExpectationListener();
        FilterBuilder builder = new FilterBuilder();
        builder.condition(builder.any(
                builder.path(TEST_PATH + "/a/b"),
                builder.path(TEST_PATH + "/x/y")));
        oManager.addEventListener(listener, builder.build());

        Node testNode = getNode(TEST_PATH);
        Node b = testNode.addNode("a").addNode("b");
View Full Code Here

Examples of org.apache.james.mailbox.MessageResult.FetchGroup.PartContentDescriptor.path()

            return false;
        if (getClass() != obj.getClass())
            return false;
        final PartContentDescriptor other = (PartContentDescriptor) obj;
        if (path == null) {
            if (other.path() != null)
                return false;
        } else if (!path.equals(other.path()))
            return false;
        return true;
    }
View Full Code Here

Examples of org.apache.james.mailbox.model.MessageResult.FetchGroup.PartContentDescriptor.path()

            return false;
        if (getClass() != obj.getClass())
            return false;
        final PartContentDescriptor other = (PartContentDescriptor) obj;
        if (path == null) {
            if (other.path() != null)
                return false;
        } else if (!path.equals(other.path()))
            return false;
        return true;
    }
View Full Code Here

Examples of org.apache.openejb.cdi.api.Hessian.path()

            return path;
        }

        final Hessian hessian = itf.getAnnotation(Hessian.class);
        if (hessian != null) {
            final String name = hessian.path();
            if (name.isEmpty()) {
                return itf.getName();
            }
            return name;
        }
View Full Code Here

Examples of org.apache.sling.models.annotations.injectorspecific.ResourcePath.path()

        if (pathAnnotation != null) {
            resourcePath = pathAnnotation.value();
        } else {
            ResourcePath resourcePathAnnotation = element.getAnnotation(ResourcePath.class);
            if (resourcePathAnnotation != null) {
                resourcePath = resourcePathAnnotation.path();
                if (resourcePath.isEmpty()) {
                    resourcePath = null;
                }
            }
View Full Code Here

Examples of org.atmosphere.config.service.AtmosphereHandlerService.path()

                } catch (Throwable e) {
                    logger.warn("", e);
                }
            }

            if (a.path().contains("{")) {
                framework.interceptors().add(framework.newClassInstance(AtmosphereInterceptor.class, AtmosphereHandlerServiceInterceptor.class));
            }

            AtmosphereInterceptor aa = listeners(a.listeners(), framework);
            if (aa != null) {
View Full Code Here

Examples of org.atmosphere.config.service.AtmosphereService.path()

            if (!a.servlet().isEmpty()) {
                final ReflectorServletProcessor r = framework.newClassInstance(ReflectorServletProcessor.class, ReflectorServletProcessor.class);
                r.setServletClassName(a.servlet());

                String mapping = a.path();

                AnnotationUtil.interceptors(framework, a.interceptors(), l);

                if (!a.dispatch()) {
                    AtmosphereHandler proxy = new AtmosphereServletProcessor() {
View Full Code Here

Examples of org.atmosphere.config.service.ManagedService.path()

        if (a == null) return null;

        return new ManagedAnnotation(){
            @Override
            public String path() {
                return a.path();
            }

            @Override
            public Class<? extends Broadcaster> broadcaster() {
                return a.broadcaster();
View Full Code Here

Examples of org.atmosphere.config.service.MeteorService.path()

                // MeteorService
                if (ReflectorServletProcessor.class.isAssignableFrom(w.atmosphereHandler.getClass())) {
                    Servlet s = ReflectorServletProcessor.class.cast(w.atmosphereHandler).getServlet();
                    MeteorService m = s.getClass().getAnnotation(MeteorService.class);
                    if (m != null) {
                        String targetPath = m.path();
                        if (targetPath.indexOf("{") != -1 && targetPath.indexOf("}") != -1) {
                            try {
                                boolean singleton = s.getClass().getAnnotation(Singleton.class) != null;
                                if (!singleton) {
                                    ReflectorServletProcessor r =
View Full Code Here

Examples of org.atmosphere.config.service.WebSocketHandlerService.path()

                p = handlers.get(path);
                if (p == null) {
                    // AtmosphereHandlerService
                    WebSocketHandlerService a = w.proxied.getClass().getAnnotation(WebSocketHandlerService.class);
                    if (a != null) {
                        String targetPath = a.path();
                        if (targetPath.indexOf("{") != -1 && targetPath.indexOf("}") != -1) {
                            try {
                                boolean singleton = w.proxied.getClass().getAnnotation(Singleton.class) != null;
                                if (!singleton) {
                                    registerWebSocketHandler(path, new WebSocketHandlerProxy(a.broadcaster(),
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.