Package org.apache.hivemind

Examples of org.apache.hivemind.ApplicationRuntimeException


    private void checkVisibility(ExtensionDefinition extension)
    {
        if (Visibility.PRIVATE.equals(getVisibility())
                && !extension.getModuleId().equals(getModuleId()))
        {
            throw new ApplicationRuntimeException(DefinitionMessages.configurationPointNotVisible(
                    this,
                    extension.getModule()));
        }
    }
View Full Code Here


    public void addParser(ConfigurationParserDefinition parser)
    {
        checkVisibility(parser);

        if (_parsers.containsKey(parser.getInputFormat())) {
            throw new ApplicationRuntimeException(DefinitionMessages.duplicateParserInputFormat(parser.getInputFormat(),
                    this));
        }
        _parsers.put(parser.getInputFormat(), parser);
    }
View Full Code Here

            return new ClassFabImpl(_classSource, ctNewClass);
        }
        catch (Exception ex)
        {
            throw new ApplicationRuntimeException(ServiceMessages.unableToCreateClass(
                    name,
                    superClass,
                    ex), ex);
        }
    }
View Full Code Here

            return new InterfaceFabImpl(_classSource, ctNewClass);
        }
        catch (Exception ex)
        {
            throw new ApplicationRuntimeException(
                    ServiceMessages.unableToCreateInterface(name, ex), ex);
        }

    }
View Full Code Here

            return c.newInstance(new Object[]
            { servicePoint.getExtensionPointId(), serviceModel });
        }
        catch (Exception ex)
        {
            throw new ApplicationRuntimeException(ex);
        }
    }
View Full Code Here

                    new Object[]
                    { servicePoint.getExtensionPointId(), delegate });
        }
        catch (Exception ex)
        {
            throw new ApplicationRuntimeException(ex);
        }
    }
View Full Code Here

            SchemaAssignment schemaAssignment = (SchemaAssignment) iterSa.next();

            String configurationPointId = IdUtils.qualify(sourceModule.getId(), schemaAssignment.getConfigurationId());
            ConfigurationPointDefinition cpd = _definition.getConfigurationPoint(configurationPointId);
            if (cpd == null) {
                throw new ApplicationRuntimeException(XmlImplMessages.unknownConfigurationPointOfSchemaAssignment(configurationPointId, schemaAssignment));
            }
           
            String schemaId = IdUtils.qualify(sourceModule.getId(), schemaAssignment.getSchemaId());
            Schema schema = getSchema(schemaId, sourceModule.getId(), schemaAssignment.getLocation());
           
View Full Code Here

            return _factory.createCoreServiceImplementation(factoryParameters);
        }
        catch (Exception ex)
        {
            throw new ApplicationRuntimeException(ex.getMessage(), getLocation(), ex);
        }
    }
View Full Code Here

                .getService(ServiceImplementationFactory.class);

            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) {
View Full Code Here

     * @throws ApplicationRuntimeException  if resource wasn't found
     */
   public void readModule(Resource moduleResource)
    {
        if (moduleResource.getResourceURL() == null)
            throw new ApplicationRuntimeException(XmlImplMessages.unableToFindModuleResource(moduleResource));
       
        processResource(moduleResource);
    }
View Full Code Here

TOP

Related Classes of org.apache.hivemind.ApplicationRuntimeException

Copyright © 2018 www.massapicom. 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.