use of org.apereo.portal.groups.ICompositeGroupServiceFactory in project uPortal by Jasig.
the class GroupService method initializeCompositeService.
/** @exception GroupsException */
private void initializeCompositeService() throws GroupsException {
String eMsg = null;
try {
GroupServiceConfiguration cfg = getServiceConfiguration();
String factoryName = (String) cfg.getAttributes().get("compositeFactory");
if (factoryName == null) {
eMsg = "GroupService.initialize(): No entry for CompositeServiceFactory in configuration";
LOGGER.error(eMsg);
throw new GroupsException(eMsg);
}
ICompositeGroupServiceFactory serviceFactory = (ICompositeGroupServiceFactory) Class.forName(factoryName).newInstance();
compositeGroupService = serviceFactory.newGroupService();
} catch (Exception e) {
eMsg = "GroupService.initialize(): Problem creating groups service... " + e.getMessage();
LOGGER.error(eMsg, e);
throw new GroupsException(eMsg, e);
}
}
Aggregations