Java Doc for ProxyFactory.java in  » EJB-Server-JBoss-4.2.1 » server » org » jboss » proxy » ejb » 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 » EJB Server JBoss 4.2.1 » server » org.jboss.proxy.ejb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.proxy.ejb.ProxyFactory

ProxyFactory
public class ProxyFactory implements EJBProxyFactory(Code)
As we remove the one one association between container STACK and invoker we keep this around. IN the future the creation of proxies is a task done on a container basis but the container as a logical representation. In other words, the container "Entity with RMI/IIOP" is not a container stack but an association at the invocation level that points to all metadata for a given container.

In other words this is here for legacy reason and to not disrupt the container at once. In particular we declare that we "implement" the container invoker interface when we are just implementing the Proxy generation calls. Separation of concern.

todo eliminate this class, at least in its present form.
author:
   Marc Fleury
author:
   Scott Stark/a>
author:
  
Thomas Diesler/a>
version:
   $Revision: 61258 $



Field Summary
final protected static  StringBEAN_INTERCEPTOR
    
final protected static  StringHOME_INTERCEPTOR
    
final protected static  StringLIST_ENTITY_INTERCEPTOR
    
protected  ArrayListbeanInterceptorClasses
    
protected  InvokerbeanInvoker
    
protected  Containercontainer
    
public  EJBMetaDataejbMetaData
    
protected  EJBHomehome
    
protected  ArrayListhomeInterceptorClasses
    
protected  InvokerhomeInvoker
    
protected  booleanincludeIClientIface
    
protected  InvokerProxyBindingMetaDatainvokerMetaData
    
protected  booleanisServiceEndpointOnly
    
protected  ObjectNamejmxName
    
protected  intjmxNameHash
    
protected  StringjndiBinding
    
protected  ArrayListlistEntityInterceptorClasses
    
protected static  Loggerlog
    
protected  ConstructorproxyClassConstructor
    
protected  EJBObjectstatelessObject
    


Method Summary
protected  voidbindProxy()
     The bindProxy method creates the home proxy and binds the home into jndi.
public  voidcreate()
    
public  voiddestroy()
    
public  ObjectgetEJBHome()
    
public  EJBMetaDatagetEJBMetaData()
    
public  CollectiongetEntityCollection(Collection ids)
     Create a Collection EJBObject proxies for an entity given its primary keys.
public  ObjectgetEntityEJBObject(Object id)
     Create an EJBObject proxy for an entity given its primary key.
public  ObjectgetStatefulSessionEJBObject(Object id)
     Create an EJBObject proxy for a stateful session given its session id.
public  ObjectgetStatelessSessionEJBObject()
     Return the EJBObject proxy for stateless sessions.
protected  voidinitInterceptorClasses()
    
public  booleanisIdentical(Container container, Invocation mi)
    
protected  voidloadInterceptorChain(ArrayList chain, ClientContainer client)
    
protected  voidloadInterceptorClasses(ArrayList classes, Element interceptors)
    
protected  voidrebindHomeProxy()
    
public  voidsetContainer(Container con)
    
public  voidsetInvokerBinding(String binding)
    
public  voidsetInvokerMetaData(InvokerProxyBindingMetaData metadata)
    
protected  voidsetupInvokers()
     Lookup the invokers in the object registry.
public  voidstart()
     Become fully available.
public  voidstop()
    

Field Detail
BEAN_INTERCEPTOR
final protected static String BEAN_INTERCEPTOR(Code)



HOME_INTERCEPTOR
final protected static String HOME_INTERCEPTOR(Code)



LIST_ENTITY_INTERCEPTOR
final protected static String LIST_ENTITY_INTERCEPTOR(Code)



beanInterceptorClasses
protected ArrayList beanInterceptorClasses(Code)
The proxy-config/client-interceptors/bean stack



beanInvoker
protected Invoker beanInvoker(Code)



container
protected Container container(Code)



ejbMetaData
public EJBMetaData ejbMetaData(Code)



home
protected EJBHome home(Code)



homeInterceptorClasses
protected ArrayList homeInterceptorClasses(Code)
The proxy-config/client-interceptors/home stack



homeInvoker
protected Invoker homeInvoker(Code)



includeIClientIface
protected boolean includeIClientIface(Code)
A flag indicating if the IClientContainer interface should be added



invokerMetaData
protected InvokerProxyBindingMetaData invokerMetaData(Code)



isServiceEndpointOnly
protected boolean isServiceEndpointOnly(Code)



jmxName
protected ObjectName jmxName(Code)



jmxNameHash
protected int jmxNameHash(Code)



jndiBinding
protected String jndiBinding(Code)



listEntityInterceptorClasses
protected ArrayList listEntityInterceptorClasses(Code)
The proxy-config/client-interceptors/entity-list stack



log
protected static Logger log(Code)



proxyClassConstructor
protected Constructor proxyClassConstructor(Code)



statelessObject
protected EJBObject statelessObject(Code)





Method Detail
bindProxy
protected void bindProxy() throws Exception(Code)
The bindProxy method creates the home proxy and binds the home into jndi. It also creates the InvocationContext and client container and interceptor chain.
throws:
  Exception - if an error occurs



create
public void create() throws Exception(Code)



destroy
public void destroy()(Code)



getEJBHome
public Object getEJBHome()(Code)



getEJBMetaData
public EJBMetaData getEJBMetaData()(Code)



getEntityCollection
public Collection getEntityCollection(Collection ids)(Code)
Create a Collection EJBObject proxies for an entity given its primary keys.



getEntityEJBObject
public Object getEntityEJBObject(Object id)(Code)
Create an EJBObject proxy for an entity given its primary key.



getStatefulSessionEJBObject
public Object getStatefulSessionEJBObject(Object id)(Code)
Create an EJBObject proxy for a stateful session given its session id.



getStatelessSessionEJBObject
public Object getStatelessSessionEJBObject()(Code)
Return the EJBObject proxy for stateless sessions.



initInterceptorClasses
protected void initInterceptorClasses() throws Exception(Code)
Load the client interceptor classes



isIdentical
public boolean isIdentical(Container container, Invocation mi)(Code)



loadInterceptorChain
protected void loadInterceptorChain(ArrayList chain, ClientContainer client) throws Exception(Code)
The loadInterceptorChain create instances of interceptor classes previously loaded in loadInterceptorClasses
throws:
  Exception - if an error occurs



loadInterceptorClasses
protected void loadInterceptorClasses(ArrayList classes, Element interceptors) throws Exception(Code)
The loadInterceptorClasses load an interceptor classes from configuration
throws:
  Exception - if an error occurs



rebindHomeProxy
protected void rebindHomeProxy() throws NamingException(Code)



setContainer
public void setContainer(Container con)(Code)



setInvokerBinding
public void setInvokerBinding(String binding)(Code)



setInvokerMetaData
public void setInvokerMetaData(InvokerProxyBindingMetaData metadata)(Code)



setupInvokers
protected void setupInvokers() throws Exception(Code)
Lookup the invokers in the object registry. This typically cannot be done until our start method as the invokers may need to be started themselves.



start
public void start() throws Exception(Code)
Become fully available. At this point our invokers should be started and we can bind the homes into JNDI.



stop
public void stop()(Code)



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.