Search in sources :

Example 1 with AbstractVaultReader

use of org.jboss.as.server.services.security.AbstractVaultReader in project wildfly by wildfly.

the class VaultPropertyResolverProcessor method deploy.

public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
    final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
    final AbstractVaultReader vaultReader = deploymentUnit.getAttachment(org.jboss.as.server.deployment.Attachments.VAULT_READER_ATTACHMENT_KEY);
    if (vaultReader != null) {
        deploymentUnit.addToAttachmentList(Attachments.DEPLOYMENT_PROPERTY_RESOLVERS, new VaultPropertyResolver(vaultReader));
    }
}
Also used : AbstractVaultReader(org.jboss.as.server.services.security.AbstractVaultReader) DeploymentUnit(org.jboss.as.server.deployment.DeploymentUnit)

Aggregations

DeploymentUnit (org.jboss.as.server.deployment.DeploymentUnit)1 AbstractVaultReader (org.jboss.as.server.services.security.AbstractVaultReader)1