public class GroupManagerFactory extends AbstractNamedCacheComponentFactory implements AutoInstantiableFactory {
@Override
public <T> T construct(Class<T> componentType) {
GroupsConfiguration groupsConfiguration = configuration.clustering().hash().groups();
if (!groupsConfiguration.enabled())
return null;
return componentType.cast(new GroupManagerImpl(groupsConfiguration.groupers()));
}
}