EndPointFactory.java :  » Workflow-Engines » Dalma » dalma » spi » Java Open Source

Java Open Source » Workflow Engines » Dalma 
Dalma » dalma » spi » EndPointFactory.java
package dalma.spi;

import dalma.EndPoint;

import java.text.ParseException;

/**
 * Creates {@link EndPoint} from a connection string.
 *
 * @author Kohsuke Kawaguchi
 */
public interface EndPointFactory {
    /**
     * Creates a new {@link EndPoint} from a connection string.
     *
     * @param endPointName
     *      this value will be returned from {@link EndPoint#getName()}.
     *      Must not be null.
     * @param endpointURL
     *      A connection string. Must not be null.
     *
     * @return always non-null valid object
     * @throws ParseException
     *      if there was an error in the connection string.
     */
    EndPoint create(String endPointName, String endpointURL) throws ParseException;
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.