public void addProperties(final String[] annotationProperties, final PropertyReplacer propertyReplacer) {
        if (annotationProperties != null) {
            for (String annotationProperty : annotationProperties) {
                if (propertyReplacer != null) {
                    annotationProperty = propertyReplacer.replaceProperties(annotationProperty);
                }
                final int index = annotationProperty.indexOf('=');
                String propertyName;
                String propertyValue;
                if (index != -1) {
                    propertyName = annotationProperty.substring(0, index);
                    propertyValue = annotationProperty.length() > index ? annotationProperty.substring(index + 1, annotationProperty.length()) : "";
                } else {
                    propertyName = annotationProperty;
                    propertyValue = "";
                }
                this.properties.put(propertyName, propertyValue);
            }
        }
    }
public void addProperties(final String[] annotationProperties, final PropertyReplacer propertyReplacer) {
        if (annotationProperties != null) {
            for (String annotationProperty : annotationProperties) {
                if (propertyReplacer != null) {
                    annotationProperty = propertyReplacer.replaceProperties(annotationProperty);
                }
                final int index = annotationProperty.indexOf('=');
                String propertyName;
                String propertyValue;
                if (index != -1) {
                    propertyName = annotationProperty.substring(0, index);
                    propertyValue = annotationProperty.length() > index ? annotationProperty.substring(index + 1, annotationProperty.length()) : "";
                } else {
                    propertyName = annotationProperty;
                    propertyValue = "";
                }
                this.properties.put(propertyName, propertyValue);
            }
        }
    }
public void addProperties ( final String [ ] annotationProperties , final PropertyReplacer propertyReplacer ) { if ( annotationProperties != null ) { for ( String annotationProperty : annotationProperties ) { if ( propertyReplacer != null ) { annotationProperty = propertyReplacer . replaceProperties ( annotationProperty ) ; } final int index = annotationProperty . indexOf ( ' ' ) ; String propertyName ; String propertyValue ; if ( index != - 1 ) { propertyName = annotationProperty . substring ( 0 , index ) ; propertyValue = annotationProperty . length ( ) > index ? annotationProperty . substring ( index + 1 , annotationProperty . length ( ) ) : "" ; } else { propertyName = annotationProperty ; propertyValue = "" ; } this . properties . put ( propertyName , propertyValue ) ; } } }
Add the specified properties.
@param annotationProperties an array of propertyName = propertyValue strings
@param propertyReplacer if not null all property names and values will be processed by the replacer.
Add the specified properties .