Class OpenShiftAccessInterfaceImpl
- java.lang.Object
-
- org.guvnor.ala.openshift.access.impl.OpenShiftAccessInterfaceImpl
-
- All Implemented Interfaces:
OpenShiftAccessInterface,org.uberfire.commons.lifecycle.Disposable
public class OpenShiftAccessInterfaceImpl extends Object implements OpenShiftAccessInterface, org.uberfire.commons.lifecycle.Disposable
Configures, builds, and caches the openshift client, per provider id.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description OpenShiftAccessInterfaceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()OpenShiftClientgetOpenShiftClient(org.guvnor.ala.runtime.providers.ProviderId providerId)Gets the OpenShift Client for the provided ProviderId.OpenShiftClientnewOpenShiftClient(org.guvnor.ala.config.ProviderConfig providerConfig)Always creates a new OpenShiftClient with the provided Provider configuration.
-
-
-
Method Detail
-
getOpenShiftClient
public OpenShiftClient getOpenShiftClient(org.guvnor.ala.runtime.providers.ProviderId providerId)
Description copied from interface:OpenShiftAccessInterfaceGets the OpenShift Client for the provided ProviderId.- Specified by:
getOpenShiftClientin interfaceOpenShiftAccessInterface- Parameters:
providerId- the ProviderId- Returns:
- OpenShiftClient for the ProviderId; if it doesn't exist, it creates a new OpenshiftClient
- See Also:
the (potentially cached) OpenShiftClient
-
newOpenShiftClient
public OpenShiftClient newOpenShiftClient(org.guvnor.ala.config.ProviderConfig providerConfig)
Description copied from interface:OpenShiftAccessInterfaceAlways creates a new OpenShiftClient with the provided Provider configuration.- Specified by:
newOpenShiftClientin interfaceOpenShiftAccessInterface- Parameters:
providerConfig- the Provider configuration- Returns:
- the OpenShiftClient
- See Also:
the (not-cached) OpenShiftClient
-
dispose
public void dispose()
- Specified by:
disposein interfaceorg.uberfire.commons.lifecycle.Disposable
-
-