@Override public OpenShiftRuntimeExecConfig asNewClone(final OpenShiftRuntimeExecConfig source) { return new ContextAwareOpenShiftRuntimeExecConfig( source.getRuntimeName(), source.getProviderId(), source.getApplicationName(), source.getKieServerContainerDeployment(), source.getProjectName(), source.getResourceSecretsUri(), source.getResourceStreamsUri(), source.getResourceTemplateName(), source.getResourceTemplateParamDelimiter(), source.getResourceTemplateParamAssigner(), source.getResourceTemplateParamValues(), source.getResourceTemplateUri(), source.getServiceName()); }
@Override public OpenShiftRuntime getValue() { OpenShiftProvider providerId = createOpenShiftProvider(); OpenShiftRuntimeConfig runtimeConfig = new ContextAwareOpenShiftRuntimeExecConfig( RUNTIME_NAME, providerId, APPLICATION_NAME, KIE_SERVER_CONTAINER_DEPLOYMENT, PROJECT_NAME, RESOURCE_SECRETS_URI, RESOURCE_STREAMS_URI, RESOURCE_TEMPLATE_NAME, RESOURCE_TEMPLATE_PARAM_DELIMITER, RESOURCE_TEMPLATE_PARAM_ASSIGNER, RESOURCE_TEMPLATE_PARAM_VALUES, RESOURCE_TEMPLATE_URI, SERVICE_NAME); return new OpenShiftRuntime(RUNTIME_ID, RUNTIME_NAME, runtimeConfig, providerId, new OpenShiftRuntimeEndpoint(PROTOCOL, HOST, PORT, CONTEXT), new OpenShiftRuntimeInfo(runtimeConfig), new OpenShiftRuntimeState(STATE, STARTED_AT)); } }
@Override public OpenShiftRuntime getValue() { OpenShiftProvider providerId = createOpenShiftProvider(); OpenShiftRuntimeConfig runtimeConfig = new ContextAwareOpenShiftRuntimeExecConfig( RUNTIME_NAME, providerId, APPLICATION_NAME, KIE_SERVER_CONTAINER_DEPLOYMENT, PROJECT_NAME, RESOURCE_SECRETS_URI, RESOURCE_STREAMS_URI, RESOURCE_TEMPLATE_NAME, RESOURCE_TEMPLATE_PARAM_DELIMITER, RESOURCE_TEMPLATE_PARAM_ASSIGNER, RESOURCE_TEMPLATE_PARAM_VALUES, RESOURCE_TEMPLATE_URI, SERVICE_NAME); return new OpenShiftRuntime(RUNTIME_ID, RUNTIME_NAME, runtimeConfig, providerId, new OpenShiftRuntimeEndpoint(PROTOCOL, HOST, PORT, CONTEXT), new OpenShiftRuntimeInfo(runtimeConfig), new OpenShiftRuntimeState(STATE, STARTED_AT)); } }
config( "OpenShift Provider Config", (s) -> new OpenShiftProviderConfig() {} ); final Stage<ProviderConfig, RuntimeConfig> runtimeExec = config( "OpenShift Runtime Config", (s) -> new ContextAwareOpenShiftRuntimeExecConfig() );
}) .addConfigStage("OpenShift Runtime Config", new ContextAwareOpenShiftRuntimeExecConfig()) .buildAs("my pipe");