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


org.springframework.jndi.JndiObjectLocator
   org.springframework.ejb.access.AbstractSlsbInvokerInterceptor

All known Subclasses:   org.springframework.ejb.access.LocalSlsbInvokerInterceptor,  org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor,
AbstractSlsbInvokerInterceptor
abstract public class AbstractSlsbInvokerInterceptor extends JndiObjectLocator implements MethodInterceptor(Code)
Superclass for AOP interceptors invoking local or remote Stateless Session Beans.

Such an interceptor must be the last interceptor in the advice chain. In this case, there is no direct target object: The call is handled in a special way, getting executed on an EJB instance retrieved via an EJB home.
author:
   Rod Johnson
author:
   Juergen Hoeller





Method Summary
public  voidafterPropertiesSet()
     Fetches EJB home on startup, if necessary.
protected  Objectcreate()
     Invoke the create() method on the cached EJB home object.
protected  MethodgetCreateMethod(Object home)
     Determine the create method of the given EJB home object.
protected  ObjectgetHome()
     Return the EJB home object to use.
protected  booleanisHomeRefreshable()
     Return whether the cached EJB home object is potentially subject to on-demand refreshing.
protected  voidrefreshHome()
     Refresh the cached home object, if applicable.
public  voidsetCacheHome(boolean cacheHome)
     Set whether to cache the EJB home object once it has been located.
public  voidsetLookupHomeOnStartup(boolean lookupHomeOnStartup)
     Set whether to look up the EJB home object on startup.



Method Detail
afterPropertiesSet
public void afterPropertiesSet() throws NamingException(Code)
Fetches EJB home on startup, if necessary.
See Also:   AbstractSlsbInvokerInterceptor.setLookupHomeOnStartup
See Also:   AbstractSlsbInvokerInterceptor.refreshHome



create
protected Object create() throws NamingException, InvocationTargetException(Code)
Invoke the create() method on the cached EJB home object. a new EJBObject or EJBLocalObject
throws:
  NamingException - if thrown by JNDI
throws:
  InvocationTargetException - if thrown by the create method



getCreateMethod
protected Method getCreateMethod(Object home) throws EjbAccessException(Code)
Determine the create method of the given EJB home object.
Parameters:
  home - the EJB home object the create method
throws:
  EjbAccessException - if the method couldn't be retrieved



getHome
protected Object getHome() throws NamingException(Code)
Return the EJB home object to use. Called for each invocation.

Default implementation returns the home created on initialization, if any; else, it invokes lookup to get a new proxy for each invocation.

Can be overridden in subclasses, for example to cache a home object for a given amount of time before recreating it, or to test the home object whether it is still alive. the EJB home object to use for an invocation
throws:
  NamingException - if proxy creation failed
See Also:   AbstractSlsbInvokerInterceptor.lookup
See Also:   AbstractSlsbInvokerInterceptor.getCreateMethod




isHomeRefreshable
protected boolean isHomeRefreshable()(Code)
Return whether the cached EJB home object is potentially subject to on-demand refreshing. Default is "false".



refreshHome
protected void refreshHome() throws NamingException(Code)
Refresh the cached home object, if applicable. Also caches the create method on the home object.
throws:
  NamingException - if thrown by the JNDI lookup
See Also:   AbstractSlsbInvokerInterceptor.lookup
See Also:   AbstractSlsbInvokerInterceptor.getCreateMethod



setCacheHome
public void setCacheHome(boolean cacheHome)(Code)
Set whether to cache the EJB home object once it has been located. Default is "true".

Can be turned off to allow for hot restart of the EJB server. In this case, the EJB home object will be fetched for each invocation.
See Also:   AbstractSlsbInvokerInterceptor.setLookupHomeOnStartup




setLookupHomeOnStartup
public void setLookupHomeOnStartup(boolean lookupHomeOnStartup)(Code)
Set whether to look up the EJB home object on startup. Default is "true".

Can be turned off to allow for late start of the EJB server. In this case, the EJB home object will be fetched on first access.
See Also:   AbstractSlsbInvokerInterceptor.setCacheHome




Methods inherited from org.springframework.jndi.JndiObjectLocator
public void afterPropertiesSet() throws IllegalArgumentException, NamingException(Code)(Java Doc)
public Class getExpectedType()(Code)(Java Doc)
public String getJndiName()(Code)(Java Doc)
protected Object lookup() throws NamingException(Code)(Java Doc)
public void setExpectedType(Class expectedType)(Code)(Java Doc)
public void setJndiName(String jndiName)(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.