Overlooked: using interfaces over implementation
This commit is contained in:
parent
edf8ab9d3a
commit
7da681a654
|
@ -18,17 +18,20 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.olingo.odata4.client.core;
|
package org.apache.olingo.odata4.client.core;
|
||||||
|
|
||||||
|
import org.apache.olingo.odata4.client.api.ODataV3Client;
|
||||||
|
import org.apache.olingo.odata4.client.api.ODataV4Client;
|
||||||
|
|
||||||
public final class ODataClientFactory {
|
public final class ODataClientFactory {
|
||||||
|
|
||||||
public static ODataV3ClientImpl getV3() {
|
public static ODataV3Client getV3() {
|
||||||
return new ODataV3ClientImpl();
|
return new ODataV3ClientImpl();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ODataV4ClientImpl getV4() {
|
public static ODataV4Client getV4() {
|
||||||
return new ODataV4ClientImpl();
|
return new ODataV4ClientImpl();
|
||||||
}
|
}
|
||||||
|
|
||||||
private ODataClientFactory() {
|
private ODataClientFactory() {
|
||||||
// empty constructory for static utility class
|
// empty constructory for static utility class
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue