Java Doc for JFactory.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas_ejb » container » 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 » JOnAS 4.8.6 » org.objectweb.jonas_ejb.container 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.jonas_ejb.container.JFactory

All known Subclasses:   org.objectweb.jonas_ejb.container.JEntityFactory,  org.objectweb.jonas_ejb.container.JMdbEndpointFactory,  org.objectweb.jonas_ejb.container.JSessionFactory,  org.objectweb.jonas_ejb.container.JMdbFactory,
JFactory
abstract public class JFactory implements BeanFactory(Code)
This class is a factory for beans.
author:
   Philippe Durieux
author:
   Florent Benoit (JACC security)


Field Summary
protected  ContextJNDICtx
    
protected  Classbeanclass
    
protected  JContainercont
    
protected  BeanDescdd
    
protected  Propertiesejb10Env
    
protected  StringejbTimeoutSignature
    
protected  Stringejbname
    
protected  booleanisClusterReplicated
    
protected  intmaxCacheSize
    
protected  intminPoolSize
    
protected  TimerServicemyTimerService
    
protected  ContainerNamingnaming
    
protected  FilepassivationDir
    
protected  booleanstopped
    
protected  inttimerTxAttr
     Transational attribute for ejbTimeout method.
protected  TransactionManagertm
    
protected  booleantxbeanmanaged
    
protected  WorkManagerwm
    

Constructor Summary
public  JFactory()
    
public  JFactory(BeanDesc dd, JContainer cont)
    

Method Summary
protected  voidcheckJonasVersion(String clName)
     Check if the given class have been generated by GenIC tool with a correct version.
public  voidcheckSecurity(EJBInvocation ejbInv)
    
abstract  voidcheckTransaction(RequestCtx rctx)
    
protected  voidcheckTransactionContainer(RequestCtx rctx)
    
public  intgetCacheSize()
    
public  JContainergetContainer()
    
public  BeanDescgetDeploymentDescriptor()
    
public  StringgetEJBName()
    
public  PropertiesgetEjb10Environment()
    
public  StringgetEjbTimeoutSignature()
    
public  HashtablegetEnv()
    
public  InitialContextgetInitialContext()
    
public  intgetMaxCacheSize()
    
public  intgetMinPoolSize()
    
public  FilegetPassivationDir()
    
abstract public  intgetPoolSize()
    
abstract public  TimerServicegetTimerService()
    
public  intgetTimerTxAttribute()
    
public  TransactionManagergetTransactionManager()
    
public  WorkManagergetWorkManager()
    
public  voidinit(BeanDesc dd, JContainer cont)
    
abstract public  voidinitInstancePool()
     Init the pool of instances.
protected  booleanisClassAvailable(String className, boolean unique)
    
public  booleanisStopped()
    
public  booleanisTxBeanManaged()
    
public  ClassLoadermyClassLoader()
    
public  voidpostInvoke(RequestCtx rctx)
    
public  voidpostInvokeRemote(RequestCtx rctx)
    
public  RequestCtxpreInvoke(int txa)
    
public  RequestCtxpreInvokeRemote(int txa)
    
public  voidresetComponentContext(Context oldctx)
    
public  voidrestartTimers()
    
public  ContextsetComponentContext()
    
public  voidstopContainer()
    

Field Detail
JNDICtx
protected Context JNDICtx(Code)



beanclass
protected Class beanclass(Code)



cont
protected JContainer cont(Code)



dd
protected BeanDesc dd(Code)



ejb10Env
protected Properties ejb10Env(Code)



ejbTimeoutSignature
protected String ejbTimeoutSignature(Code)
Signature for ejbTimeout



ejbname
protected String ejbname(Code)



isClusterReplicated
protected boolean isClusterReplicated(Code)



maxCacheSize
protected int maxCacheSize(Code)



minPoolSize
protected int minPoolSize(Code)
initial value for pool size



myTimerService
protected TimerService myTimerService(Code)



naming
protected ContainerNaming naming(Code)



passivationDir
protected File passivationDir(Code)



stopped
protected boolean stopped(Code)



timerTxAttr
protected int timerTxAttr(Code)
Transational attribute for ejbTimeout method. default is TX_REQUIRES_NEW



tm
protected TransactionManager tm(Code)



txbeanmanaged
protected boolean txbeanmanaged(Code)



wm
protected WorkManager wm(Code)




Constructor Detail
JFactory
public JFactory()(Code)
constructor (for entity) must be without parameters (required by Jorm)



JFactory
public JFactory(BeanDesc dd, JContainer cont)(Code)
constructor (for session)
Parameters:
  dd - The bean deployment descriptor
Parameters:
  cont - the container for this bean




Method Detail
checkJonasVersion
protected void checkJonasVersion(String clName)(Code)
Check if the given class have been generated by GenIC tool with a correct version. Trace an error message, if not.
Parameters:
  clName - class name



checkSecurity
public void checkSecurity(EJBInvocation ejbInv)(Code)
Check if the access to the bean is authorized
Parameters:
  ejbInv - object containing security signature of the method, args ofmethod, etc



checkTransaction
abstract void checkTransaction(RequestCtx rctx)(Code)
check Transaction attribute
Parameters:
  rctx - the Request Context



checkTransactionContainer
protected void checkTransactionContainer(RequestCtx rctx)(Code)
Process Transaction Attribute before calling a business method
Parameters:
  rctx - the Request Context
throws:
  EJBException -
throws:
  TransactionRequiredLocalException -



getCacheSize
public int getCacheSize()(Code)
max cache size for Jmx



getContainer
public JContainer getContainer()(Code)
the JContainer object



getDeploymentDescriptor
public BeanDesc getDeploymentDescriptor()(Code)
Get the Deployement descriptor of this Ejb BeanDesc The bean deployment descriptor



getEJBName
public String getEJBName()(Code)
the bean name



getEjb10Environment
public Properties getEjb10Environment()(Code)
the EJB 1.0 style environment associated with the Bean



getEjbTimeoutSignature
public String getEjbTimeoutSignature()(Code)
the security signature for ejbTimeout method.



getEnv
public Hashtable getEnv()(Code)
A Hashtable containing the JNDI Environment



getInitialContext
public InitialContext getInitialContext()(Code)
the InitialContext



getMaxCacheSize
public int getMaxCacheSize()(Code)
max cache size for Jmx



getMinPoolSize
public int getMinPoolSize()(Code)
min pool size for Jmx



getPassivationDir
public File getPassivationDir()(Code)
Get the directory where to store stateful state and timers



getPoolSize
abstract public int getPoolSize()(Code)
the Instance pool size for this Ejb



getTimerService
abstract public TimerService getTimerService()(Code)
the TimerService for this bean.This works only for stateless or message driven beans.



getTimerTxAttribute
public int getTimerTxAttribute()(Code)
the transaction attribute for ejbTimeout method



getTransactionManager
public TransactionManager getTransactionManager()(Code)
the TransactionManager



getWorkManager
public WorkManager getWorkManager()(Code)
Return the WorkManager



init
public void init(BeanDesc dd, JContainer cont)(Code)
Init this object
Parameters:
  dd - the deployment descriptor
Parameters:
  cont - the Container



initInstancePool
abstract public void initInstancePool()(Code)
Init the pool of instances. Not used for stateful beans



isClassAvailable
protected boolean isClassAvailable(String className, boolean unique)(Code)
Assess availability of a class in a given class loader
Parameters:
  className - the name of the class without the .class extension
Parameters:
  unique - flag indicating if the class should be found only once inthe classloader True if class is available in the current class loader.



isStopped
public boolean isStopped()(Code)



isTxBeanManaged
public boolean isTxBeanManaged()(Code)
true if transactions are managed inside the bean false iftransactions are managed by the container



myClassLoader
public ClassLoader myClassLoader()(Code)
the classloader for this container.



postInvoke
public void postInvoke(RequestCtx rctx)(Code)
Common postInvoke
Parameters:
  rctx - The RequestCtx that was returned at preInvoke()
throws:
  EJBException -



postInvokeRemote
public void postInvokeRemote(RequestCtx rctx) throws RemoteException(Code)
postInvoke for Remote access
Parameters:
  rctx - The RequestCtx that was returne t preInvoke()
throws:
  TransactionRequiredException -
throws:
  TransactionRolledbackException -
throws:
  NoSuchObjectException -
throws:
  RemoteException - postinvoke failed



preInvoke
public RequestCtx preInvoke(int txa)(Code)
Common preInvoke
Parameters:
  txa - Transaction Attribute (Supports, Required, ...) A RequestCtx object
throws:
  EJBException -



preInvokeRemote
public RequestCtx preInvokeRemote(int txa) throws RemoteException(Code)
preInvoke for Remote access
Parameters:
  txa - Transaction Attribute (Supports, Required, ...) A RequestCtx object
throws:
  java.rmi.TransactionRequiredException -
throws:
  java.rmi.TransactionRolledbackException -
throws:
  java.rmi.NoSuchObjectException -
throws:
  RemoteException - preinvoke raised an EJBException



resetComponentContext
public void resetComponentContext(Context oldctx)(Code)
reset old Component Context for JNDI environment
Parameters:
  oldctx - previous Component Context to restore.



restartTimers
public void restartTimers()(Code)
Restart Timers



setComponentContext
public Context setComponentContext()(Code)
set the Component Context for JNDI environment previous Context



stopContainer
public void stopContainer()(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.