Java Doc for JbpmConfiguration.java in  » Workflow-Engines » jbpm-jpdl-3.2.2 » org » jbpm » 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 » Workflow Engines » jbpm jpdl 3.2.2 » org.jbpm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jbpm.JbpmConfiguration

JbpmConfiguration
public class JbpmConfiguration implements Serializable(Code)
configuration of one jBPM instance.

During process execution, jBPM might need to use some services. A JbpmConfiguration contains the knowledge on how to create those services.

A JbpmConfiguration is a thread safe object and serves as a factory for org.jbpm.JbpmContext s, which means one JbpmConfiguration can be used to create org.jbpm.JbpmContext s for all threads. The single JbpmConfiguration can be maintained in a static member or in the JNDI tree if that is available.

A JbpmConfiguration can be obtained in following ways:

  • from a resource (by default jbpm.cfg.xml is used):
     JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
     
    or
     String myXmlResource = "...";
     JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance(myXmlResource);
  • from an XML string:
     JbpmConfiguration jbpmConfiguration = JbpmConfiguration.parseXmlString(
     "" +
     ...
     ""
     );
     
  • By specifying a custom implementation of an object factory. This can be used to specify a JbpmConfiguration in other bean-style notations such as used by JBoss Microcontainer or Spring.
     ObjectFactory of = new MyCustomObjectFactory();
     JbpmConfiguration.Configs.setDefaultObjectFactory(of);
     JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
     

JbpmConfigurations can be configured using a spring-like XML notation (in relax ng compact notation):

 datatypes xs = "http://www.w3.org/2001/XMLSchema-datatypes"
 start = element beans { element object* }
 object = {
 jbpm-context |
 bean |
 ref |
 map |
 list |
 string |
 int |
 long |
 float |
 double |
 char |
 bool |
 true |
 false |
 null
 }
 jbpm-context = element jbpm-context {
 ( attribute name {xsd:string},
 service*,
 save-operations? 
 )
 }
 service = element service {
 ( attribute name {xsd:string},
 ( attribute factory {xsd:string} ) |
 ( factory )
 )
 }
 factory = element factory {
 ( bean |
 ref
 )
 }
 save-operations = element save-operations {
 ( save-operation* )
 }
 save-operation = element save-operation {
 ( ( attribute class {xsd:string} ) |
 ( bean |
 ref
 ) 
 )
 }
 bean = element bean {
 ( attribute ref-name {xsd:string} ) |
 ( attribute name {xsd:string}?,
 attribute class {xsd:string}?,
 attribute singleton { "true" | "false" }?,
 constructor*,
 field*,
 property*
 )
 }
 ref = element ref {
 ( attribute bean (xsd:string) )
 }
 constructor = element constructor {
 attribute class {xsd:string}?,
 ( attribute factory {xsd:string}, 
 attribute method {xsd:string}
 )?,
 parameter*
 }
 parameter = element parameter {
 attribute class {xsd:string},
 object
 }
 field = element field {
 attribute name {xsd:string},
 object
 }
 property = element property {
 ( attribute name {xsd:string} |
 attribute setter {xsd:string}
 ),
 object
 }
 map = element map {
 entry*
 }
 entry = element entry { 
 key, 
 value 
 }
 key = element key {
 object
 }
 value = element value {
 object
 }
 list = element list {
 object*
 }
 string = element string {xsd:string}
 int    = element integer {xsd:integer}
 long   = element long {xsd:long}
 float  = element float {xsd:string}
 double = element string {xsd:double}
 char   = element char {xsd:character}
 bool   = element bool { "true" | "false" }
 true   = element true {}
 false  = element false {}
 null   = element null {}
 

Other configuration properties
jbpm.files.dir
jbpm.types


Inner Class :abstract public static class Configs

Field Summary
static  ObjectFactorydefaultObjectFactory
    
static  Mapinstances
    
static  ThreadLocaljbpmConfigurationsStacks
    
 ThreadLocaljbpmContextStacks
    
 JobExecutorjobExecutor
    
 ObjectFactoryobjectFactory
    

Constructor Summary
public  JbpmConfiguration(ObjectFactory objectFactory)
    

Method Summary
public  voidclose()
    
public  voidclose(String jbpmContextName)
    
protected static  JbpmConfigurationcreateJbpmConfiguration(ObjectFactory objectFactory)
    
public  JbpmContextcreateJbpmContext()
    
public  JbpmContextcreateJbpmContext(String name)
    
public  voidcreateSchema()
    
public  voidcreateSchema(String jbpmContextName)
    
public  voiddropSchema()
    
public  voiddropSchema(String jbpmContextName)
    
static  JbpmConfigurationgetCurrentJbpmConfiguration()
    
public  JbpmContextgetCurrentJbpmContext()
    
public static  JbpmConfigurationgetInstance()
    
public static  JbpmConfigurationgetInstance(String resource)
    
static synchronized  StackgetJbpmConfigurationStack()
    
 StackgetJbpmContextStack()
    
public synchronized  JobExecutorgetJobExecutor()
    
public  ServiceFactorygetServiceFactory(String serviceName)
    
public  ServiceFactorygetServiceFactory(String serviceName, String jbpmContextName)
    
public static  booleanhasInstance(String resource)
    
 voidjbpmContextClosed(JbpmContext jbpmContext)
    
 voidjbpmContextCreated(JbpmContext jbpmContext)
    
public static  JbpmConfigurationparseInputStream(InputStream inputStream)
    
protected static  ObjectFactoryparseObjectFactory(InputStream inputStream)
    
public static  JbpmConfigurationparseResource(String resource)
    
public static  JbpmConfigurationparseXmlString(String xml)
     create an ObjectFacotory from an XML string.
synchronized  voidpopJbpmConfiguration()
    
 voidpopJbpmContext(JbpmContext jbpmContext)
    
synchronized  voidpushJbpmConfiguration()
    
 voidpushJbpmContext(JbpmContext jbpmContext)
    
static  voidreset()
     resets static members for test isolation.
public  voidstartJobExecutor()
    

Field Detail
defaultObjectFactory
static ObjectFactory defaultObjectFactory(Code)



instances
static Map instances(Code)



jbpmConfigurationsStacks
static ThreadLocal jbpmConfigurationsStacks(Code)



jbpmContextStacks
ThreadLocal jbpmContextStacks(Code)



jobExecutor
JobExecutor jobExecutor(Code)



objectFactory
ObjectFactory objectFactory(Code)




Constructor Detail
JbpmConfiguration
public JbpmConfiguration(ObjectFactory objectFactory)(Code)




Method Detail
close
public void close()(Code)



close
public void close(String jbpmContextName)(Code)



createJbpmConfiguration
protected static JbpmConfiguration createJbpmConfiguration(ObjectFactory objectFactory)(Code)



createJbpmContext
public JbpmContext createJbpmContext()(Code)



createJbpmContext
public JbpmContext createJbpmContext(String name)(Code)



createSchema
public void createSchema()(Code)



createSchema
public void createSchema(String jbpmContextName)(Code)



dropSchema
public void dropSchema()(Code)



dropSchema
public void dropSchema(String jbpmContextName)(Code)



getCurrentJbpmConfiguration
static JbpmConfiguration getCurrentJbpmConfiguration()(Code)



getCurrentJbpmContext
public JbpmContext getCurrentJbpmContext()(Code)



getInstance
public static JbpmConfiguration getInstance()(Code)



getInstance
public static JbpmConfiguration getInstance(String resource)(Code)



getJbpmConfigurationStack
static synchronized Stack getJbpmConfigurationStack()(Code)



getJbpmContextStack
Stack getJbpmContextStack()(Code)



getJobExecutor
public synchronized JobExecutor getJobExecutor()(Code)



getServiceFactory
public ServiceFactory getServiceFactory(String serviceName)(Code)



getServiceFactory
public ServiceFactory getServiceFactory(String serviceName, String jbpmContextName)(Code)



hasInstance
public static boolean hasInstance(String resource)(Code)



jbpmContextClosed
void jbpmContextClosed(JbpmContext jbpmContext)(Code)



jbpmContextCreated
void jbpmContextCreated(JbpmContext jbpmContext)(Code)



parseInputStream
public static JbpmConfiguration parseInputStream(InputStream inputStream)(Code)



parseObjectFactory
protected static ObjectFactory parseObjectFactory(InputStream inputStream)(Code)



parseResource
public static JbpmConfiguration parseResource(String resource)(Code)



parseXmlString
public static JbpmConfiguration parseXmlString(String xml)(Code)
create an ObjectFacotory from an XML string.



popJbpmConfiguration
synchronized void popJbpmConfiguration()(Code)



popJbpmContext
void popJbpmContext(JbpmContext jbpmContext)(Code)



pushJbpmConfiguration
synchronized void pushJbpmConfiguration()(Code)



pushJbpmContext
void pushJbpmContext(JbpmContext jbpmContext)(Code)



reset
static void reset()(Code)
resets static members for test isolation.



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