當前位置: 首頁>>代碼示例>>Java>>正文


Java AopUtils.isToStringMethod方法代碼示例

本文整理匯總了Java中org.springframework.aop.support.AopUtils.isToStringMethod方法的典型用法代碼示例。如果您正苦於以下問題:Java AopUtils.isToStringMethod方法的具體用法?Java AopUtils.isToStringMethod怎麽用?Java AopUtils.isToStringMethod使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.springframework.aop.support.AopUtils的用法示例。


在下文中一共展示了AopUtils.isToStringMethod方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: invoke

import org.springframework.aop.support.AopUtils; //導入方法依賴的package包/類
@Override
public Object invoke(MethodInvocation invocation) throws Throwable {
	if (AopUtils.isToStringMethod(invocation.getMethod())) {
		return "JAX-WS proxy for port [" + getPortName() + "] of service [" + getServiceName() + "]";
	}
	// Lazily prepare service and stub if necessary.
	synchronized (this.preparationMonitor) {
		if (!isPrepared()) {
			prepare();
		}
	}
	return doInvoke(invocation);
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:14,代碼來源:JaxWsPortClientInterceptor.java

示例2: doInvoke

import org.springframework.aop.support.AopUtils; //導入方法依賴的package包/類
/**
 * Apply the given AOP method invocation to the given {@link RmiInvocationHandler}.
 * <p>The default implementation delegates to {@link #createRemoteInvocation}.
 * @param methodInvocation the current AOP method invocation
 * @param invocationHandler the RmiInvocationHandler to apply the invocation to
 * @return the invocation result
 * @throws RemoteException in case of communication errors
 * @throws NoSuchMethodException if the method name could not be resolved
 * @throws IllegalAccessException if the method could not be accessed
 * @throws InvocationTargetException if the method invocation resulted in an exception
 * @see org.springframework.remoting.support.RemoteInvocation
 */
protected Object doInvoke(MethodInvocation methodInvocation, RmiInvocationHandler invocationHandler)
	throws RemoteException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {

	if (AopUtils.isToStringMethod(methodInvocation.getMethod())) {
		return "RMI invoker proxy for service URL [" + getServiceUrl() + "]";
	}

	return invocationHandler.invoke(createRemoteInvocation(methodInvocation));
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:22,代碼來源:RmiClientInterceptor.java

示例3: doInvoke

import org.springframework.aop.support.AopUtils; //導入方法依賴的package包/類
/**
 * Apply the given AOP method invocation to the given {@link RmiInvocationHandler}.
 * <p>The default implementation delegates to {@link #createRemoteInvocation}.
 * @param methodInvocation the current AOP method invocation
 * @param invocationHandler the RmiInvocationHandler to apply the invocation to
 * @return the invocation result
 * @throws RemoteException in case of communication errors
 * @throws NoSuchMethodException if the method name could not be resolved
 * @throws IllegalAccessException if the method could not be accessed
 * @throws InvocationTargetException if the method invocation resulted in an exception
 * @see org.springframework.remoting.support.RemoteInvocation
 */
protected Object doInvoke(MethodInvocation methodInvocation, RmiInvocationHandler invocationHandler)
		throws RemoteException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {

	if (AopUtils.isToStringMethod(methodInvocation.getMethod())) {
		return "RMI invoker proxy for service URL [" + getJndiName() + "]";
	}

	return invocationHandler.invoke(createRemoteInvocation(methodInvocation));
}
 
開發者ID:lamsfoundation,項目名稱:lams,代碼行數:22,代碼來源:JndiRmiClientInterceptor.java


注:本文中的org.springframework.aop.support.AopUtils.isToStringMethod方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。