Source Code Cross Referenced for Source.java in  » Web-Server » simple » simple » page » translate » 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 » Web Server » simple » simple.page.translate 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Source.java February 2006
003:         *
004:         * Copyright (C) 2006, Niall Gallagher <niallg@users.sf.net>
005:         *
006:         * This library is free software; you can redistribute it and/or
007:         * modify it under the terms of the GNU Lesser General Public
008:         * License as published by the Free Software Foundation.
009:         *
010:         * This library is distributed in the hope that it will be useful,
011:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
012:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
013:         * GNU Lesser General Public License for more details.
014:         *
015:         * You should have received a copy of the GNU Lesser General 
016:         * Public License along with this library; if not, write to the 
017:         * Free Software Foundation, Inc., 59 Temple Place, Suite 330, 
018:         * Boston, MA  02111-1307  USA
019:         */
020:
021:        package simple.page.translate;
022:
023:        import java.io.File;
024:
025:        /**
026:         * The <code>Source</code> object is used to describe a translated JSP
027:         * page. It contains information such as the language th JSP has been
028:         * written in, for example Java or Groovy, as well as a description of
029:         * the object and package that will result from compilation. Of core
030:         * importance is the <code>Reference</code> object provided. This
031:         * allows the JSP engine to determine when a JSP needs recompilation.
032:         * 
033:         * @author Niall Gallagher
034:         *
035:         * @see simple.page.translate.Reference
036:         */
037:        public interface Source {
038:
039:            /**
040:             * The language property is used to specify the type of source that
041:             * is to be generated and the compiler required to process that
042:             * source. The language property is specified within the JSP page
043:             * using the "page" directives "language" attribute. 
044:             *
045:             * @return this returns the language, for example Groovy or Java
046:             */
047:            public String getLanguage();
048:
049:            /**
050:             * The provides the name of the resulting object. This is used by
051:             * the code generator to determine the correct class name and
052:             * constructor to use, and may be used by the source compiler.
053:             *
054:             * @return this returns the name of the source object generated
055:             */
056:            public String getName();
057:
058:            /**
059:             * Provides the fully qualified package name for the resulting
060:             * object. This is required by the compiler, so that once the
061:             * generated source has been compiled it can later be loaded as a
062:             * class by the compiler class loader and instantiated. 
063:             *
064:             * @return this returns the fully qualified class name targeted
065:             */
066:            public String getTarget();
067:
068:            /**
069:             * This is used by the source code generator to determine the
070:             * package the target object is using. This ensures that a correct
071:             * name space is given to each source, which avoids collisions.
072:             *
073:             * @return this returns the package name for the source object
074:             */
075:            public String getPackage();
076:
077:            /**
078:             * This acquires the directory the source object is generated into.
079:             * This allows the generator to create the appropriate directory,
080:             * before generating the resulting Java or Groovy object into that
081:             * directory before compilation can proceed. 
082:             *
083:             * @return the directory to generate the source object into
084:             */
085:            public File getDirectory();
086:
087:            /**
088:             * Provides the OS file system reference for the source file. This
089:             * can be used to acquire a file system location using the provided
090:             * project <code>Workspace</code>. This is used by the source
091:             * generator to determine where the resulting source is written to.
092:             *
093:             * @return this returns the file system path for the source
094:             */
095:            public File getSource();
096:
097:            /**
098:             * This provides a key component for the JSP engine, which is used
099:             * to determine when a JSP page or its includes have expired. This
100:             * allows background compilation, and ensures that pages can be
101:             * edited and deployed without restarting the server.
102:             *
103:             * @return this returns a monitor to the referenced JSP sources
104:             */
105:            public Reference getReference();
106:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.