io.phasetwo.service.resource.TeamResourceProviderFactory Maven / Gradle / Ivy
package io.phasetwo.service.resource;
import com.google.auto.service.AutoService;
import lombok.extern.jbosslog.JBossLog;
import org.keycloak.Config;
import org.keycloak.models.KeycloakSession;
import org.keycloak.models.KeycloakSessionFactory;
import org.keycloak.services.resource.RealmResourceProvider;
import org.keycloak.services.resource.RealmResourceProviderFactory;
@JBossLog
@AutoService(RealmResourceProviderFactory.class)
public class TeamResourceProviderFactory implements RealmResourceProviderFactory {
static final String ID = "teams";
@Override
public RealmResourceProvider create(KeycloakSession session) {
log.info("TeamResourceProviderFactory::create");
return new TeamResourceProvider(session);
}
@Override
public void init(Config.Scope config) {}
@Override
public void postInit(KeycloakSessionFactory factory) {}
@Override
public void close() {}
@Override
public String getId() {
return ID;
}
}