接口的使用
org.aopalliance.intercept.MethodInvocation
使用MethodInvocation的程序包 程序包 说明 org.aopalliance.intercept The AOP Alliance reflective interception abstraction.org.springframework.aop Core Spring AOP interfaces, built on AOP Alliance AOP interoperability interfaces.org.springframework.aop.aspectj AspectJ integration package.org.springframework.aop.framework Package containing Spring's basic AOP infrastructure, compliant with the AOP Alliance interfaces.org.springframework.aop.framework.adapter SPI package allowing Spring AOP framework to handle arbitrary advice types.org.springframework.aop.interceptor Provides miscellaneous interceptor implementations.org.springframework.aop.support Convenience classes for using Spring's AOP API.org.springframework.cache.interceptor AOP-based solution for declarative caching demarcation.org.springframework.cache.jcache.interceptor AOP-based solution for declarative caching demarcation using JSR-107 annotations.org.springframework.context.event Support classes for application events, like standard context events.org.springframework.dao.support Support classes for DAO implementations, providing miscellaneous utility methods.org.springframework.ejb.access This package contains classes that allow easy access to EJBs.org.springframework.jms.remoting Remoting classes for transparent Java-to-Java remoting via a JMS provider.org.springframework.jmx.access Provides support for accessing remote MBean resources.org.springframework.orm.hibernate5.support Classes supporting theorg.springframework.orm.hibernate5package.org.springframework.remoting.caucho This package provides remoting classes for Caucho's Hessian protocol: a proxy factory for accessing Hessian services, and an exporter for making beans available to Hessian clients.org.springframework.remoting.httpinvoker Remoting classes for transparent Java-to-Java remoting via HTTP invokers.org.springframework.remoting.jaxws Remoting classes for Web Services via JAX-WS (the successor of JAX-RPC), as included in Java 6 and Java EE 5.org.springframework.remoting.rmi Remoting classes for conventional RMI and transparent remoting via RMI invokers.org.springframework.remoting.support Generic support classes for remoting implementations.org.springframework.transaction.interceptor AOP-based solution for declarative transaction demarcation.org.springframework.validation.beanvalidation Support classes for integrating a JSR-303 Bean Validation provider (such as Hibernate Validator) into a Spring ApplicationContext and in particular with Spring's data binding and validation APIs.org.aopalliance.intercept中MethodInvocation的使用
参数类型为MethodInvocation的org.aopalliance.intercept中的方法 修饰符和类型 方法 说明 ObjectMethodInterceptor. invoke(MethodInvocation invocation)Implement this method to perform extra treatments before and after the invocation.org.springframework.aop中MethodInvocation的使用
org.springframework.aop中MethodInvocation的子接口 修饰符和类型 接口 说明 interfaceProxyMethodInvocationExtension of the AOP AllianceMethodInvocationinterface, allowing access to the proxy that the method invocation was made through.返回MethodInvocation的org.springframework.aop中的方法 修饰符和类型 方法 说明 MethodInvocationProxyMethodInvocation. invocableClone()Create a clone of this object.MethodInvocationProxyMethodInvocation. invocableClone(Object... arguments)Create a clone of this object.org.springframework.aop.aspectj中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.aop.aspectj中的方法 修饰符和类型 方法 说明 ObjectAspectJAfterAdvice. invoke(MethodInvocation mi)ObjectAspectJAfterThrowingAdvice. invoke(MethodInvocation mi)ObjectAspectJAroundAdvice. invoke(MethodInvocation mi)org.springframework.aop.framework中MethodInvocation的使用
实现MethodInvocation的org.springframework.aop.framework中的类 修饰符和类型 类 说明 classReflectiveMethodInvocationSpring's implementation of the AOP AllianceMethodInvocationinterface, implementing the extendedProxyMethodInvocationinterface.返回MethodInvocation的org.springframework.aop.framework中的方法 修饰符和类型 方法 说明 MethodInvocationReflectiveMethodInvocation. invocableClone()This implementation returns a shallow copy of this invocation object, including an independent copy of the original arguments array.MethodInvocationReflectiveMethodInvocation. invocableClone(Object... arguments)This implementation returns a shallow copy of this invocation object, using the given arguments array for the clone.org.springframework.aop.framework.adapter中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.aop.framework.adapter中的方法 修饰符和类型 方法 说明 ObjectAfterReturningAdviceInterceptor. invoke(MethodInvocation mi)ObjectMethodBeforeAdviceInterceptor. invoke(MethodInvocation mi)ObjectThrowsAdviceInterceptor. invoke(MethodInvocation mi)org.springframework.aop.interceptor中MethodInvocation的使用
返回MethodInvocation的org.springframework.aop.interceptor中的方法 修饰符和类型 方法 说明 static MethodInvocationExposeInvocationInterceptor. currentInvocation()Return the AOP Alliance MethodInvocation object associated with the current invocation.参数类型为MethodInvocation的org.springframework.aop.interceptor中的方法 修饰符和类型 方法 说明 protected StringAbstractMonitoringInterceptor. createInvocationTraceName(MethodInvocation invocation)Create aStringname for the givenMethodInvocationthat can be used for trace/logging purposes.static StringExposeBeanNameAdvisors. getBeanName(MethodInvocation mi)Find the bean name for the given invocation.protected StringDebugInterceptor. getInvocationDescription(MethodInvocation invocation)protected StringSimpleTraceInterceptor. getInvocationDescription(MethodInvocation invocation)Return a description for the given method invocation.protected LogAbstractTraceInterceptor. getLoggerForInvocation(MethodInvocation invocation)Return the appropriateLoginstance to use for the givenMethodInvocation.ObjectAbstractTraceInterceptor. invoke(MethodInvocation invocation)Determines whether or not logging is enabled for the particularMethodInvocation.ObjectAsyncExecutionInterceptor. invoke(MethodInvocation invocation)Intercept the given method invocation, submit the actual calling of the method to the correct task executor and return immediately to the caller.ObjectConcurrencyThrottleInterceptor. invoke(MethodInvocation methodInvocation)ObjectDebugInterceptor. invoke(MethodInvocation invocation)ObjectExposeInvocationInterceptor. invoke(MethodInvocation mi)protected abstract ObjectAbstractTraceInterceptor. invokeUnderTrace(MethodInvocation invocation, Log logger)Subclasses must override this method to perform any tracing around the suppliedMethodInvocation.protected ObjectCustomizableTraceInterceptor. invokeUnderTrace(MethodInvocation invocation, Log logger)Writes a log message before the invocation based on the value ofenterMessage.protected ObjectJamonPerformanceMonitorInterceptor. invokeUnderTrace(MethodInvocation invocation, Log logger)Wraps the invocation with a JAMon Monitor and writes the current performance statistics to the log (if enabled).protected ObjectPerformanceMonitorInterceptor. invokeUnderTrace(MethodInvocation invocation, Log logger)protected ObjectSimpleTraceInterceptor. invokeUnderTrace(MethodInvocation invocation, Log logger)protected booleanAbstractTraceInterceptor. isInterceptorEnabled(MethodInvocation invocation, Log logger)Determine whether the interceptor should kick in, that is, whether theinvokeUnderTracemethod should be called.protected booleanJamonPerformanceMonitorInterceptor. isInterceptorEnabled(MethodInvocation invocation, Log logger)Always applies the interceptor if the "trackAllInvocations" flag has been set; else just kicks in if the log is enabled.protected StringCustomizableTraceInterceptor. replacePlaceholders(String message, MethodInvocation methodInvocation, Object returnValue, Throwable throwable, long invocationTime)Replace the placeholders in the given message with the supplied values, or values derived from those supplied.org.springframework.aop.support中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.aop.support中的方法 修饰符和类型 方法 说明 protected ObjectDelegatePerTargetObjectIntroductionInterceptor. doProceed(MethodInvocation mi)Proceed with the suppliedMethodInterceptor.protected ObjectDelegatingIntroductionInterceptor. doProceed(MethodInvocation mi)Proceed with the suppliedMethodInterceptor.ObjectDelegatePerTargetObjectIntroductionInterceptor. invoke(MethodInvocation mi)Subclasses may need to override this if they want to perform custom behaviour in around advice.ObjectDelegatingIntroductionInterceptor. invoke(MethodInvocation mi)Subclasses may need to override this if they want to perform custom behaviour in around advice.protected booleanIntroductionInfoSupport. isMethodOnIntroducedInterface(MethodInvocation mi)Is this method on an introduced interface?org.springframework.cache.interceptor中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 ObjectCacheInterceptor. invoke(MethodInvocation invocation)org.springframework.cache.jcache.interceptor中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.cache.jcache.interceptor中的方法 修饰符和类型 方法 说明 ObjectJCacheInterceptor. invoke(MethodInvocation invocation)org.springframework.context.event中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.context.event中的方法 修饰符和类型 方法 说明 ObjectEventPublicationInterceptor. invoke(MethodInvocation invocation)org.springframework.dao.support中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.dao.support中的方法 修饰符和类型 方法 说明 ObjectPersistenceExceptionTranslationInterceptor. invoke(MethodInvocation mi)org.springframework.ejb.access中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.ejb.access中的方法 修饰符和类型 方法 说明 protected abstract ObjectAbstractRemoteSlsbInvokerInterceptor. doInvoke(MethodInvocation invocation)Perform the given invocation on the current EJB home.protected ObjectSimpleRemoteSlsbInvokerInterceptor. doInvoke(MethodInvocation invocation)This implementation "creates" a new EJB instance for each invocation.ObjectAbstractSlsbInvokerInterceptor. invoke(MethodInvocation invocation)Prepares the thread context if necessary, and delegates toAbstractSlsbInvokerInterceptor.invokeInContext(org.aopalliance.intercept.MethodInvocation).ObjectAbstractRemoteSlsbInvokerInterceptor. invokeInContext(MethodInvocation invocation)Fetches an EJB home object and delegates todoInvoke.protected abstract ObjectAbstractSlsbInvokerInterceptor. invokeInContext(MethodInvocation invocation)Perform the given invocation on the current EJB home, within the thread context being prepared accordingly.ObjectLocalSlsbInvokerInterceptor. invokeInContext(MethodInvocation invocation)This implementation "creates" a new EJB instance for each invocation.protected ObjectAbstractRemoteSlsbInvokerInterceptor. refreshAndRetry(MethodInvocation invocation)Refresh the EJB home object and retry the given invocation.org.springframework.jms.remoting中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.jms.remoting中的方法 修饰符和类型 方法 说明 protected RemoteInvocationJmsInvokerClientInterceptor. createRemoteInvocation(MethodInvocation methodInvocation)Create a newRemoteInvocationobject for the given AOP method invocation.ObjectJmsInvokerClientInterceptor. invoke(MethodInvocation methodInvocation)org.springframework.jmx.access中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.jmx.access中的方法 修饰符和类型 方法 说明 protected ObjectMBeanClientInterceptor. doInvoke(MethodInvocation invocation)Route the invocation to the configured managed resource.protected ObjectMBeanClientInterceptor. handleConnectFailure(MethodInvocation invocation, Exception ex)Refresh the connection and retry the MBean invocation if possible.ObjectMBeanClientInterceptor. invoke(MethodInvocation invocation)Route the invocation to the configured managed resource..org.springframework.orm.hibernate5.support中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.orm.hibernate5.support中的方法 修饰符和类型 方法 说明 ObjectOpenSessionInterceptor. invoke(MethodInvocation invocation)org.springframework.remoting.caucho中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.remoting.caucho中的方法 修饰符和类型 方法 说明 ObjectHessianClientInterceptor. invoke(MethodInvocation invocation)org.springframework.remoting.httpinvoker中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.remoting.httpinvoker中的方法 修饰符和类型 方法 说明 protected RemoteInvocationResultHttpInvokerClientInterceptor. executeRequest(RemoteInvocation invocation, MethodInvocation originalInvocation)Execute the given remote invocation via theHttpInvokerRequestExecutor.ObjectHttpInvokerClientInterceptor. invoke(MethodInvocation methodInvocation)org.springframework.remoting.jaxws中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.remoting.jaxws中的方法 修饰符和类型 方法 说明 protected ObjectJaxWsPortClientInterceptor. doInvoke(MethodInvocation invocation)Perform a JAX-WS service invocation based on the given method invocation.protected ObjectJaxWsPortClientInterceptor. doInvoke(MethodInvocation invocation, Object portStub)Perform a JAX-WS service invocation on the given port stub.ObjectJaxWsPortClientInterceptor. invoke(MethodInvocation invocation)org.springframework.remoting.rmi中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.remoting.rmi中的方法 修饰符和类型 方法 说明 protected RemoteInvocationJndiRmiClientInterceptor. createRemoteInvocation(MethodInvocation methodInvocation)Create a new RemoteInvocation object for the given AOP method invocation.protected ObjectJndiRmiClientInterceptor. doInvoke(MethodInvocation invocation, Object stub)Perform the given invocation on the given RMI stub.protected ObjectJndiRmiClientInterceptor. doInvoke(MethodInvocation methodInvocation, RmiInvocationHandler invocationHandler)Apply the given AOP method invocation to the givenRmiInvocationHandler.protected ObjectRmiClientInterceptor. doInvoke(MethodInvocation invocation, Remote stub)Perform the given invocation on the given RMI stub.protected ObjectRmiClientInterceptor. doInvoke(MethodInvocation methodInvocation, RmiInvocationHandler invocationHandler)Apply the given AOP method invocation to the givenRmiInvocationHandler.ObjectJndiRmiClientInterceptor. invoke(MethodInvocation invocation)Fetches an RMI stub and delegates toJndiRmiClientInterceptor.doInvoke(org.aopalliance.intercept.MethodInvocation, java.lang.Object).ObjectRmiClientInterceptor. invoke(MethodInvocation invocation)Fetches an RMI stub and delegates todoInvoke.static ObjectRmiClientInterceptorUtils. invokeRemoteMethod(MethodInvocation invocation, Object stub)Perform a raw method invocation on the given RMI stub, letting reflection exceptions through as-is.protected ObjectJndiRmiClientInterceptor. refreshAndRetry(MethodInvocation invocation)Refresh the RMI stub and retry the given invocation.protected ObjectRmiClientInterceptor. refreshAndRetry(MethodInvocation invocation)Refresh the RMI stub and retry the given invocation.org.springframework.remoting.support中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.remoting.support中的方法 修饰符和类型 方法 说明 RemoteInvocationDefaultRemoteInvocationFactory. createRemoteInvocation(MethodInvocation methodInvocation)protected RemoteInvocationRemoteInvocationBasedAccessor. createRemoteInvocation(MethodInvocation methodInvocation)Create a new RemoteInvocation object for the given AOP method invocation.RemoteInvocationRemoteInvocationFactory. createRemoteInvocation(MethodInvocation methodInvocation)Create a serializable RemoteInvocation object from the given AOP MethodInvocation.ObjectRemoteInvocationTraceInterceptor. invoke(MethodInvocation invocation)参数类型为MethodInvocation的org.springframework.remoting.support中的构造器 构造器 说明 RemoteInvocation(MethodInvocation methodInvocation)Create a new RemoteInvocation for the given AOP method invocation.org.springframework.transaction.interceptor中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.transaction.interceptor中的方法 修饰符和类型 方法 说明 ObjectTransactionInterceptor. invoke(MethodInvocation invocation)org.springframework.validation.beanvalidation中MethodInvocation的使用
参数类型为MethodInvocation的org.springframework.validation.beanvalidation中的方法 修饰符和类型 方法 说明 protected Class<?>[]MethodValidationInterceptor. determineValidationGroups(MethodInvocation invocation)Determine the validation groups to validate against for the given method invocation.ObjectMethodValidationInterceptor. invoke(MethodInvocation invocation)