Search in sources :

Example 1 with FederationResourceDefinition

use of org.wildfly.extension.picketlink.federation.model.FederationResourceDefinition in project wildfly by wildfly.

the class FederationExtension method registerTransformers_1_0.

private void registerTransformers_1_0(ExtensionContext context, SubsystemRegistration subsystemRegistration) {
    ResourceTransformationDescriptionBuilder builder = TransformationDescriptionBuilder.Factory.createSubsystemInstance();
    ResourceTransformationDescriptionBuilder federationTransfDescBuilder = builder.addChildResource(new FederationResourceDefinition(context));
    ResourceTransformationDescriptionBuilder keyStoreTransfDescBuilder = federationTransfDescBuilder.addChildResource(KeyStoreProviderResourceDefinition.INSTANCE);
    keyStoreTransfDescBuilder.rejectChildResource(KeyResourceDefinition.INSTANCE.getPathElement());
    TransformationDescription.Tools.register(builder.build(), subsystemRegistration, ModelVersion.create(1, 0));
}
Also used : FederationResourceDefinition(org.wildfly.extension.picketlink.federation.model.FederationResourceDefinition) ResourceTransformationDescriptionBuilder(org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder)

Aggregations

ResourceTransformationDescriptionBuilder (org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder)1 FederationResourceDefinition (org.wildfly.extension.picketlink.federation.model.FederationResourceDefinition)1