@Override public List<String> getPojoNames() { synchronized (LOCK) { return delegate.getPojoNames(); } }
@Override public List<String> getPojoNames() { synchronized (LOCK) { return delegate.getPojoNames(); } }
@Override public List<String> getPojoNames() { synchronized (LOCK) { return delegate.getPojoNames(); } }
@Override public void performRuntime(final OperationContext context, final ModelNode operation, final LogContextConfiguration logContextConfiguration, final String name, final ModelNode model) throws OperationFailedException { // Validating wouldn't work until the LogContextConfiguration.commit() happens as handlers could still be // named as attached removed the check for this reason. // Remove the handler logContextConfiguration.removeHandlerConfiguration(name); // Remove the formatter if there is one if (logContextConfiguration.getFormatterNames().contains(name)) { logContextConfiguration.removeFormatterConfiguration(name); } // Remove the POJO if it exists if (logContextConfiguration.getPojoNames().contains(name)) { logContextConfiguration.removePojoConfiguration(name); } } };
if (logContextConfiguration.getPojoNames().contains(name)) { logContextConfiguration.removePojoConfiguration(name);
if (logContextConfiguration.getPojoNames().contains(name)) { logContextConfiguration.removePojoConfiguration(name);
final List<String> pojoNames = config.getPojoNames(); if (!pojoNames.isEmpty()) { writePropertyComment(out, "POJOs to configure");
if (logContextConfiguration.getPojoNames().contains(name)) { logContextConfiguration.removePojoConfiguration(name);
if (logContextConfiguration.getPojoNames().contains(name)) { logContextConfiguration.removePojoConfiguration(name);
private void configurePojos(final Properties properties, final String pojoName) { final String className = getStringProperty(properties, getKey(POJO, pojoName)); if (className == null) { printError("POJO %s is not defined%n", pojoName); return; } final PojoConfiguration configuration; if (config.getPojoNames().contains(pojoName)) { configuration = config.getPojoConfiguration(pojoName); } else { configuration = config.addPojoConfiguration(getStringProperty(properties, getKey(POJO, pojoName, MODULE)), getStringProperty(properties, getKey(POJO, pojoName)), pojoName, getStringCsvArray(properties, getKey(POJO, pojoName, CONSTRUCTOR_PROPERTIES))); } final String[] postConfigurationMethods = getStringCsvArray(properties, getKey(POJO, pojoName, POST_CONFIGURATION)); configuration.setPostConfigurationMethods(postConfigurationMethods); configureProperties(properties, configuration, getKey(POJO, pojoName)); }
for (String name : logContextConfiguration.getPojoNames()) { logContextConfiguration.removePojoConfiguration(name);
/** * Registers the deployment resources needed. * * @param deploymentResourceSupport the deployment resource support * @param service the service, which may be {@code null}, used to find the resource names that need to be registered */ 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()); } }
for (String name : logContextConfiguration.getPojoNames()) { logContextConfiguration.removePojoConfiguration(name);
/** * Registers the deployment resources needed. * * @param deploymentResourceSupport the deployment resource support * @param service the service, which may be {@code null}, used to find the resource names that need to be registered */ 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()); } }
for (String s2 : logContextConfiguration.getPojoNames()) { logContextConfiguration.removePojoConfiguration(s2);
for (String s2 : logContextConfiguration.getPojoNames()) { logContextConfiguration.removePojoConfiguration(s2);