Examples of ILocator


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

Examples of fr.soleil.salsa.locator.ILocator

     * 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

Examples of fr.soleil.salsa.locator.ILocator

            // 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

Examples of fr.soleil.salsa.locator.ILocator

     * 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

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

Examples of fr.soleil.salsa.locator.ILocator

     * 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

Examples of org.eclipse.wb.draw2d.ILocator

    handle.setDragTrackerTool(new ResizeTracker(direction, REQ_RESIZE));
    return handle;
  }

  protected final Handle createResizeHandle(int direction, double percent, final Color fillColor) {
    ILocator locator = createComponentLocator(direction, percent);
    ResizeHandle handle = new ResizeHandle(getHost(), direction, locator) {
      @Override
      protected Color getBorderColor() {
        return IColorConstants.black;
      }
View Full Code Here

Examples of org.eclipse.webdav.ILocator

    public Map<String, ResourceProperties> listDirectory(String path) throws Exception {
        IResponse response = null;
        try {
            IContext context = createContext();
            context.put("Depth", "1"); //$NON-NLS-1$ //$NON-NLS-2$
            ILocator locator = WebDAVFactory.locatorFactory.newLocator(path);
            response = client.propfind(locator, context, null);
            if (response.getStatusCode() != IResponse.SC_MULTI_STATUS) {
                throw new WebDavException(response);
            }
            Map<String, ResourceProperties> res =
View Full Code Here

Examples of org.eclipse.webdav.ILocator

    public ResourceProperties queryProperties(String resource) throws Exception {
        IResponse response = null;
        try {
            IContext context = createContext();
            context.put("Depth", "1"); //$NON-NLS-1$ //$NON-NLS-2$
            ILocator locator = WebDAVFactory.locatorFactory.newLocator(resource);
            response = client.propfind(locator, context, null);
            if (response.getStatusCode() != IResponse.SC_MULTI_STATUS
               && response.getStatusCode() != IResponse.SC_OK) {
                throw new WebDavException(response);
            }
View Full Code Here

Examples of org.eclipse.webdav.ILocator

    /*
     * (non-Javadoc)
     * @see org.guvnor.tools.utils.webdav.IWebDavClient#getInputStream(java.lang.String)
     */
    public IResponse getResourceInputStream(String resource) throws Exception {
        ILocator locator = WebDAVFactory.locatorFactory.newLocator(resource);
        IResponse response = client.get(locator, createContext());
        if (response.getStatusCode() != IResponse.SC_OK) {
            throw new WebDavException(response);
        }
        return response;
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.