Java Doc for AbstractSingletonProxyFactoryBean.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.AbstractSingletonProxyFactoryBean

All known Subclasses:   org.springframework.transaction.interceptor.TransactionProxyFactoryBean,
AbstractSingletonProxyFactoryBean
abstract public class AbstractSingletonProxyFactoryBean extends ProxyConfig implements FactoryBean,BeanClassLoaderAware,InitializingBean(Code)
Convenient proxy factory bean superclass for proxy factory beans that create only singletons.

Manages pre- and post-interceptors (references, rather than interceptor names, as in ProxyFactoryBean ) and provides consistent interface management.
author:
   Juergen Hoeller
since:
   2.0





Method Summary
public  voidafterPropertiesSet()
    
abstract protected  ObjectcreateMainInterceptor()
     Create the "main" interceptor for this proxy factory bean.
protected  TargetSourcecreateTargetSource(Object target)
     Determine a TargetSource for the given target (or TargetSource).
Parameters:
  target - target.
public  ObjectgetObject()
    
public  ClassgetObjectType()
    
protected  ObjectgetProxy(AopProxy aopProxy)
     Return the proxy object to expose.

The default implementation uses a getProxy call with the factory's bean class loader.

final public  booleanisSingleton()
    
public  voidsetAdvisorAdapterRegistry(AdvisorAdapterRegistry advisorAdapterRegistry)
     Specify the AdvisorAdapterRegistry to use.
public  voidsetBeanClassLoader(ClassLoader classLoader)
    
public  voidsetPostInterceptors(Object[] postInterceptors)
     Set additional interceptors (or advisors) to be applied after the implicit transaction interceptor, e.g.
public  voidsetPreInterceptors(Object[] preInterceptors)
     Set additional interceptors (or advisors) to be applied before the implicit transaction interceptor, e.g.
public  voidsetProxyInterfaces(Class[] proxyInterfaces)
     Specify the set of interfaces being proxied.
public  voidsetTarget(Object target)
     Set the target object, that is, the bean to be wrapped with a transactional proxy.

The target may be any object, in which case a SingletonTargetSource will be created.




Method Detail
afterPropertiesSet
public void afterPropertiesSet()(Code)



createMainInterceptor
abstract protected Object createMainInterceptor()(Code)
Create the "main" interceptor for this proxy factory bean. Typically an Advisor, but can also be any type of Advice.

Pre-interceptors will be applied before, post-interceptors will be applied after this interceptor.




createTargetSource
protected TargetSource createTargetSource(Object target)(Code)
Determine a TargetSource for the given target (or TargetSource).
Parameters:
  target - target. If this is an implementation of TargetSource it isused as our TargetSource; otherwise it is wrapped in a SingletonTargetSource. a TargetSource for this object



getObject
public Object getObject()(Code)



getObjectType
public Class getObjectType()(Code)



getProxy
protected Object getProxy(AopProxy aopProxy)(Code)
Return the proxy object to expose.

The default implementation uses a getProxy call with the factory's bean class loader. Can be overridden to specify a custom class loader.
Parameters:
  aopProxy - the prepared AopProxy instance to get the proxy from the proxy object to expose
See Also:   AopProxy.getProxy(ClassLoader)




isSingleton
final public boolean isSingleton()(Code)



setAdvisorAdapterRegistry
public void setAdvisorAdapterRegistry(AdvisorAdapterRegistry advisorAdapterRegistry)(Code)
Specify the AdvisorAdapterRegistry to use. Default is the global AdvisorAdapterRegistry.
See Also:   org.springframework.aop.framework.adapter.GlobalAdvisorAdapterRegistry



setBeanClassLoader
public void setBeanClassLoader(ClassLoader classLoader)(Code)



setPostInterceptors
public void setPostInterceptors(Object[] postInterceptors)(Code)
Set additional interceptors (or advisors) to be applied after the implicit transaction interceptor, e.g. HibernateInterceptors for eagerly binding Sessions to the current thread when using JTA.

Note that this is just necessary if you rely on those interceptors in general: HibernateTemplate and JdoTemplate work nicely with JtaTransactionManager through implicit on-demand thread binding.
See Also:   org.springframework.orm.hibernate.HibernateInterceptor
See Also:   org.springframework.orm.jdo.JdoInterceptor




setPreInterceptors
public void setPreInterceptors(Object[] preInterceptors)(Code)
Set additional interceptors (or advisors) to be applied before the implicit transaction interceptor, e.g. PerformanceMonitorInterceptor.
See Also:   org.springframework.aop.interceptor.PerformanceMonitorInterceptor



setProxyInterfaces
public void setProxyInterfaces(Class[] proxyInterfaces)(Code)
Specify the set of interfaces being proxied.

If not specified (the default), the AOP infrastructure works out which interfaces need proxying by analyzing the target, proxying all the interfaces that the target object implements.




setTarget
public void setTarget(Object target)(Code)
Set the target object, that is, the bean to be wrapped with a transactional proxy.

The target may be any object, in which case a SingletonTargetSource will be created. If it is a TargetSource, no wrapper TargetSource is created: This enables the use of a pooling or prototype TargetSource etc.
See Also:   org.springframework.aop.TargetSource
See Also:   org.springframework.aop.target.SingletonTargetSource
See Also:   org.springframework.aop.target.LazyInitTargetSource
See Also:   org.springframework.aop.target.PrototypeTargetSource
See Also:   org.springframework.aop.target.CommonsPoolTargetSource




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.