Java Doc for WebFrameworkProvider.java in  » IDE-Netbeans » api » org » netbeans » modules » web » spi » webmodule » 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 » IDE Netbeans » api » org.netbeans.modules.web.spi.webmodule 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.web.spi.webmodule.WebFrameworkProvider

WebFrameworkProvider
abstract public class WebFrameworkProvider (Code)
Encapsulates a web framework.

This class allows providing support for web frameworks. It can be used to extend a web module with a web framework, to find out whether a web module is already extender by a web framework, or to retrieve a web framework's specific configuration files.

Instances of this class are registered in the j2ee/webtier/framework in the module layer.


author:
   Petr Pisl, Andrei Badea



Constructor Summary
public  WebFrameworkProvider(String name, String description)
     Creates a new web framework with a name and description.

Method Summary
public  WebModuleExtendercreateWebModuleExtender(WebModule wm, ExtenderController controller)
     Creates a WebModuleExtender web module extender for this framework and the given web module.
public  Setextend(WebModule wm)
     Extends a web module with this web frameworks.
abstract public  File[]getConfigurationFiles(WebModule wm)
     Returns the configuration files belonging to this framework.
Parameters:
  wm - the web module for which the configuration files are returned; never null.
public  FrameworkConfigurationPanelgetConfigurationPanel(WebModule wm)
     Returns a configuration panel for this web framework.
public  StringgetDescription()
     Returns the description of this web framework.
public  StringgetName()
     Returns the name of this web framework.
public  StringgetServletPath(FileObject file)
     Returns the path of the request URL to a given file . This path starts with a "/" character and includes either the servlet name or a path to the servlet/JSP.
abstract public  booleanisInWebModule(WebModule wm)
     Finds out if a given web module has already been extended with this framework.
Parameters:
  wm - the web module; never null.


Constructor Detail
WebFrameworkProvider
public WebFrameworkProvider(String name, String description)(Code)
Creates a new web framework with a name and description.
Parameters:
  name - the short name of this web framework (e.g., "Struts"); never null.
Parameters:
  description - the description of this web framework (e.g., "An open source framework based on the MVC pattern"); can be null.
throws:
  NullPointerException - if the name parameter is null.




Method Detail
createWebModuleExtender
public WebModuleExtender createWebModuleExtender(WebModule wm, ExtenderController controller)(Code)
Creates a WebModuleExtender web module extender for this framework and the given web module. This method needs to be implemented instead of the deprecated WebFrameworkProvider.extend and WebFrameworkProvider.getConfigurationPanel methods. It needs to be implemented even if this web framework doesn't support extending a web module (it would just return null in this case).
Parameters:
  wm - the web module to be extended; can be null, e.g., if themethod is called while creating a new web application, in whichcase the module doesn't exist yet.
Parameters:
  controller - an instance of ExtenderController allowing thenewly created extender to communicate with its environment. See theExtenderController for details. Never null. a new web module extender; can be null if the framework doesn't supportextending (either web modules in general of the particular web modulepassed in the wm parameter.



extend
public Set extend(WebModule wm)(Code)
Extends a web module with this web frameworks. For example it might be called in order to add the web framework to a newly created web application or in order to add the web framework to an existing application.
Parameters:
  wm - the org.netbeans.modules.web.api.webmodule.WebModule to be extended; never null. the list of new files created in the web module as the resultof extending it with this framework; never null.WebFrameworkProvider.createWebModuleExtender createWebModuleExtender



getConfigurationFiles
abstract public File[] getConfigurationFiles(WebModule wm)(Code)
Returns the configuration files belonging to this framework.
Parameters:
  wm - the web module for which the configuration files are returned; never null. an array containing the configuration files; never null.



getConfigurationPanel
public FrameworkConfigurationPanel getConfigurationPanel(WebModule wm)(Code)
Returns a configuration panel for this web framework. The panel is used to allow the user configure the way the web module will be extended. The configuration panel might be displayed to the user when creating a new web application or when editing the properties of an existing application.
Parameters:
  wm - the web module to be configured. a configuration panel for this web framework.WebFrameworkProvider.createWebModuleExtender createWebModuleExtender



getDescription
public String getDescription()(Code)
Returns the description of this web framework. Defaults to the name if a null description parameter was passed to the constructor. the description; never null.



getName
public String getName()(Code)
Returns the name of this web framework. the name; never null.



getServletPath
public String getServletPath(FileObject file)(Code)
Returns the path of the request URL to a given file . This path starts with a "/" character and includes either the servlet name or a path to the servlet/JSP. Includes the servlet mapping, but does not include any extra path information or a query string. The method can return null.

JSF Example: consider an index.jsp file in the document base. Normaly the URL for accessing this page in browser should be http://server:port/contextpath/index.jsp. The servlet path is /index.jsp.

However, because the index.jsp file includes JSF tags, its URL should include the appropriate JSF servlet mapping. If the mapping is /faces/*, then the URL is http://server:port/contextpath/faces/index.jsp and this method should return /faces/index.jsp.


Parameters:
  file - an arbitrary FileObject, usually a JSP file; never null. a string that contains the servlet path including the mapping; can be null.



isInWebModule
abstract public boolean isInWebModule(WebModule wm)(Code)
Finds out if a given web module has already been extended with this framework.
Parameters:
  wm - the web module; never null. true if the web module has already been extended with this framework, false otherwise.



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.