Get a FlowController instance, given a FlowController class.

@param flowControllerClass the Class, which must be assignable to {@link FlowController}.
@return a new FlowController instance.
171328
public FlowController getFlowControllerInstance( Class flowControllerClass )
        throws InstantiationException, IllegalAccessException
    {
        assert FlowController.class.isAssignableFrom( flowControllerClass )
                : "Class " + flowControllerClass.getName() + " does not extend " + FlowController.class.getName();
        return ( FlowController ) flowControllerClass.newInstance();
    }
1126027
public static CommandProcessor getInstance() {
        if (null == instance) {
            synchronized (CommandProcessor.class) {
                if (null == instance) {
                    instance = new CommandProcessor();
                }
            }
        }
        return instance;
    }
542232
public void createFlowConfig(FlowConfig flowConfig)
      throws RemoteInvocationException {
    LOG.debug("createFlowConfig with groupName " + flowConfig.getId().getFlowGroup() + " flowName " +
        flowConfig.getId().getFlowName());

    CreateIdRequest<ComplexResourceKey<FlowId, EmptyRecord>, FlowConfig> request =
        _flowconfigsRequestBuilders.create().input(flowConfig).build();
    ResponseFuture<IdResponse<ComplexResourceKey<FlowId, EmptyRecord>>> flowConfigResponseFuture =
        _restClient.get().sendRequest(request);

    flowConfigResponseFuture.getResponse();
  }
462563
public WebSocketRoute onController(Class<?> clazz) {
        Objects.requireNonNull(clazz, Required.URL.toString());
        
        this.controllerClass = clazz;
        return this;
    }
954350
public Flow[] getFlows()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
    {
      SibTr.entry(tc, "getFlows");
    }
    Flow[] clonedFlows = flows.clone();
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
    {    
      SibTr.exit(tc, "getFlows", clonedFlows);
    }    
    return clonedFlows;
  }
300981
public static <T extends Transformer> TransformerDescriptor<T> ofTransformer(final Class<T> transformerClass) {
        return new AnnotationBasedTransformerComponentDescriptor<>(transformerClass);
    }
227546
public static JoseFactory instance() {
        if (instance == null) {
            synchronized (JoseFactory.class) {
                if (instance != null) {
                    return instance;
                }

                ClassLoader cl = AccessController.doPrivileged((PrivilegedAction<ClassLoader>) () -> Thread.currentThread().getContextClassLoader());
                if (cl == null) {
                    cl = JoseFactory.class.getClassLoader();
                }

                JoseFactory newInstance = loadSpi(cl);

                if (newInstance == null && cl != JoseFactory.class.getClassLoader()) {
                    cl = JoseFactory.class.getClassLoader();
                    newInstance = loadSpi(cl);
                }
                if (newInstance == null) {
                    newInstance = new DefaultJoseFactory();
                }

                instance = newInstance;
            }
        }

        return instance;
    }
260979
public static <T> T getInstance(Class<T> beanClass) {
		return (T) getInstanceProvider().getInstance(beanClass);
	}
965216
public FacesConfigFlowDefinitionType<WebFacesConfigDescriptor> getOrCreateFlowDefinition()
   {
      List<Node> nodeList = model.get("flow-definition");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new FacesConfigFlowDefinitionTypeImpl<WebFacesConfigDescriptor>(this, "flow-definition", model, nodeList.get(0));
      }
      return createFlowDefinition();
   }
862968
public static PageFlowController getPageFlow(ServletRequest request, ServletResponse response) {
        assert request instanceof HttpServletRequest;

        PageFlowController jpf = PageFlowUtils.getCurrentPageFlow((HttpServletRequest)request);
        if(jpf != null)
            return jpf;
        else {
            String message = "There is no current Page Flow!";
            LOGGER.error(message);
            throw new RuntimeException(message);
        }
    }
1002625
public static PageFlowController getCurrentPageFlow( HttpServletRequest request, ServletContext servletContext )
    {
        ActionResolver cur = getCurrentActionResolver( request, servletContext );

        if (cur != null && cur.isPageFlow()) {
            PageFlowController pfc = (PageFlowController) cur;
            pfc.reinitializeIfNecessary(request, null, servletContext);
            return pfc;
        }

        return null;
    }
43536
public function getController($contentClass)
    {
        if (isset($this->controllers[$contentClass])) {
            return $this->controllers[$contentClass];
        }
        foreach (class_parents($contentClass) as $parent) {
            if (isset($this->controllers[$parent])) {
                return $this->controllers[$parent];
            }
        }

        throw new ControllerException(sprintf('Content controller for class "%s" does not exist.', $contentClass));
    }
341996
public <T> T getModel(Class<T> modelClass) {
		return (T)Injector.injectModel(modelClass, request, false);
	}
1028828
public <T> Flow<T> map(Mapper<? super B, T> mapper) {
        return then(new FlowMap<B, T>(mapper));
    }
1126206
public FlowVariable createFlowVariable(final Flow flow, final String id, final Class type) {
        val opt = Arrays.stream(flow.getVariables()).filter(v -> v.getName().equalsIgnoreCase(id)).findFirst();
        if (opt.isPresent()) {
            return opt.get();
        }
        val flowVar = new FlowVariable(id, new BeanFactoryVariableValueFactory(type, applicationContext.getAutowireCapableBeanFactory()));
        flow.addVariable(flowVar);
        return flowVar;
    }
1023632
static RLSController getRLSController() throws Exception
	{
		if (tc.isEntryEnabled()) Tr.entry(tc, "getRLSController");
		
		if (_instance == null)      
	    {
	        try
	        {
	          _instance = (RLSController)Class.forName("com.ibm.ws.recoverylog.spi.RLSControllerImpl").newInstance();
	        }
	        catch (UnsupportedOperationException uoe)
	        {
	            // No FFDC code needed.
	            // Catch and swallow this exception
	        }
	        catch (Exception e)
	        {
	          FFDCFilter.processException(e, "com.ibm.ws.recoverylog.spi.RLSControllerFactory", "75");
	          if (tc.isEventEnabled()) Tr.event(tc, "Rethrowing exception");
	          if (tc.isEntryEnabled()) Tr.exit(tc, "getRLSController", e);
	          throw e;
	        }
	    }
		
		if (tc.isEntryEnabled()) Tr.exit(tc, "getRLSController", _instance);
		
	    return _instance;  
	}
74116
protected AuroraController getController()
      throws ClassNotFoundException, InstantiationException, IllegalAccessException {
    Boolean cliController = config.getBooleanValue(Key.AURORA_CONTROLLER_CLASS);
    Config localConfig = Config.toLocalMode(this.config);
    if (cliController) {
      return new AuroraCLIController(
          Runtime.topologyName(runtime),
          Context.cluster(localConfig),
          Context.role(localConfig),
          Context.environ(localConfig),
          AuroraContext.getHeronAuroraPath(localConfig),
          Context.verbose(localConfig));
    } else {
      return new AuroraHeronShellController(
          Runtime.topologyName(runtime),
          Context.cluster(localConfig),
          Context.role(localConfig),
          Context.environ(localConfig),
          AuroraContext.getHeronAuroraPath(localConfig),
          Context.verbose(localConfig),
          localConfig);
    }
  }