01: package dalma.spi;
02:
03: import dalma.EndPoint;
04:
05: import java.text.ParseException;
06:
07: /**
08: * Creates {@link EndPoint} from a connection string.
09: *
10: * @author Kohsuke Kawaguchi
11: */
12: public interface EndPointFactory {
13: /**
14: * Creates a new {@link EndPoint} from a connection string.
15: *
16: * @param endPointName
17: * this value will be returned from {@link EndPoint#getName()}.
18: * Must not be null.
19: * @param endpointURL
20: * A connection string. Must not be null.
21: *
22: * @return always non-null valid object
23: * @throws ParseException
24: * if there was an error in the connection string.
25: */
26: EndPoint create(String endPointName, String endpointURL)
27: throws ParseException;
28: }
|