Package org.apache.hivemind

Examples of org.apache.hivemind.ApplicationRuntimeException


            stack.push(interceptor);
        }
        catch (Exception ex)
        {
            throw new ApplicationRuntimeException(
                ServiceMessages.errorInstantiatingInterceptor(
                    _serviceId,
                    stack,
                    interceptorClass,
                    ex),
View Full Code Here


        checkShutdown();

        ServicePoint result = (ServicePoint) _servicePoints.get(serviceId);

        if (result == null)
            throw new ApplicationRuntimeException(ImplMessages.noSuchServicePoint(serviceId));

        return result;
    }
View Full Code Here

    public Object getService(Class serviceInterface)
    {
        List servicePoints = (List) _servicePointsByInterface.get(serviceInterface);

        if (servicePoints == null)
            throw new ApplicationRuntimeException(
                ImplMessages.noServicePointForInterface(serviceInterface));

        if (servicePoints.size() > 1)
            throw new ApplicationRuntimeException(
                ImplMessages.multipleServicePointsForInterface(serviceInterface, servicePoints));

        ServicePoint sp = (ServicePoint) servicePoints.get(0);

        return sp.getService(serviceInterface);
View Full Code Here

        checkShutdown();

        ConfigurationPoint result = (ConfigurationPoint) _configurationPoints.get(configurationId);

        if (result == null)
            throw new ApplicationRuntimeException(
                ImplMessages.noSuchConfiguration(configurationId));

        return result;
    }
View Full Code Here

    }

    private synchronized void checkShutdown()
    {
        if (_shutdown)
            throw new ApplicationRuntimeException(HiveMindMessages.registryShutdown());
    }
View Full Code Here

            readServiceModelFactories();

        ServiceModelFactory result = (ServiceModelFactory) _serviceModelFactories.get(name);

        if (result == null)
            throw new ApplicationRuntimeException(ImplMessages.unknownServiceModel(name));

        return result;
    }
View Full Code Here

            return core;
        }
        catch (Exception ex)
        {
            throw new ApplicationRuntimeException(
                ServiceModelMessages.unableToConstructService(getServicePoint(), ex),
                ex);
        }
    }
View Full Code Here

            return new PooledService(core);
        }
        catch (Exception ex)
        {
            throw new ApplicationRuntimeException(
                ServiceModelMessages.unableToConstructService(getServicePoint(), ex),
                ex);
        }
    }
View Full Code Here

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

        try
        {
            PropertyEditor e = PropertyEditorManager.findEditor(propertyType);

            if (e == null)
                throw new ApplicationRuntimeException(
                    RulesMessages.noPropertyEditor(propertyType),
                    location,
                    null);

            e.setAsText(inputValue);

            return e.getValue();
        }
        catch (Exception ex)
        {
            throw new ApplicationRuntimeException(
                RulesMessages.smartTranslatorError(inputValue, propertyType, ex),
                location,
                ex);

        }
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.