edu.internet2.middleware.grouper.grouperUi.beans.ui.TemplateContainerConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grouper-ui Show documentation
Show all versions of grouper-ui Show documentation
Internet2 Groups Management User Interface
/**
*
*/
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;
}
}