All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.internet2.middleware.grouper.grouperUi.beans.ui.TemplateContainerConfig Maven / Gradle / Ivy

There is a newer version: 5.13.5
Show newest version
/**
 * 
 */
package edu.internet2.middleware.grouper.grouperUi.beans.ui;

import edu.internet2.middleware.grouper.util.GrouperUtil;
import edu.internet2.middleware.grouperClient.util.GrouperClientUtils;

/**
 * @author vsachdeva
 *
 */
public class TemplateContainerConfig {
  
  private String configKey; // capturing group from the regex
  
  private String logicClassName; // fully qualified class name.
  
  private GrouperTemplateLogicBase logicInstance;
  
  public GrouperTemplateLogicBase getLogicInstance() {
    
    if (logicInstance == null) {
      
      Class templateLogicSubClass = GrouperClientUtils.forName(logicClassName);
      
      GrouperTemplateLogicBase templateLogic = GrouperUtil.newInstance(templateLogicSubClass);
      
      logicInstance = templateLogic;
      
    } 
    
    return logicInstance;
    
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy