public class DefaultComponentFactoryProviderFactory extends Object implements ComponentFactoryProviderFactory
InvalidationHandler.InvalidableObjectType, InvalidationHandler.ObjectType
Modifier and Type | Field and Description |
---|---|
static String |
PROVIDER_ID |
Constructor and Description |
---|
DefaultComponentFactoryProviderFactory() |
Modifier and Type | Method and Description |
---|---|
void |
close()
This is called when the server shuts down.
|
String |
getId() |
<T extends Provider> |
getProviderFactory(Class<T> clazz,
String realmId,
String componentId,
Function<KeycloakSessionFactory,ComponentModel> modelGetter) |
void |
init(Config.Scope config)
Only called once when the factory is first created.
|
protected <T extends Provider> |
initializeFactory(Class<T> clazz,
String realmId,
String componentId,
ProviderFactory newFactory,
ComponentModelScope configScope) |
void |
invalidate(InvalidationHandler.InvalidableObjectType type,
Object... ids)
Invalidates intermediate states of the given objects
|
void |
postInit(KeycloakSessionFactory factory)
Called after all provider factories have been initialized
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
order
public static final String PROVIDER_ID
public DefaultComponentFactoryProviderFactory()
public void init(Config.Scope config)
ProviderFactory
init
in interface ProviderFactory<ComponentFactoryProvider>
public void postInit(KeycloakSessionFactory factory)
ProviderFactory
postInit
in interface ProviderFactory<ComponentFactoryProvider>
public <T extends Provider> ProviderFactory<T> getProviderFactory(Class<T> clazz, String realmId, String componentId, Function<KeycloakSessionFactory,ComponentModel> modelGetter)
getProviderFactory
in interface ComponentFactoryProviderFactory
protected <T extends Provider> ProviderFactory<T> initializeFactory(Class<T> clazz, String realmId, String componentId, ProviderFactory newFactory, ComponentModelScope configScope)
public void invalidate(InvalidationHandler.InvalidableObjectType type, Object... ids)
InvalidationHandler
invalidate
in interface InvalidationHandler
type
- Type of the objects to invalidateids
- Identifiers of the invalidated objectspublic String getId()
getId
in interface ProviderFactory<ComponentFactoryProvider>
public void close()
ProviderFactory
close
in interface ProviderFactory<ComponentFactoryProvider>
Copyright © 2021 JBoss by Red Hat. All rights reserved.