Skip to content

Commit

Permalink
WFCORE-6650 Expose server stability and allow feature filtering from …
Browse files Browse the repository at this point in the history
…a DeploymentUnit.
  • Loading branch information
pferraro committed Dec 20, 2023
1 parent 5419aad commit 48d1bf3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@

package org.jboss.as.server.deployment;

import org.jboss.as.controller.FeatureRegistry;
import org.jboss.msc.service.ServiceName;
import org.jboss.msc.service.ServiceRegistry;

/**
* The deployment unit. This object retains data which is persistent for the life of the
* deployment.
*/
public interface DeploymentUnit extends Attachable {
public interface DeploymentUnit extends Attachable, FeatureRegistry {

/**
* Get the service name of the root deployment unit service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

package org.jboss.as.server.deployment;

import org.jboss.as.version.Stability;
import org.jboss.msc.service.ServiceName;
import org.jboss.msc.service.ServiceRegistry;

Expand Down Expand Up @@ -62,4 +63,9 @@ public String toString() {
return String.format("deployment \"%s\"", name);
}
}

@Override
public Stability getStability() {
return this.getAttachment(DeploymentResourceSupport.REGISTRATION_ATTACHMENT).getStability();
}
}

0 comments on commit 48d1bf3

Please sign in to comment.