Examples of TService


Examples of org.apache.aries.blueprint.jaxb.Tservice

                }
            }
           
            // check if the bean also declares service
            if (clazz.getAnnotation(Service.class) != null) {
                Tservice tservice = generateTservice(clazz, id, reglMap);
                components.add(tservice);
            }
           
            // check if the clazz implement Converter, if so, it is Converter
            boolean isConverter = isConverter(clazz);
View Full Code Here

Examples of org.apache.aries.blueprint.jaxb.Tservice

        int ranking = service.ranking();
        String autoExport = service.autoExport();
        ServiceProperty[] serviceProperties = service.serviceProperties();
        RegistrationListener[] regListeners = service.registerationListeners();
       
        Tservice tservice = new Tservice();
       
        // can not think of configuring depends on for service
        tservice.setDependsOn(null);
       
        // use the bean id as the ref value since we are exposing service for the bean
        tservice.setRefAttribute(id);
       
        if (autoExport.length() > 0) {
            tservice.setAutoExport(autoExport);
        }
        if (ranking > 0) {
            tservice.setRanking(ranking);
        }
        for (Class<?> interf : interfaces) {
            Tinterfaces tInterfaces = new Tinterfaces();
            if (interf != null) {
                tInterfaces.getValue().add(interf.getName());
            }
            tservice.setInterfaces(tInterfaces);
        }
       
        // process service property.  only key value as string are supported for now
        for (ServiceProperty sp : serviceProperties) {
            if (sp != null) {
                String key = sp.key();
                String value = sp.value();
                if (key.length() > 0 && value.length() > 0) {
                    TservicePropertyEntry tsp = new TservicePropertyEntry();
                    tsp.setKey(key);
                    tsp.setValueAttribute(value);
                    tservice.getServiceProperties().getEntry().add(tsp);
                }
               
            }
        }
       
        for (RegistrationListener regListener : regListeners) {
            String ref = regListener.ref();
            if (ref.length() > 0) {
                TregistrationListener tregListener = reglMap.get(ref);
                tregListener.setRefAttribute(ref);
                tservice.getRegistrationListener().add(tregListener);
               
            } else {
                throw new BlueprintAnnotationException("No ref id for service registration listener " + " for " + clazz.getName());
            }
        }
View Full Code Here

Examples of org.apache.aries.blueprint.jaxb.Tservice

                }
            }
           
            // check if the bean also declares service
            if (clazz.getAnnotation(Service.class) != null) {
                Tservice tservice = generateTservice(clazz, id, reglMap);
                components.add(tservice);
            }
           
            // check if the clazz implement Converter, if so, it is Converter
            boolean isConverter = isConverter(clazz);
View Full Code Here

Examples of org.apache.aries.blueprint.jaxb.Tservice

        int ranking = service.ranking();
        String autoExport = service.autoExport();
        ServiceProperty[] serviceProperties = service.serviceProperties();
        RegistrationListener[] regListeners = service.registerationListeners();
       
        Tservice tservice = new Tservice();
       
        // can not think of configuring depends on for service
        tservice.setDependsOn(null);
       
        // use the bean id as the ref value since we are exposing service for the bean
        tservice.setRefAttribute(id);
       
        if (autoExport.length() > 0) {
            tservice.setAutoExport(autoExport);
        }
        if (ranking > 0) {
            tservice.setRanking(ranking);
        }
        for (Class<?> interf : interfaces) {
            Tinterfaces tInterfaces = new Tinterfaces();
            if (interf != null) {
                tInterfaces.getValue().add(interf.getName());
            }
            tservice.setInterfaces(tInterfaces);
        }
       
        // process service property.  only key value as string are supported for now
        for (ServiceProperty sp : serviceProperties) {
            if (sp != null) {
                String key = sp.key();
                String value = sp.value();
                if (key.length() > 0 && value.length() > 0) {
                    TservicePropertyEntry tsp = new TservicePropertyEntry();
                    tsp.setKey(key);
                    tsp.setValueAttribute(value);
                    tservice.getServiceProperties().getEntry().add(tsp);
                }
               
            }
        }
       
        for (RegistrationListener regListener : regListeners) {
            String ref = regListener.ref();
            if (ref.length() > 0) {
                TregistrationListener tregListener = reglMap.get(ref);
                tregListener.setRefAttribute(ref);
                tservice.getRegistrationListener().add(tregListener);
               
            } else {
                throw new BlueprintAnnotationException("No ref id for service registration listener " + " for " + clazz.getName());
            }
        }
View Full Code Here

Examples of org.apache.aries.blueprint.jaxb.Tservice

                }
            }
           
            // check if the bean also declares service
            if (clazz.getAnnotation(Service.class) != null) {
                Tservice tservice = generateTservice(clazz, id, reglMap);
                components.add(tservice);
            }
           
            // check if the clazz implement Converter, if so, it is Converter
            boolean isConverter = isConverter(clazz);
View Full Code Here

Examples of org.apache.aries.blueprint.jaxb.Tservice

        int ranking = service.ranking();
        String autoExport = service.autoExport();
        ServiceProperty[] serviceProperties = service.serviceProperties();
        RegistrationListener[] regListeners = service.registerationListeners();
       
        Tservice tservice = new Tservice();
       
        // can not think of configuring depends on for service
        tservice.setDependsOn(null);
       
        // use the bean id as the ref value since we are exposing service for the bean
        tservice.setRefAttribute(id);
       
        if (autoExport.length() > 0) {
            tservice.setAutoExport(autoExport);
        }
        if (ranking > 0) {
            tservice.setRanking(ranking);
        }
        for (Class<?> interf : interfaces) {
            Tinterfaces tInterfaces = new Tinterfaces();
            if (interf != null) {
                tInterfaces.getValue().add(interf.getName());
            }
            tservice.setInterfaces(tInterfaces);
        }
       
        // process service property.  only key value as string are supported for now
        for (ServiceProperty sp : serviceProperties) {
            if (sp != null) {
                String key = sp.key();
                String value = sp.value();
                if (key.length() > 0 && value.length() > 0) {
                    TservicePropertyEntry tsp = new TservicePropertyEntry();
                    tsp.setKey(key);
                    tsp.setValueAttribute(value);
                    tservice.getServiceProperties().getEntry().add(tsp);
                }
               
            }
        }
       
        for (RegistrationListener regListener : regListeners) {
            String ref = regListener.ref();
            if (ref.length() > 0) {
                TregistrationListener tregListener = reglMap.get(ref);
                tregListener.setRefAttribute(ref);
                tservice.getRegistrationListener().add(tregListener);
               
            } else {
                throw new BlueprintAnnotationException("No ref id for service registration listener " + " for " + clazz.getName());
            }
        }
View Full Code Here

Examples of org.apache.geronimo.xbeans.wsdl.TService

    public String movePortLocation(String portComponentName, String servletLocation) throws DeploymentException {
        DefinitionsDocument doc = (DefinitionsDocument) wsdlMap.get(uris.get(0));
        TDefinitions definitions = doc.getDefinitions();
        TService[] services = definitions.getServiceArray();
        for (int i = 0; i < services.length; i++) {
            TService service = services[i];
            TPort[] ports = service.getPortArray();
            for (int j = 0; j < ports.length; j++) {
                TPort port = ports[j];
                if (port.getName().trim().equals(portComponentName)) {
                    XmlCursor portCursor = port.newCursor();
                    try {
View Full Code Here

Examples of org.apache.geronimo.xbeans.wsdl.TService

    public String movePortLocation(String portComponentName, String servletLocation) throws DeploymentException {
        DefinitionsDocument doc = (DefinitionsDocument) wsdlMap.get(uris.get(0));
        TDefinitions definitions = doc.getDefinitions();
        TService[] services = definitions.getServiceArray();
        for (int i = 0; i < services.length; i++) {
            TService service = services[i];
            TPort[] ports = service.getPortArray();
            for (int j = 0; j < ports.length; j++) {
                TPort port = ports[j];
                if (port.getName().trim().equals(portComponentName)) {
                    XmlCursor portCursor = port.newCursor();
                    try {
View Full Code Here

Examples of org.apache.geronimo.xbeans.wsdl.TService

    public String movePortLocation(String portComponentName, String servletLocation) throws DeploymentException {
        DefinitionsDocument doc = (DefinitionsDocument) wsdlMap.get(uris.get(0));
        TDefinitions definitions = doc.getDefinitions();
        TService[] services = definitions.getServiceArray();
        for (int i = 0; i < services.length; i++) {
            TService service = services[i];
            TPort[] ports = service.getPortArray();
            for (int j = 0; j < ports.length; j++) {
                TPort port = ports[j];
                if (port.getName().trim().equals(portComponentName)) {
                    XmlCursor portCursor = port.newCursor();
                    try {
View Full Code Here

Examples of org.apache.geronimo.xbeans.wsdl.TService

    public String movePortLocation(String portComponentName, String servletLocation) throws DeploymentException {
        DefinitionsDocument doc = (DefinitionsDocument) wsdlMap.get(uris.get(0));
        TDefinitions definitions = doc.getDefinitions();
        TService[] services = definitions.getServiceArray();
        for (int i = 0; i < services.length; i++) {
            TService service = services[i];
            TPort[] ports = service.getPortArray();
            for (int j = 0; j < ports.length; j++) {
                TPort port = ports[j];
                if (port.getName().trim().equals(portComponentName)) {
                    XmlCursor portCursor = port.newCursor();
                    try {
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.