@Activate protected void activate(final Map<String, Object> config) { supportMultiLevel = PropertiesUtil.toBoolean(config.get(PROP_SUPPORT_MULTI_LEVEL), DEFAULT_SUPPORT_MULTI_LEVEL); // Property Names namespaceablePropertyNames = PropertiesUtil.toStringArray(config.get(PROP_NAMESPACEABLE_PROPERTY_NAMES), DEFAULT_NAMESPACEABLE_PROPERTY_NAMES); // Property Value Patterns namespaceablePropertyValuePatterns = new ArrayList<Pattern>(); String[] regexes = PropertiesUtil.toStringArray(config.get(PROP_NAMESPACEABLE_PROPERTY_VALUE_PATTERNS), DEFAULT_NAMESPACEABLE_PROPERTY_VALUE_PATTERNS); for (final String regex : regexes) { namespaceablePropertyValuePatterns.add(Pattern.compile(regex)); } final InfoWriter iw = new InfoWriter(); iw.title("ACS AEM Commons - CQInclude Property Namespace Servlet"); iw.message("Namespace-able Property Names: {}", Arrays.asList(namespaceablePropertyNames)); iw.message("Namespace-able Property Value Patterns: {}", namespaceablePropertyValuePatterns); iw.end(); log.info(iw.toString()); }
@Activate protected void activate(final Map<String, Object> config) { supportMultiLevel = PropertiesUtil.toBoolean(config.get(PROP_SUPPORT_MULTI_LEVEL), DEFAULT_SUPPORT_MULTI_LEVEL); // Property Names namespaceablePropertyNames = PropertiesUtil.toStringArray(config.get(PROP_NAMESPACEABLE_PROPERTY_NAMES), DEFAULT_NAMESPACEABLE_PROPERTY_NAMES); // Property Value Patterns namespaceablePropertyValuePatterns = new ArrayList<Pattern>(); String[] regexes = PropertiesUtil.toStringArray(config.get(PROP_NAMESPACEABLE_PROPERTY_VALUE_PATTERNS), DEFAULT_NAMESPACEABLE_PROPERTY_VALUE_PATTERNS); for (final String regex : regexes) { namespaceablePropertyValuePatterns.add(Pattern.compile(regex)); } final InfoWriter iw = new InfoWriter(); iw.title("ACS AEM Commons - CQInclude Property Namespace Servlet"); iw.message("Namespace-able Property Names: {}", Arrays.asList(namespaceablePropertyNames)); iw.message("Namespace-able Property Value Patterns: {}", namespaceablePropertyValuePatterns); iw.end(); log.info(iw.toString()); }
iw.end(); log.info(iw.toString());
iw.end(); log.info(iw.toString());
public String toString() { InfoWriter iw = new InfoWriter(); iw.title("Checksum Generator Options"); iw.message("Node Type Includes: {}", this.getIncludedNodeTypes()); iw.message("Node Type Excludes: {}", this.getExcludedNodeTypes()); iw.message("Property Excludes: {}", this.getExcludedProperties()); iw.message("Sorted Properties: {}", this.getSortedProperties()); return iw.toString(); } }
log.debug(iw.toString());
log.debug(iw.toString());
public String toString() { InfoWriter iw = new InfoWriter(); iw.title("Checksum Generator Options"); iw.message("Node Type Includes: {}", this.getIncludedNodeTypes()); iw.message("Node Type Excludes: {}", this.getExcludedNodeTypes()); iw.message("Property Excludes: {}", this.getExcludedProperties()); iw.message("Node Name Excludes: {}", this.getExcludedNodeNames()); iw.message("Sub Tree Excludes: {}", this.getExcludedSubTrees()); iw.message("Sorted Properties: {}", this.getSortedProperties()); return iw.toString(); } }