public static void registerDeploymentResource ( final DeploymentResourceSupport deploymentResourceSupport , final LoggingConfigurationService service ) { final PathElement base = PathElement . pathElement ( "configuration" , service . getConfiguration ( ) ) ; deploymentResourceSupport . getDeploymentSubModel ( LoggingExtension . SUBSYSTEM_NAME , base ) ; final LogContextConfiguration configuration = service . getValue ( ) ; // Register the child resources if the configuration is not null in cases where a log4j configuration was used if ( configuration != null ) { registerDeploymentResource ( deploymentResourceSupport , base , HANDLER , configuration . getHandlerNames ( ) ) ; registerDeploymentResource ( deploymentResourceSupport , base , LOGGER , configuration . getLoggerNames ( ) ) ; registerDeploymentResource ( deploymentResourceSupport , base , FORMATTER , configuration . getFormatterNames ( ) ) ; registerDeploymentResource ( deploymentResourceSupport , base , FILTER , configuration . getFilterNames ( ) ) ; registerDeploymentResource ( deploymentResourceSupport , base , POJO , configuration . getPojoNames ( ) ) ; registerDeploymentResource ( deploymentResourceSupport , base , ERROR_MANAGER , configuration . getErrorManagerNames ( ) ) ; } }
Registers the deployment resources needed .