public static Registerable newRegisterable()

in src/org/apache/kandula/coordinator/Registerable.java [29:40]


		public static Registerable newRegisterable(String coordinationType)
				throws InvalidProtocolException {
			if (Constants.WS_AT.equals(coordinationType)) {
				return new ATCoordinator();
			} else if ((Constants.WS_BA_ATOMIC.equals(coordinationType))
					|| (Constants.WS_BA_MIXED.equals(coordinationType))) {
				return new BACoordinator();
			} else {
				throw new InvalidProtocolException(
						"Unsupported Coordination Type");
			}
		}