Package fr.soleil.salsa.locator

Examples of fr.soleil.salsa.locator.ILocator


            throw new LocatorException("The key " + interfaceClass.getCanonicalName()
                    + " could not be found in " + configFileName
                    + ".properties, and there is no default locator : the service "
                    + interfaceClass.getCanonicalName() + " cannot be found.");
        }
        ILocator locator = (ILocator) this.defaultLocator.getService(interfaceClass);
        return (T) locator;
    }
View Full Code Here


     * Prefer the use of the getLocator() (no parameter) method over this one.
     * @see ApplicationConfig#getLocator()
     * @throws ConfigurationException
     */
    public static ILocator getLocator(String locatorFileName) throws ConfigurationException {
        ILocator locator;
        try {
            locator = LocatorFactory.getLocator(locatorFileName);
            if (log.isDebugEnabled()) {
                log.debug("Initialisation du locator " + locator.getClass().getCanonicalName() + " dans ApplicationConfig.");
            }
        }
        catch(LocatorException e) {
            e.printStackTrace();
            throw new ConfigurationException("Erreur lors de l'instanciation du locator : " + e.getMessage(), e);
View Full Code Here

            // If there is no default locator and the current locator has no matching key for the service,
            // the service cannot be found.
            throw new LocatorException("The key " + interfaceClass.getCanonicalName() + " could not be found in " + configFileName
                    + ".properties, and there is no default locator : the service " + interfaceClass.getCanonicalName() + " cannot be found.");
        }
        ILocator locator = (ILocator) this.defaultLocator.getService(interfaceClass);
        return (T) locator;
    }
View Full Code Here

     * Prefer the use of the getLocator() (no parameter) method over this one.
     * @see ApplicationConfig#getLocator()
     * @throws ConfigurationException
     */
    public static ILocator getLocator(String locatorFileName) throws ConfigurationException {
        ILocator locator;
        try {
            locator = LocatorFactory.getLocator(locatorFileName);
            LOGGER.debug("Initialisation du locator {}", locator.getClass().getCanonicalName());
        }
        catch(LocatorException e) {
            String errorMessage = "Cannot create service locator see " + locatorFileName + " " + e.getMessage();
            LOGGER.error(errorMessage);
            LOGGER.debug("Stack trace", e);
View Full Code Here

            throw new LocatorException("The key " + interfaceClass.getCanonicalName()
                    + " could not be found in " + configFileName
                    + ".properties, and there is no default locator : the service "
                    + interfaceClass.getCanonicalName() + " cannot be found.");
        }
        ILocator locator = (ILocator) this.defaultLocator.getService(interfaceClass);
        return (T) locator;
    }
View Full Code Here

     * Prefer the use of the getLocator() (no parameter) method over this one.
     * @see ApplicationConfig#getLocator()
     * @throws ConfigurationException
     */
    public static ILocator getLocator(String locatorFileName) throws ConfigurationException {
        ILocator locator;
        try {
            locator = LocatorFactory.getLocator(locatorFileName);
            if (log.isDebugEnabled()) {
                log.debug("Initialisation du locator " + locator.getClass().getCanonicalName() + " dans ApplicationConfig.");
            }
        }
        catch(LocatorException e) {
            e.printStackTrace();
            throw new ConfigurationException("Erreur lors de l'instanciation du locator : " + e.getMessage(), e);
View Full Code Here

TOP

Related Classes of fr.soleil.salsa.locator.ILocator

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.