Java Doc for AopUtils.java in  » J2EE » spring-framework-2.0.6 » org » springframework » aop » support » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » spring framework 2.0.6 » org.springframework.aop.support 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.springframework.aop.support.AopUtils

AopUtils
abstract public class AopUtils (Code)
Utility methods for AOP support code. Mainly for internal use within Spring's AOP support.

See org.springframework.aop.framework.AopProxyUtils for a collection of framework-specific AOP utility methods which depend on internals of Spring's AOP framework implementation.
author:
   Rod Johnson
author:
   Juergen Hoeller
author:
   Rob Harrop
See Also:   org.springframework.aop.framework.AopProxyUtils





Method Summary
public static  booleancanApply(Pointcut pc, Class targetClass)
     Can the given pointcut apply at all on the given class?

This is an important test as it can be used to optimize out a pointcut for a class.

public static  booleancanApply(Pointcut pc, Class targetClass, boolean hasIntroductions)
     Can the given pointcut apply at all on the given class?

This is an important test as it can be used to optimize out a pointcut for a class.

public static  booleancanApply(Advisor advisor, Class targetClass)
     Can the given advisor apply at all on the given class? This is an important test as it can be used to optimize out a advisor for a class.
public static  booleancanApply(Advisor advisor, Class targetClass, boolean hasIntroductions)
     Can the given advisor apply at all on the given class? This is an important test as it can be used to optimize out a advisor for a class.
public static  ListfindAdvisorsThatCanApply(List candidateAdvisors, Class clazz)
     Determine the sublist of the candidateAdvisors list that is applicable to the given class.
public static  MethodgetMostSpecificMethod(Method method, Class targetClass)
     Given a method, which may come from an interface, and a target class used in the current AOP invocation, find the corresponding target method if there is one.
public static  ClassgetTargetClass(Object candidate)
     Determine the target class of the given bean instance, which might be an AOP proxy.
public static  ObjectinvokeJoinpointUsingReflection(Object target, Method method, Object[] args)
     Invoke the given target via reflection, as part of an AOP method invocation.
public static  booleanisAopProxy(Object object)
     Check whether the given object is a JDK dynamic proxy or a CGLIB proxy.
public static  booleanisCglibProxy(Object object)
     Check whether the given object is a CGLIB proxy.
public static  booleanisCglibProxyClass(Class clazz)
     Check whether the specified class is a CGLIB-generated class.
public static  booleanisEqualsMethod(Method method)
     Determine whether the given method is an "equals" method.
public static  booleanisHashCodeMethod(Method method)
     Determine whether the given method is a "hashCode" method.
public static  booleanisJdkDynamicProxy(Object object)
     Check whether the given object is a JDK dynamic proxy.
public static  booleanisToStringMethod(Method method)
     Determine whether the given method is a "toString" method.



Method Detail
canApply
public static boolean canApply(Pointcut pc, Class targetClass)(Code)
Can the given pointcut apply at all on the given class?

This is an important test as it can be used to optimize out a pointcut for a class.
Parameters:
  pc - the static or dynamic pointcut to check
Parameters:
  targetClass - the class to test whether the pointcut can apply on any method




canApply
public static boolean canApply(Pointcut pc, Class targetClass, boolean hasIntroductions)(Code)
Can the given pointcut apply at all on the given class?

This is an important test as it can be used to optimize out a pointcut for a class.
Parameters:
  pc - the static or dynamic pointcut to check
Parameters:
  targetClass - the class to test
Parameters:
  hasIntroductions - whether or not the advisor chainfor this bean includes any introductions whether the pointcut can apply on any method




canApply
public static boolean canApply(Advisor advisor, Class targetClass)(Code)
Can the given advisor apply at all on the given class? This is an important test as it can be used to optimize out a advisor for a class.
Parameters:
  advisor - the advisor to check
Parameters:
  targetClass - class we're testing whether the pointcut can apply on any method



canApply
public static boolean canApply(Advisor advisor, Class targetClass, boolean hasIntroductions)(Code)
Can the given advisor apply at all on the given class? This is an important test as it can be used to optimize out a advisor for a class. This version also takes into account introductions, for IntroductionAwareMethodMatchers
Parameters:
  advisor - the advisor to check
Parameters:
  targetClass - class we're testing
Parameters:
  hasIntroductions - whether or not the advisor chain for this bean includesany introductions whether the pointcut can apply on any method



findAdvisorsThatCanApply
public static List findAdvisorsThatCanApply(List candidateAdvisors, Class clazz)(Code)
Determine the sublist of the candidateAdvisors list that is applicable to the given class.
Parameters:
  candidateAdvisors - the Advisors to evaluate
Parameters:
  clazz - the target class sublist of Advisors that can apply to an object of the given class(may be the incoming List as-is)



getMostSpecificMethod
public static Method getMostSpecificMethod(Method method, Class targetClass)(Code)
Given a method, which may come from an interface, and a target class used in the current AOP invocation, find the corresponding target method if there is one. E.g. the method may be IFoo.bar() and the target class may be DefaultFoo. In this case, the method may be DefaultFoo.bar(). This enables attributes on that method to be found.
Parameters:
  method - the method to be invoked, which may come from an interface
Parameters:
  targetClass - the target class for the current invocation.May be null or may not even implement the method. the specific target method, or the original method if thetargetClass doesn't implement it or is null
See Also:   org.springframework.util.ClassUtils.getMostSpecificMethod



getTargetClass
public static Class getTargetClass(Object candidate)(Code)
Determine the target class of the given bean instance, which might be an AOP proxy.

Returns the target class for an AOP proxy and the plain class else.
Parameters:
  candidate - the instance to check (might be an AOP proxy) the target class (or the plain class of the given object as fallback)
See Also:   org.springframework.aop.TargetClassAware.getTargetClass




invokeJoinpointUsingReflection
public static Object invokeJoinpointUsingReflection(Object target, Method method, Object[] args) throws Throwable(Code)
Invoke the given target via reflection, as part of an AOP method invocation.
Parameters:
  target - the target object
Parameters:
  method - the method to invoke
Parameters:
  args - the arguments for the method the invocation result, if any
throws:
  Throwable - if thrown by the target method
throws:
  org.springframework.aop.AopInvocationException - in case of a reflection error



isAopProxy
public static boolean isAopProxy(Object object)(Code)
Check whether the given object is a JDK dynamic proxy or a CGLIB proxy.
Parameters:
  object - the object to check
See Also:   AopUtils.isJdkDynamicProxy
See Also:   AopUtils.isCglibProxy



isCglibProxy
public static boolean isCglibProxy(Object object)(Code)
Check whether the given object is a CGLIB proxy.
Parameters:
  object - the object to check



isCglibProxyClass
public static boolean isCglibProxyClass(Class clazz)(Code)
Check whether the specified class is a CGLIB-generated class.
Parameters:
  clazz - the class to check



isEqualsMethod
public static boolean isEqualsMethod(Method method)(Code)
Determine whether the given method is an "equals" method.
See Also:   java.lang.Object.equals



isHashCodeMethod
public static boolean isHashCodeMethod(Method method)(Code)
Determine whether the given method is a "hashCode" method.
See Also:   java.lang.Object.hashCode



isJdkDynamicProxy
public static boolean isJdkDynamicProxy(Object object)(Code)
Check whether the given object is a JDK dynamic proxy.
Parameters:
  object - the object to check
See Also:   java.lang.reflect.Proxy.isProxyClass



isToStringMethod
public static boolean isToStringMethod(Method method)(Code)
Determine whether the given method is a "toString" method.
See Also:   java.lang.Object.toString



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.