Examples of XmlServicePointDefinitionImpl


Examples of org.apache.hivemind.xml.definition.impl.XmlServicePointDefinitionImpl

        int count = size(services);

        for (int i = 0; i < count; i++)
        {
            ServicePointDescriptor sd = (ServicePointDescriptor) services.get(i);
            XmlServicePointDefinitionImpl servicePoint = new XmlServicePointDefinitionImpl(module, sd.getId(), sd.getLocation(),
                    sd.getVisibility(), sd.getInterfaceClassName());

            // Store the schema if embedded,
            // Schemas are for service factories only
            if (sd.getParametersSchema() != null) {
                servicePoint.setParametersSchema(sd.getParametersSchema());
                servicePoint.setParametersCount(sd.getParametersCount());
            } else if (sd.getParametersSchemaId() != null ) {
                // referenced schemas are resolved in post processing
                servicePoint.setParametersSchemaId(sd.getParametersSchemaId());
            }
               
           
            module.addServicePoint(servicePoint);
               
View Full Code Here

Examples of org.apache.hivemind.xml.definition.impl.XmlServicePointDefinitionImpl

            ServicePointDefinition spd = factoryPoint.getServicePointDefinition();
            if (!(spd instanceof XmlServicePointDefinitionImpl)) {
                // TODO annotations: Externalize message
                throw new ApplicationRuntimeException("ServicePoint used as InterceptorFactory must be of type XmlServicePointDefinitionImpl");
            }
            XmlServicePointDefinitionImpl xmlServicePoint = (XmlServicePointDefinitionImpl) spd;
            Schema schema = xmlServicePoint.getParametersSchema();
            if (schema != null) {

                SchemaProcessorImpl processor = new SchemaProcessorImpl(factoryPoint.getErrorLog(),
                        schema);
               
View Full Code Here

Examples of org.apache.hivemind.xml.definition.impl.XmlServicePointDefinitionImpl

        {
            ServicePointDefinition spd = (ServicePointDefinition) iterSp.next();
           
            // Check type. In case of the hivemind core module non xml service points exist
            if (spd instanceof XmlServicePointDefinitionImpl) {
                XmlServicePointDefinitionImpl xspd = (XmlServicePointDefinitionImpl) spd;
   
                if (xspd.getParametersSchemaId() != null) {
                    ServicePointDefinition point = sourceModule.getServicePoint(xspd.getId());
   
                    XmlServicePointDefinitionImpl xmlServicePoint = (XmlServicePointDefinitionImpl) point;
                    Schema schema = findSchema(sourceModule, xspd.getParametersSchemaId(), xspd.getLocation());
                    if (schema == null) {
                        // Error-Handling has been done in findSchema already
                    } else {
                        xmlServicePoint.setParametersSchema(schema);
                        xmlServicePoint.setParametersCount(xspd.getParametersCount());
                    }
                }
            }
        }
    }
View Full Code Here

Examples of org.apache.hivemind.xml.definition.impl.XmlServicePointDefinitionImpl

            ServicePointDefinition spd = factoryPoint.getServicePointDefinition();
            if (!(spd instanceof XmlServicePointDefinitionImpl)) {
                // TODO annotations: Externalize message
                throw new ApplicationRuntimeException("ServicePoint used as ServiceImplementationFactory must be of type XmlServicePointDefinitionImpl");
            }
            XmlServicePointDefinitionImpl xmlServicePoint = (XmlServicePointDefinitionImpl) spd;

            Schema schema = xmlServicePoint.getParametersSchema();
            if (schema != null) {
               
                Occurances expected = xmlServicePoint.getParametersCount();
                checkParameterCounts(errorLog, expected);

                SchemaProcessorImpl processor = new SchemaProcessorImpl(errorLog, schema);
               
                _convertedParameters = constructParametersContainer(schema.getRootElementClassName(), factoryPoint.getModule());
View Full Code Here

Examples of org.apache.hivemind.xml.definition.impl.XmlServicePointDefinitionImpl

       
        SchemaImpl schema = new SchemaImpl("module");
        schema.setRootElementClassName(ArrayList.class.getName());
       
        ModuleDefinition md = createModuleDefinition("test");
        XmlServicePointDefinitionImpl xmlSpd = new XmlServicePointDefinitionImpl(md);
        xmlSpd.setParametersCount(Occurances.REQUIRED);
        xmlSpd.setParametersSchema(schema);
       
        Location location = newLocation();
        InvokeFactoryServiceConstructor c = new InvokeFactoryServiceConstructor(location, "module");

        ErrorLog log = (ErrorLog) newMock(ErrorLog.class);
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.