Source Code Cross Referenced for InterceptorStackConfig.java in  » J2EE » webwork-2.2.6 » com » opensymphony » xwork » config » entities » 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 » webwork 2.2.6 » com.opensymphony.xwork.config.entities 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright (c) 2002-2007 by OpenSymphony
003:         * All rights reserved.
004:         */
005:        package com.opensymphony.xwork.config.entities;
006:
007:        import java.util.ArrayList;
008:        import java.util.Collection;
009:        import java.util.List;
010:        import java.io.Serializable;
011:
012:        import com.opensymphony.xwork.util.location.Located;
013:
014:        /**
015:         * Configuration for InterceptorStack.
016:         * <p/>
017:         * In the xml configuration file this is defined as the <code>interceptor-stack</code> tag.
018:         *
019:         * @author Mike
020:         * @author Rainer Hermanns
021:         * @author tmjee
022:         * 
023:         * @version $Date: 2007-05-20 19:57:53 +0200 (Sun, 20 May 2007) $ $Id: InterceptorStackConfig.java 1515 2007-05-20 17:57:53Z tm_jee $
024:         */
025:        public class InterceptorStackConfig extends Located implements 
026:                InterceptorListHolder, Serializable {
027:
028:            private static final long serialVersionUID = 2897260918170270343L;
029:
030:            private List interceptors; // a list of InterceptorMapping object
031:            private String name;
032:
033:            /**
034:             * Creates an InterceptorStackConfig object.
035:             */
036:            public InterceptorStackConfig() {
037:                this .interceptors = new ArrayList();
038:            }
039:
040:            /**
041:             * Creates an InterceptorStackConfig object with a particular <code>name</code>.
042:             * @param name
043:             */
044:            public InterceptorStackConfig(String name) {
045:                this ();
046:                this .name = name;
047:            }
048:
049:            /**
050:             * Returns a <code>Collection</code> of InterceptorMapping objects.
051:             * @return
052:             */
053:            public Collection getInterceptors() {
054:                return interceptors;
055:            }
056:
057:            /**
058:             * Set the name of this interceptor stack configuration.
059:             * @param name
060:             */
061:            public void setName(String name) {
062:                this .name = name;
063:            }
064:
065:            /**
066:             * Get the name of this interceptor stack configuration.
067:             * @return String
068:             */
069:            public String getName() {
070:                return name;
071:            }
072:
073:            /**
074:             * Add an <code>InterceptorMapping</code> object.
075:             */
076:            public void addInterceptor(InterceptorMapping interceptor) {
077:                this .interceptors.add(interceptor);
078:            }
079:
080:            /**
081:             * Add a List of <code>InterceptorMapping</code> objects.
082:             */
083:            public void addInterceptors(List interceptors) {
084:                this .interceptors.addAll(interceptors);
085:            }
086:
087:            /**
088:             * An InterceptorStackConfig object is equals with <code>o</code> only if
089:             * <ul>
090:             *  <li>o is an InterceptorStackConfig object</li>
091:             *  <li>both names are equals</li>
092:             *  <li>all of their <code>InterceptorMapping</code>s are equals</li>
093:             * </ul>
094:             */
095:            public boolean equals(Object o) {
096:                if (this  == o) {
097:                    return true;
098:                }
099:
100:                if (!(o instanceof  InterceptorStackConfig)) {
101:                    return false;
102:                }
103:
104:                final InterceptorStackConfig interceptorStackConfig = (InterceptorStackConfig) o;
105:
106:                if ((interceptors != null) ? (!interceptors
107:                        .equals(interceptorStackConfig.interceptors))
108:                        : (interceptorStackConfig.interceptors != null)) {
109:                    return false;
110:                }
111:
112:                if ((name != null) ? (!name.equals(interceptorStackConfig.name))
113:                        : (interceptorStackConfig.name != null)) {
114:                    return false;
115:                }
116:
117:                return true;
118:            }
119:
120:            /**
121:             * Generate hashcode based on <code>InterceptorStackConfig</code>'s name and its 
122:             * <code>InterceptorMapping</code>s.
123:             */
124:            public int hashCode() {
125:                int result;
126:                result = ((name != null) ? name.hashCode() : 0);
127:                result = (29 * result)
128:                        + ((interceptors != null) ? interceptors.hashCode() : 0);
129:
130:                return result;
131:            }
132:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.