Skip to content

Commit

Permalink
[BZ1189053] Deprecate PicketLink Federation subsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
pskopek committed Feb 15, 2015
1 parent ac13c0e commit 5f64199
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.jboss.as.controller.SubsystemRegistration;
import org.jboss.as.controller.descriptions.ModelDescriptionConstants;
import org.jboss.as.controller.descriptions.ResourceDescriptionResolver;
import org.jboss.as.controller.descriptions.StandardResourceDescriptionResolver;
import org.jboss.as.controller.descriptions.DeprecatedResourceDescriptionResolver;
import org.jboss.as.controller.parsing.ExtensionParsingContext;
import org.jboss.as.controller.transform.description.ResourceTransformationDescriptionBuilder;
import org.jboss.as.controller.transform.description.TransformationDescription;
Expand All @@ -53,8 +53,11 @@ public class FederationExtension implements Extension {

private static final ModelVersion CURRENT_MODEL_VERSION = ModelVersion.create(CURRENT.getMajor(), CURRENT.getMinor());

//deprecated in EAP 6.4
public static final ModelVersion DEPRECATED_SINCE = ModelVersion.create(2,0,0);

public static ResourceDescriptionResolver getResourceDescriptionResolver(final String keyPrefix) {
return new StandardResourceDescriptionResolver(keyPrefix, RESOURCE_NAME, FederationExtension.class.getClassLoader(), true, true);
return new DeprecatedResourceDescriptionResolver(SUBSYSTEM_NAME, keyPrefix, RESOURCE_NAME, FederationExtension.class.getClassLoader(), true, true);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class FederationResourceDefinition extends AbstractFederationResourceDefi
public FederationResourceDefinition(ExtensionContext extensionContext) {
super(ModelElement.FEDERATION, FederationAddHandler.INSTANCE, FederationRemoveHandler.INSTANCE);
this.extensionContext = extensionContext;
setDeprecated(FederationExtension.DEPRECATED_SINCE);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
picketlink-federation=The configuration of the PicketLink Subsystem.
picketlink-federation.add=Adds the PicketLink Subsystem configuration.
picketlink-federation.remove=Removes the PicketLink Subsystem configuration.
picketlink-federation.deprecated=The PicketLink Federation Subsystem is deprecated and may be removed, significantly revised, or limited to managed domain legacy server use in future versions.

federation=The configuration of a federation.
federation.add=Adds a federation configuration.
Expand Down

0 comments on commit 5f64199

Please sign in to comment.