Class ClearRealmCacheRealmAdminProvider
- java.lang.Object
-
- org.keycloak.services.resources.admin.ClearRealmCacheRealmAdminProvider
-
- All Implemented Interfaces:
Provider
,ProviderFactory<AdminRealmResourceProvider>
,AdminRealmResourceProvider
,AdminRealmResourceProviderFactory
public class ClearRealmCacheRealmAdminProvider extends Object implements AdminRealmResourceProviderFactory, AdminRealmResourceProvider
-
-
Constructor Summary
Constructors Constructor Description ClearRealmCacheRealmAdminProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
This is called when the server shuts down.AdminRealmResourceProvider
create(KeycloakSession session)
String
getId()
Object
getResource(KeycloakSession session, RealmModel realm, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
Returns a JAX-RS resource instance.void
init(Config.Scope config)
Only called once when the factory is first created.void
postInit(KeycloakSessionFactory factory)
Called after all provider factories have been initialized-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
-
-
-
Method Detail
-
create
public AdminRealmResourceProvider create(KeycloakSession session)
- Specified by:
create
in interfaceProviderFactory<AdminRealmResourceProvider>
-
init
public void init(Config.Scope config)
Description copied from interface:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory<AdminRealmResourceProvider>
-
postInit
public void postInit(KeycloakSessionFactory factory)
Description copied from interface:ProviderFactory
Called after all provider factories have been initialized- Specified by:
postInit
in interfaceProviderFactory<AdminRealmResourceProvider>
-
close
public void close()
Description copied from interface:ProviderFactory
This is called when the server shuts down.- Specified by:
close
in interfaceProvider
- Specified by:
close
in interfaceProviderFactory<AdminRealmResourceProvider>
-
getId
public String getId()
- Specified by:
getId
in interfaceProviderFactory<AdminRealmResourceProvider>
-
getResource
public Object getResource(KeycloakSession session, RealmModel realm, AdminPermissionEvaluator auth, AdminEventBuilder adminEvent)
Description copied from interface:AdminRealmResourceProvider
Returns a JAX-RS resource instance.
- Specified by:
getResource
in interfaceAdminRealmResourceProvider
- Returns:
- a JAX-RS sub-resource instance
-
-