Java Doc for AdvisedSupport.java in  » J2EE » spring-framework-2.0.6 » org » springframework » aop » framework » 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.framework 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.springframework.aop.framework.ProxyConfig
      org.springframework.aop.framework.AdvisedSupport

All known Subclasses:   org.springframework.aop.framework.ProxyCreatorSupport,
AdvisedSupport
public class AdvisedSupport extends ProxyConfig implements Advised(Code)
Base class for AOP proxy configuration managers. These are not themselves AOP proxies, but subclasses of this class are normally factories from which AOP proxy instances are obtained directly.

This class frees subclasses of the housekeeping of Advices and Advisors, but doesn't actually implement proxy creation methods, which are provided by subclasses.

This class is serializable; subclasses need not be. This class is used to hold snapshots of proxies.
author:
   Rod Johnson
author:
   Juergen Hoeller
See Also:   org.springframework.aop.framework.AopProxy



Field Summary
final public static  TargetSourceEMPTY_TARGET_SOURCE
     Canonical TargetSource when there's no target, and behavior is supplied by the advisors.
transient  AdvisorChainFactoryadvisorChainFactory
    
 TargetSourcetargetSource
    

Constructor Summary
public  AdvisedSupport()
     No-arg constructor for use as a JavaBean.
public  AdvisedSupport(Class[] interfaces)
     Create a AdvisedSupport instance with the given parameters.

Method Summary
public  voidaddAdvice(Advice advice)
    
public  voidaddAdvice(int pos, Advice advice)
     Cannot add introductions this way unless the advice implements IntroductionInfo.
public  voidaddAdvisor(Advisor advisor)
    
public  voidaddAdvisor(int pos, Advisor advisor)
    
public  voidaddAllAdvisors(Advisor[] advisors)
     Add all of the given advisors to this proxy configuration.
public  voidaddInterface(Class intf)
     Add a new proxied interface.
protected  voidadviceChanged()
     Invoked when advice has changed.
public  booleanadviceIncluded(Advice advice)
    
protected  voidcopyConfigurationFrom(AdvisedSupport other)
     Call this method on a new instance created by the no-arg constructor to create an independent copy of the configuration from the given object.
protected  voidcopyConfigurationFrom(AdvisedSupport other, TargetSource targetSource, List advisors)
     Copy the AOP configuration from the given AdvisedSupport object, but allow substitution of a fresh TargetSource and a given interceptor chain.
public  intcountAdvicesOfType(Class adviceClass)
     Count advices of the given class.
public  AdvisorChainFactorygetAdvisorChainFactory()
     Return the advisor chain factory to use (never null).
final public  Advisor[]getAdvisors()
    
final protected  ListgetAdvisorsInternal()
     Allows uncontrolled access to the List of Advisor Advisors .
public  ListgetInterceptorsAndDynamicInterceptionAdvice(Method method, Class targetClass)
     Determine a list of org.aopalliance.intercept.MethodInterceptor objects for the given method, based on this configuration.
public  Class[]getProxiedInterfaces()
    
public  ClassgetTargetClass()
    
public  TargetSourcegetTargetSource()
    
public  intindexOf(Advisor advisor)
    
public  intindexOf(Advice advice)
    
public  booleanisInterfaceProxied(Class intf)
    
public  booleanremoveAdvice(Advice advice)
    
public  booleanremoveAdvisor(Advisor advisor)
    
public  voidremoveAdvisor(int index)
    
public  booleanremoveInterface(Class intf)
     Remove a proxied interface.
public  booleanreplaceAdvisor(Advisor a, Advisor b)
    
public  voidsetAdvisorChainFactory(AdvisorChainFactory advisorChainFactory)
     Set the advisor chain factory to use.
public  voidsetInterfaces(Class[] interfaces)
     Set the interfaces to be proxied.
public  voidsetTarget(Object target)
     Set the given object as target.
public  voidsetTargetClass(Class targetClass)
     Set a target class to be proxied, indicating that the proxy should be castable to the given class.

Internally, an org.springframework.aop.target.EmptyTargetSource for the given target class will be used.

public  voidsetTargetSource(TargetSource targetSource)
    
public  StringtoProxyConfigString()
    
public  StringtoString()
     For debugging/diagnostic use.
final protected  voidupdateAdvisorArray()
     Bring the array up to date with the list.
protected  ObjectwriteReplace()
     Serializes a copy of the state of this class, ignoring subclass state.

Field Detail
EMPTY_TARGET_SOURCE
final public static TargetSource EMPTY_TARGET_SOURCE(Code)
Canonical TargetSource when there's no target, and behavior is supplied by the advisors.



advisorChainFactory
transient AdvisorChainFactory advisorChainFactory(Code)
The AdvisorChainFactory to use



targetSource
TargetSource targetSource(Code)
Package-protected to allow direct access for efficiency




Constructor Detail
AdvisedSupport
public AdvisedSupport()(Code)
No-arg constructor for use as a JavaBean.



AdvisedSupport
public AdvisedSupport(Class[] interfaces)(Code)
Create a AdvisedSupport instance with the given parameters.
Parameters:
  interfaces - the proxied interfaces




Method Detail
addAdvice
public void addAdvice(Advice advice) throws AopConfigException(Code)



addAdvice
public void addAdvice(int pos, Advice advice) throws AopConfigException(Code)
Cannot add introductions this way unless the advice implements IntroductionInfo.



addAdvisor
public void addAdvisor(Advisor advisor)(Code)



addAdvisor
public void addAdvisor(int pos, Advisor advisor) throws AopConfigException(Code)



addAllAdvisors
public void addAllAdvisors(Advisor[] advisors)(Code)
Add all of the given advisors to this proxy configuration.
Parameters:
  advisors - the advisors to register



addInterface
public void addInterface(Class intf)(Code)
Add a new proxied interface.
Parameters:
  intf - the additional interface to proxy



adviceChanged
protected void adviceChanged()(Code)
Invoked when advice has changed.



adviceIncluded
public boolean adviceIncluded(Advice advice)(Code)
Is the given advice included in any advisor within this proxy configuration?
Parameters:
  advice - the advice to check inclusion of whether this advice instance is included



copyConfigurationFrom
protected void copyConfigurationFrom(AdvisedSupport other)(Code)
Call this method on a new instance created by the no-arg constructor to create an independent copy of the configuration from the given object.
Parameters:
  other - the AdvisedSupport object to copy configuration from



copyConfigurationFrom
protected void copyConfigurationFrom(AdvisedSupport other, TargetSource targetSource, List advisors)(Code)
Copy the AOP configuration from the given AdvisedSupport object, but allow substitution of a fresh TargetSource and a given interceptor chain.
Parameters:
  other - the AdvisedSupport object to take proxy configuration from
Parameters:
  targetSource - the new TargetSource
Parameters:
  advisors - the Advisors for the chain



countAdvicesOfType
public int countAdvicesOfType(Class adviceClass)(Code)
Count advices of the given class.
Parameters:
  adviceClass - the advice class to check the count of the interceptors of this class or subclasses



getAdvisorChainFactory
public AdvisorChainFactory getAdvisorChainFactory()(Code)
Return the advisor chain factory to use (never null).



getAdvisors
final public Advisor[] getAdvisors()(Code)



getAdvisorsInternal
final protected List getAdvisorsInternal()(Code)
Allows uncontrolled access to the List of Advisor Advisors .

Use with care, and remember to AdvisedSupport.updateAdvisorArray() refresh the advisor array and AdvisedSupport.adviceChanged() fire advice changed events when making any modifications.




getInterceptorsAndDynamicInterceptionAdvice
public List getInterceptorsAndDynamicInterceptionAdvice(Method method, Class targetClass)(Code)
Determine a list of org.aopalliance.intercept.MethodInterceptor objects for the given method, based on this configuration.
Parameters:
  method - the proxied method
Parameters:
  targetClass - the target class List of MethodInterceptors (may also include InterceptorAndDynamicMethodMatchers)



getProxiedInterfaces
public Class[] getProxiedInterfaces()(Code)



getTargetClass
public Class getTargetClass()(Code)



getTargetSource
public TargetSource getTargetSource()(Code)



indexOf
public int indexOf(Advisor advisor)(Code)



indexOf
public int indexOf(Advice advice)(Code)



isInterfaceProxied
public boolean isInterfaceProxied(Class intf)(Code)



removeAdvice
public boolean removeAdvice(Advice advice) throws AopConfigException(Code)



removeAdvisor
public boolean removeAdvisor(Advisor advisor)(Code)



removeAdvisor
public void removeAdvisor(int index) throws AopConfigException(Code)



removeInterface
public boolean removeInterface(Class intf)(Code)
Remove a proxied interface.

Does nothing if the given interface isn't proxied.
Parameters:
  intf - the interface to remove from the proxy true if the interface was removed; falseif the interface was not found and hence could not be removed




replaceAdvisor
public boolean replaceAdvisor(Advisor a, Advisor b) throws AopConfigException(Code)



setAdvisorChainFactory
public void setAdvisorChainFactory(AdvisorChainFactory advisorChainFactory)(Code)
Set the advisor chain factory to use.

Default is a DefaultAdvisorChainFactory .




setInterfaces
public void setInterfaces(Class[] interfaces)(Code)
Set the interfaces to be proxied.



setTarget
public void setTarget(Object target)(Code)
Set the given object as target. Will create a SingletonTargetSource for the object.
See Also:   AdvisedSupport.setTargetSource
See Also:   org.springframework.aop.target.SingletonTargetSource



setTargetClass
public void setTargetClass(Class targetClass)(Code)
Set a target class to be proxied, indicating that the proxy should be castable to the given class.

Internally, an org.springframework.aop.target.EmptyTargetSource for the given target class will be used. The kind of proxy needed will be determined on actual creation of the proxy.

This is a replacement for setting a "targetSource" or "target", for the case where we want a proxy based on a target class (which can be an interface or a concrete class) without having a fully capable TargetSource available.
See Also:   AdvisedSupport.setTargetSource
See Also:   AdvisedSupport.setTarget




setTargetSource
public void setTargetSource(TargetSource targetSource)(Code)



toProxyConfigString
public String toProxyConfigString()(Code)



toString
public String toString()(Code)
For debugging/diagnostic use.



updateAdvisorArray
final protected void updateAdvisorArray()(Code)
Bring the array up to date with the list.



writeReplace
protected Object writeReplace()(Code)
Serializes a copy of the state of this class, ignoring subclass state.



Fields inherited from org.springframework.aop.framework.ProxyConfig
boolean exposeProxy(Code)(Java Doc)
boolean opaque(Code)(Java Doc)

Methods inherited from org.springframework.aop.framework.ProxyConfig
public void copyFrom(ProxyConfig other)(Code)(Java Doc)
public boolean isExposeProxy()(Code)(Java Doc)
public boolean isFrozen()(Code)(Java Doc)
public boolean isOpaque()(Code)(Java Doc)
public boolean isOptimize()(Code)(Java Doc)
public boolean isProxyTargetClass()(Code)(Java Doc)
public void setExposeProxy(boolean exposeProxy)(Code)(Java Doc)
public void setFrozen(boolean frozen)(Code)(Java Doc)
public void setOpaque(boolean opaque)(Code)(Java Doc)
public void setOptimize(boolean optimize)(Code)(Java Doc)
public void setProxyTargetClass(boolean proxyTargetClass)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.