public class EntityManagerContextInitializer extends Object implements ContextInitializer
A ContextInitializer
that sets an EntityManager
into the IdentityContext
. This is specially useful when using an identity store that needs
access to the entity manager.
Constructor and Description |
---|
EntityManagerContextInitializer() |
Modifier and Type | Method and Description |
---|---|
void |
initContextForStore(IdentityContext context,
IdentityStore<?> store)
This method is invoked once and right after the
IdentityContext is created. |
public void initContextForStore(IdentityContext context, IdentityStore<?> store)
ContextInitializer
This method is invoked once and right after the IdentityContext
is created.
initContextForStore
in interface ContextInitializer
Copyright © 2018 JBoss by Red Hat. All rights reserved.