Source Code Cross Referenced for FlowDefinitionRegistryMBean.java in  » Workflow-Engines » spring-webflow-1.0.4 » org » springframework » webflow » definition » registry » 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 » spring webflow 1.0.4 » org.springframework.webflow.definition.registry 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * Copyright 2004-2007 the original author or authors.
03:         *
04:         * Licensed under the Apache License, Version 2.0 (the "License");
05:         * you may not use this file except in compliance with the License.
06:         * You may obtain a copy of the License at
07:         *
08:         *      http://www.apache.org/licenses/LICENSE-2.0
09:         *
10:         * Unless required by applicable law or agreed to in writing, software
11:         * distributed under the License is distributed on an "AS IS" BASIS,
12:         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13:         * See the License for the specific language governing permissions and
14:         * limitations under the License.
15:         */
16:        package org.springframework.webflow.definition.registry;
17:
18:        /**
19:         * A management interface for managing flow definition registries at runtime.
20:         * Provides the ability to query the size and state of the registry, as well as
21:         * refresh registered flow definitions at runtime.
22:         * <p>
23:         * Flow registries that implement this interface may be exposed for management
24:         * over the JMX protocol. The following is an example of using Spring's JMX
25:         * <code>MBeanExporter</code> to export a flow registry to an MBeanServer:
26:         * <pre class="code">
27:         *     &lt;!-- Creates the registry of flow definitions for this application --&gt;
28:         *     &lt;bean name=&quot;flowRegistry&quot; class=&quot;org.springframework.webflow...XmlFlowRegistryFactoryBean&quot;&gt;
29:         *         &lt;property name=&quot;locations&quot; value=&quot;/WEB-INF/flow1.xml&quot;/&gt;
30:         *     &lt;/bean&gt;
31:         *  
32:         *     &lt;!-- Automatically exports the created flowRegistry as an MBean --&gt;
33:         *     &lt;bean id=&quot;mbeanExporter&quot; class=&quot;org.springframework.jmx.export.MBeanExporter&quot;&gt;
34:         *         &lt;property name=&quot;beans&quot;&gt;
35:         *             &lt;map&gt;
36:         *                 &lt;entry key=&quot;spring-webflow:name=flowRegistry&quot; value-ref=&quot;flowRegistry&quot;/&gt;
37:         *             &lt;/map&gt;
38:         *         &lt;/property&gt;
39:         *         &lt;property name=&quot;assembler&quot;&gt;
40:         *             &lt;bean class=&quot;org.springframework.jmx.export.assembler.InterfaceBasedMBeanInfoAssembler&quot;&gt;
41:         *                 &lt;property name=&quot;managedInterfaces&quot;
42:         *                     value=&quot;org.springframework.webflow.definition.registry.FlowDefinitionRegistryMBean&quot;/&gt;
43:         *             &lt;/bean&gt;
44:         *         &lt;/property&gt;
45:         *     &lt;/bean&gt;
46:         * </pre>
47:         * With the above configuration, you may then use any JMX client (such as Sun's
48:         * jConsole which ships with JDK 1.5) to refresh flow definitions at runtime.
49:         * 
50:         * @author Keith Donald
51:         */
52:        public interface FlowDefinitionRegistryMBean {
53:
54:            /**
55:             * Returns the ids of the flow definitions registered in this registry.
56:             * @return the flow definition ids
57:             */
58:            public String[] getFlowDefinitionIds();
59:
60:            /**
61:             * Return the number of flow definitions registered in this registry.
62:             * @return the flow definition count
63:             */
64:            public int getFlowDefinitionCount();
65:
66:            /**
67:             * Queries this registry to determine if a specific flow is contained within
68:             * it.
69:             * @param id the flow definition id
70:             * @return true if a flow definition is contained in this registry with the
71:             * id provided
72:             */
73:            public boolean containsFlowDefinition(String id);
74:
75:            /**
76:             * Refresh this flow definition registry, reloading all Flow definitions
77:             * from their externalized representations.
78:             */
79:            public void refresh() throws FlowDefinitionConstructionException;
80:
81:            /**
82:             * Refresh the Flow definition in this registry with the <code>id</code>
83:             * provided, reloading it from it's externalized representation.
84:             * @param flowDefinitionId the id of the flow definition to refresh
85:             * @throws NoSuchFlowDefinitionException if a flow with the id provided is not
86:             * stored in this registry
87:             */
88:            public void refresh(String flowDefinitionId)
89:                    throws NoSuchFlowDefinitionException,
90:                    FlowDefinitionConstructionException;
91:
92:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.