org.picketlink.producer
@ApplicationScoped public class IdentityManagerProducer extends Object
This bean is responsible for initializing the PicketLink IDM subsystem as well produce some core components such as:
PartitionManager
.IdentityManager
.RelationshipManager
.The configuration is built depending on the existence of any IdentityConfiguration
produced by the
application. If any configuration is found, it will be used. Otherwise the default configuration will be used.
It's also possible to observe a specific event during the startup of the PicketLink IDM subsystem. In such
situations the application can provide any additional information as a last attempt before the subsystem is fully
initialized. See IdentityConfigurationEvent
.
The default configuration is provided by the IdentityStoreAutoConfiguration
bean, only if no specific
configuration is provided by the application.
After the creation of the PartitionManager
an PartitionManagerCreateEvent
is fired to perform
any initialization before starting producing partition manager instances. Usually, the initialization will perform
validations against the stored state, create default partitions, etc. If no partition was created during the
initialization a default partition is always created if any of the provided configuration supports that.
Constructor and Description |
---|
IdentityManagerProducer() |
Modifier and Type | Method and Description |
---|---|
IdentityManager |
createIdentityManager()
IdentityManager instances are produced accordingly to the current Partition in use. |
PartitionManager |
createPartitionManager() |
PermissionManager |
createPermissionManager() |
RelationshipManager |
createRelationshipManager() |
void |
init() |
@Inject public void init()
@Produces public PartitionManager createPartitionManager()
@Produces @RequestScoped public IdentityManager createIdentityManager()
IdentityManager
instances are produced accordingly to the current Partition
in use. If no
partition is provided, the default partition will be used.
@Produces @RequestScoped public RelationshipManager createRelationshipManager()
@Produces @RequestScoped public PermissionManager createPermissionManager()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.