Java Doc for EngineFactory.java in  » Workflow-Engines » Dalma » dalma » 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 » Dalma » dalma 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   dalma.EngineFactory

EngineFactory
public class EngineFactory (Code)
Factory for Engine .

This class is mostly useful when you are configuring Engine from IoC containers such as Spring. When you are creating an Engine programatically, consider using EngineFactory.newEngine(File,ClassLoader,Executor) directly.
author:
   Kohsuke Kawaguchi




Constructor Summary
public  EngineFactory()
     Creates a new uninitialized EngineFactory .

Method Summary
public  voidaddEndPoint(EndPoint ep)
     Adds a new EndPoint to the engine.
public static  EnginenewEngine(File rootDir, ClassLoader classLoader, Executor executor)
     Creates or loads a new Engine with a single invocation.
public static  EnginenewEngine(File rootDir, Executor executor)
     Creates or loads a new Engine with a single invocation.
public static  EnginenewEngine(String packagePrefix)
     The easiest way to create a new Engine .

This method creates a new Engine with the following configuration.

  1. "./dalma" directory is used to store the data.
  2. the conversation programs are assumed to be in the specified package name.
public  EnginenewInstance()
     Creates a new Engine based on the current configuration.
public  voidsetClassLoader(ClassLoader classLoader)
    
public  voidsetEndPointURLs(Map<String, String> endPoints)
     Creates EndPoint s from endpoint URLs and adds them to the engine when it's created.
public  voidsetEndPoints(Collection<? extends EndPoint> endPoints)
     Adds multiple EndPoint s from the given list.

Note that this method copies the values from the collection but not the collection itself.

public  voidsetExecutor(Executor executor)
     Sets the thread pool that executes the conversations.
public  voidsetRootDir(File rootDir)
     Sets the directory to be used for persisting the state of conversations.
Parameters:
  rootDir - must not be null.


Constructor Detail
EngineFactory
public EngineFactory()(Code)
Creates a new uninitialized EngineFactory .




Method Detail
addEndPoint
public void addEndPoint(EndPoint ep)(Code)
Adds a new EndPoint to the engine.
throws:
  IllegalArgumentException - if there's already an EndPoint that has the same name.



newEngine
public static Engine newEngine(File rootDir, ClassLoader classLoader, Executor executor) throws IOException(Code)
Creates or loads a new Engine with a single invocation.
Parameters:
  rootDir - see EngineFactory.setRootDir(File)
Parameters:
  classLoader - see EngineFactory.setClassLoader(ClassLoader)
Parameters:
  executor - see EngineFactory.setExecutor(Executor)



newEngine
public static Engine newEngine(File rootDir, Executor executor) throws IOException(Code)
Creates or loads a new Engine with a single invocation.

This method is a convenient version of EngineFactory.newEngine(File,ClassLoader,Executor) that uses the current thread's context class loader.
Parameters:
  rootDir - see EngineFactory.setRootDir(File)
Parameters:
  executor - see EngineFactory.setExecutor(Executor)




newEngine
public static Engine newEngine(String packagePrefix) throws IOException(Code)
The easiest way to create a new Engine .

This method creates a new Engine with the following configuration.

  1. "./dalma" directory is used to store the data.
  2. the conversation programs are assumed to be in the specified package name. A new ClassLoader is created to load classes in this package with necessary bytecode instrumentation.
  3. If you are running in JRE 5.0 or later, Executors.newCachedThreadPool is used to run conversions. If you are running in earlier versions of JRE, then a single worker thread is used to run conversations.
    Parameters:
      packagePrefix - String like "org.acme.foo." See ParallelInstrumentingClassLoader.ParallelInstrumentingClassLoader(ClassLoaderString)for details.



newInstance
public Engine newInstance() throws IOException(Code)
Creates a new Engine based on the current configuration.
throws:
  IOException - if the engine failed to set up the files for persistence,or fails to read from the existing persisted conversations.



setClassLoader
public void setClassLoader(ClassLoader classLoader)(Code)



setEndPointURLs
public void setEndPointURLs(Map<String, String> endPoints)(Code)
Creates EndPoint s from endpoint URLs and adds them to the engine when it's created.
Parameters:
  endPoints - Keys are endpoint names, and values are endpoint URLs.



setEndPoints
public void setEndPoints(Collection<? extends EndPoint> endPoints)(Code)
Adds multiple EndPoint s from the given list.

Note that this method copies the values from the collection but not the collection itself. Therefore once the method returns, changes can be made to the collection object that is used for this method invocation and it will not affect the engine.




setExecutor
public void setExecutor(Executor executor)(Code)
Sets the thread pool that executes the conversations.
Parameters:
  executor - must not be null.



setRootDir
public void setRootDir(File rootDir)(Code)
Sets the directory to be used for persisting the state of conversations.
Parameters:
  rootDir - must not be null. This directory must exist.



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.