/** * Convenience method when we have only a single pattern. * Use either this method or {@link #setPatterns}, not both. * @see #setPatterns */ public void setPattern(String pattern) { setPatterns(pattern); }
/** * Initialize the singleton Pointcut held within this Advisor. */ @Override public Pointcut getPointcut() { synchronized (this.pointcutMonitor) { if (this.pointcut == null) { this.pointcut = createPointcut(); if (this.patterns != null) { this.pointcut.setPatterns(this.patterns); } } return this.pointcut; } }
/** * Convenience method when we have only a single pattern. * Use either this method or {@link #setPatterns}, not both. * @see #setPatterns */ public void setPattern(String pattern) { setPatterns(pattern); }
/** * Convenience method when we have only a single pattern. * Use either this method or setPatterns, not both. * @see #setPatterns */ public void setPattern(String pattern) { setPatterns(new String[] { pattern }); }
/** * Convenience method when we have only a single pattern. * Use either this method or {@link #setPatterns}, not both. * @see #setPatterns */ public void setPattern(String pattern) { setPatterns(pattern); }
/** * Initialize the singleton pointcut held within this advisor. */ public synchronized Pointcut getPointcut() { if (this.pointcut == null) { this.pointcut = createPointcut(); this.pointcut.setPatterns(this.patterns); } return pointcut; }
/** * Initialize the singleton Pointcut held within this Advisor. */ @Override public Pointcut getPointcut() { synchronized (this.pointcutMonitor) { if (this.pointcut == null) { this.pointcut = createPointcut(); this.pointcut.setPatterns(this.patterns); } return pointcut; } }
/** * Initialize the singleton Pointcut held within this Advisor. */ @Override public Pointcut getPointcut() { synchronized (this.pointcutMonitor) { if (this.pointcut == null) { this.pointcut = createPointcut(); if (this.patterns != null) { this.pointcut.setPatterns(this.patterns); } } return this.pointcut; } }