Examples of ContextService


Examples of javax.util.concurrent.ContextService

       
        assertEquals(Arrays.asList(expected, null, null, null, expected), task1.getList());
    }
      
    public void testBadProxyInterfaces() throws Exception {
        ContextService service = getContextService();
       
        MyTask task1 = new MyTask();
       
        try {
            service.createContextObject(task1, null);
            fail("Did not throw exception");
        } catch (IllegalArgumentException e) {
            // ok
        }
       
        try {
            service.createContextObject(task1, new Class[] {} );
            fail("Did not throw exception");
        } catch (IllegalArgumentException e) {
            // ok
        }
       
        try {
            service.createContextObject(task1, new Class[] {null} );
            fail("Did not throw exception");
        } catch (IllegalArgumentException e) {
            // ok
        }
       
        try {
            service.createContextObject(task1, new Class[] {Serializable.class, null} );
            fail("Did not throw exception");
        } catch (IllegalArgumentException e) {
            // ok
        }
       
        try {
            service.createContextObject(task1, new Class[] {Runnable.class, null} );
            fail("Did not throw exception");
        } catch (IllegalArgumentException e) {
            // ok
        }
    }
View Full Code Here

Examples of org.apache.catalina.deploy.ContextService

            context.getNamingResources().addEnvironment(resource);
           
        } else if (annotation.type().getCanonicalName().equals("javax.xml.rpc.Service")) {
           
            // service-ref element
            ContextService service = new ContextService();
           
            service.setName(annotation.name());
            service.setWsdlfile(annotation.mappedName());
           
            service.setType(annotation.type().getCanonicalName());
            service.setDescription(annotation.description());
           
            context.getNamingResources().addService(service);
           
        } else if (annotation.type().getCanonicalName().equals("javax.sql.DataSource") ||
                annotation.type().getCanonicalName().equals("javax.jms.ConnectionFactory") ||
View Full Code Here

Examples of org.apache.catalina.deploy.ContextService

        if (colon >= 0) {
            String prefix = text.substring(0,colon);
            namespaceuri = digester.findNamespaceURI(prefix);
            localpart = text.substring(colon+1);
        }
        ContextService contextService = (ContextService)digester.peek();
        contextService.setServiceqnameLocalpart(localpart);
        contextService.setServiceqnameNamespaceURI(namespaceuri);
    }
View Full Code Here

Examples of org.apache.catalina.deploy.ContextService

        if (colon >= 0) {
            String prefix = text.substring(0,colon);
            namespaceuri = digester.findNamespaceURI(prefix);
            localpart = text.substring(colon+1);
        }
        ContextService contextService = (ContextService)digester.peek();
        contextService.setServiceqnameLocalpart(localpart);
        contextService.setServiceqnameNamespaceURI(namespaceuri);
    }
View Full Code Here

Examples of org.apache.catalina.deploy.ContextService

        } else if (type.equals("addService")) {

            String serviceName = (String) event.getData();
            if (serviceName != null) {
                ContextService service =
                    namingResources.findService(serviceName);
                addService(service);
            }

        } else if (type.equals("removeEjb")) {
View Full Code Here

Examples of org.apache.catalina.deploy.ContextService

                    addResourceLink(rl);
                }
            }
        } else if (name.equals("service")) {
            if (oldValue != null) {
                ContextService service = (ContextService) oldValue;
                if (service.getName() != null) {
                    removeService(service.getName());
                }
            }
            if (newValue != null) {
                ContextService service = (ContextService) newValue;
                if (service.getName() != null) {
                    addService(service);
                }
            }
        }
View Full Code Here

Examples of org.apache.catalina.deploy.ContextService

        if (colon >= 0) {
            String prefix = text.substring(0,colon);
            namespaceuri = digester.findNamespaceURI(prefix);
            localpart = text.substring(colon+1);
        }
        ContextService contextService = (ContextService)digester.peek();
        contextService.setServiceqnameLocalpart(localpart);
        contextService.setServiceqnameNamespaceURI(namespaceuri);
    }
View Full Code Here

Examples of org.apache.catalina.deploy.ContextService

        } else if (type.equals("addService")) {

            String serviceName = (String) event.getData();
            if (serviceName != null) {
                ContextService service =
                    namingResources.findService(serviceName);
                addService(service);
            }

        } else if (type.equals("removeEjb")) {
View Full Code Here

Examples of org.apache.catalina.deploy.ContextService

                    addResourceLink(rl);
                }
            }
        } else if (name.equals("service")) {
            if (oldValue != null) {
                ContextService service = (ContextService) oldValue;
                if (service.getName() != null) {
                    removeService(service.getName());
                }
            }
            if (newValue != null) {
                ContextService service = (ContextService) newValue;
                if (service.getName() != null) {
                    addService(service);
                }
            }
        }
View Full Code Here

Examples of org.apache.catalina.deploy.ContextService

            context.getNamingResources().addEnvironment(resource);
           
        } else if (type.equals("javax.xml.rpc.Service")) {
           
            // service-ref element
            ContextService service = new ContextService();
           
            service.setName(name);
            service.setWsdlfile(annotation.mappedName());
           
            service.setType(type);
            service.setDescription(annotation.description());
           
            context.getNamingResources().addService(service);
           
        } else if (type.equals("javax.sql.DataSource") ||
                type.equals("javax.jms.ConnectionFactory") ||
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.