/** * Set the regular expressions defining methods to match. * Matching will be the union of all these; if any match, the pointcut matches. * @see #setPattern */ public void setPatterns(String... patterns) { Assert.notEmpty(patterns, "'patterns' must not be empty"); this.patterns = new String[patterns.length]; for (int i = 0; i < patterns.length; i++) { this.patterns[i] = StringUtils.trimWhitespace(patterns[i]); } initPatternRepresentation(this.patterns); }
/** * Set the regular expressions defining methods to match. * Matching will be the union of all these; if any match, * the pointcut matches. * @param patterns regular expressions describing methods to match */ public void setPatterns(String[] patterns) { this.patterns = patterns; initPatternRepresentation(patterns); }
/** * Set the regular expressions defining methods to match. * Matching will be the union of all these; if any match, the pointcut matches. * @see #setPattern */ public void setPatterns(String... patterns) { Assert.notEmpty(patterns, "'patterns' must not be empty"); this.patterns = new String[patterns.length]; for (int i = 0; i < patterns.length; i++) { this.patterns[i] = StringUtils.trimWhitespace(patterns[i]); } initPatternRepresentation(this.patterns); }
/** * Set the regular expressions defining methods to match. * Matching will be the union of all these; if any match, the pointcut matches. * @see #setPattern */ public void setPatterns(String... patterns) { Assert.notEmpty(patterns, "'patterns' must not be empty"); this.patterns = new String[patterns.length]; for (int i = 0; i < patterns.length; i++) { this.patterns[i] = StringUtils.trimWhitespace(patterns[i]); } initPatternRepresentation(this.patterns); }
private void readObject(ObjectInputStream ois) throws IOException { // Rely on default serialization, just initialize state after deserialization. try { ois.defaultReadObject(); } catch (ClassNotFoundException ex) { throw new AspectException("Failed to deserialize AOP regular expression pointcut: " + "Check that Spring AOP libraries are available on the client side", ex); } // initialize transient fields this.logger = LogFactory.getLog(getClass()); // ask subclass to reinitialize try { initPatternRepresentation(this.patterns); } catch (Throwable ex) { throw new AspectException("Failed to deserialize AOP regular expression pointcut: " + "Check that the necessary regular expression libraries are available on the client side", ex); } }