public class LoggingConfigDeploymentProcessor extends Object implements DeploymentUnitProcessor
| Modifier and Type | Field and Description |
|---|---|
static AttachmentKey<org.jboss.logmanager.LogContext> |
LOG_CONTEXT_KEY |
protected WildFlyLogContextSelector |
logContextSelector |
static String |
PER_DEPLOYMENT_LOGGING
Deprecated.
use the
use-deployment-logging-config on the root resource |
| Constructor and Description |
|---|
LoggingConfigDeploymentProcessor(WildFlyLogContextSelector logContextSelector,
String attributeName,
boolean process) |
| Modifier and Type | Method and Description |
|---|---|
void |
deploy(DeploymentPhaseContext phaseContext) |
protected static List<DeploymentUnit> |
getSubDeployments(DeploymentUnit deploymentUnit) |
static boolean |
hasRegisteredLogContext(DeploymentUnit deploymentUnit)
Checks the deployment to see if it has a registered
log context. |
protected void |
processDeployment(DeploymentPhaseContext phaseContext,
DeploymentUnit deploymentUnit,
ResourceRoot root)
Processes the deployment.
|
protected void |
registerLogContext(DeploymentUnit deploymentUnit,
org.jboss.modules.Module module,
org.jboss.logmanager.LogContext logContext) |
protected static void |
safeClose(Closeable closable) |
void |
undeploy(DeploymentUnit context) |
protected void |
unregisterLogContext(DeploymentUnit deploymentUnit,
org.jboss.modules.Module module) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeploy, undeploy@Deprecated public static final String PER_DEPLOYMENT_LOGGING
use-deployment-logging-config on the root resourcepublic static final AttachmentKey<org.jboss.logmanager.LogContext> LOG_CONTEXT_KEY
protected final WildFlyLogContextSelector logContextSelector
public LoggingConfigDeploymentProcessor(WildFlyLogContextSelector logContextSelector, String attributeName, boolean process)
protected void processDeployment(DeploymentPhaseContext phaseContext, DeploymentUnit deploymentUnit, ResourceRoot root) throws DeploymentUnitProcessingException
phaseContext - the phase contextdeploymentUnit - the deployment unitroot - the root resourceDeploymentUnitProcessingException - if an error occurs during processingpublic final void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException
deploy in interface DeploymentUnitProcessorDeploymentUnitProcessingExceptionpublic final void undeploy(DeploymentUnit context)
undeploy in interface DeploymentUnitProcessorprotected void registerLogContext(DeploymentUnit deploymentUnit, org.jboss.modules.Module module, org.jboss.logmanager.LogContext logContext)
protected void unregisterLogContext(DeploymentUnit deploymentUnit, org.jboss.modules.Module module)
protected static List<DeploymentUnit> getSubDeployments(DeploymentUnit deploymentUnit)
protected static void safeClose(Closeable closable)
public static boolean hasRegisteredLogContext(DeploymentUnit deploymentUnit)
log context.deploymentUnit - the deployment unit to checktrue if the deployment unit has a log context, otherwise falseCopyright © 2016 JBoss by Red Hat. All rights reserved.