hail to the chiefpoi ntof the...

114网址导航Spring Framework example -
RegexpMethodPointcutAdvisor.java - regexpmethodpointcutadvisor, regexpmethodpointcutadvisor, serializablemonitor, serializablemonitor, string, string
home&|&career&|&drupal&|&java&|&mac&|&mysql&|&perl&|&scala&|&uml&|&unix
Spring Framework example source code file (RegexpMethodPointcutAdvisor.java)
This example
source code file (RegexpMethodPointcutAdvisor.java) is included in the
&& project. The intent of this project is to help you &Learn Java by Example& TM.
The Spring Framework RegexpMethodPointcutAdvisor.java source code
* Copyright
the original author or authors.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
package org.springframework.aop.
import java.io.S
import org.aopalliance.aop.A
import org.springframework.aop.P
import org.springframework.util.ObjectU
* Convenient class for regexp method pointcuts that hold an Advice,
* making them an {@link org.springframework.aop.Advisor}.
* &p&Configure this class using the "pattern" and "patterns"
* pass-through properties. These are analogous to the pattern
* and patterns properties of {@link AbstractRegexpMethodPointcut}.
* &p&Can delegate to any {@link AbstractRegexpMethodPointcut} subclass.
* By default, {@link JdkRegexpMethodPointcut} will be used. To choose
* a specific one, override the {@link #createPointcut} method.
* @author Rod Johnson
* @author Juergen Hoeller
* @see #setPattern
* @see #setPatterns
* @see JdkRegexpMethodPointcut
public class RegexpMethodPointcutAdvisor extends AbstractGenericPointcutAdvisor {
private String[]
private AbstractRegexpMethodP
private final Object pointcutMonitor = new SerializableMonitor();
* Create an empty RegexpMethodPointcutAdvisor.
* @see #setPattern
* @see #setPatterns
* @see #setAdvice
public RegexpMethodPointcutAdvisor() {
* Create a RegexpMethodPointcutAdvisor for the given advice.
* The pattern still needs to be specified afterwards.
* @param advice the advice to use
* @see #setPattern
* @see #setPatterns
public RegexpMethodPointcutAdvisor(Advice advice) {
setAdvice(advice);
* Create a RegexpMethodPointcutAdvisor for the given advice.
* @param pattern the pattern to use
* @param advice the advice to use
public RegexpMethodPointcutAdvisor(String pattern, Advice advice) {
setPattern(pattern);
setAdvice(advice);
* Create a RegexpMethodPointcutAdvisor for the given advice.
* @param patterns the patterns to use
* @param advice the advice to use
public RegexpMethodPointcutAdvisor(String[] patterns, Advice advice) {
setPatterns(patterns);
setAdvice(advice);
* Set the regular expression defining methods to match.
* &p&Use either this method or {@link #setPatterns}, not both.
* @see #setPatterns
public void setPattern(String pattern) {
setPatterns(new String[] {pattern});
* Set the regular expressions defining methods to match.
* To be passed through to the pointcut implementation.
* &p&Matching will be th if any of the
* patterns matches, the pointcut matches.
* @see AbstractRegexpMethodPointcut#setPatterns
public void setPatterns(String[] patterns) {
this.patterns =
* Initialize the singleton Pointcut held within this Advisor.
public Pointcut getPointcut() {
synchronized (this.pointcutMonitor) {
if (this.pointcut == null) {
this.pointcut = createPointcut();
this.pointcut.setPatterns(this.patterns);
* Create the actual pointcut: By default, a {@link JdkRegexpMethodPointcut}
* will be used.
* @return the Pointcut instance (never &code&null)
protected AbstractRegexpMethodPointcut createPointcut() {
return new JdkRegexpMethodPointcut();
public String toString() {
return getClass().getName() + ": advice [" + getAdvice() +
"], pointcut patterns " + ObjectUtils.nullSafeToString(this.patterns);
* Empty class used for a serializable monitor object.
private static class SerializableMonitor implements Serializable {
Other Spring Framework examples (source code examples)
Here is a short list of links related to this Spring Framework RegexpMethodPointcutAdvisor.java source code file:
new blog posts
Alvin Alexander,
All Rights Reserved.
A percentage of advertising revenue from
pages under the
URI on this website is
paid back to open source projects.君,已阅读到文档的结尾了呢~~
斜接地极对改善地网接地性能的研究
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
斜接地极对改善地网接地性能的研究
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer--144.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口114网址导航我国羊肉加工业的现状及发展趋势_图文_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
我国羊肉加工业的现状及发展趋势
上传于||文档简介
&&食​品​加​工
阅读已结束,如果下载本文需要使用0下载券
想免费下载更多文档?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩2页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢

我要回帖

更多关于 hail to the chief 的文章

 

随机推荐