de.is24.util.monitoring.keyhandler
Class RegexKeyEscaper

java.lang.Object
  extended by de.is24.util.monitoring.keyhandler.RegexKeyEscaper
All Implemented Interfaces:
KeyHandler
Direct Known Subclasses:
DefaultKeyEscaper

public class RegexKeyEscaper
extends Object
implements KeyHandler


Field Summary
private  Pattern KEY_ESCAPE_PATTERN
           
 
Constructor Summary
RegexKeyEscaper(String pattern)
           
 
Method Summary
 String handle(String name)
          helper function that escapes a reportable's name so that it is JMX-compatible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_ESCAPE_PATTERN

private final Pattern KEY_ESCAPE_PATTERN
Constructor Detail

RegexKeyEscaper

public RegexKeyEscaper(String pattern)
Method Detail

handle

public String handle(String name)
helper function that escapes a reportable's name so that it is JMX-compatible

Specified by:
handle in interface KeyHandler
Parameters:
name - the original name of the reportable
Returns:
the espaced name Or we should have a defined contract on allowed chars in keys and enfocr it on the entry side. Due to performance and responsibility reasons.


Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.