Java Doc for J2eeModuleProvider.java in  » 6.0-JDK-Core » j2eeserver » org » netbeans » modules » j2ee » deployment » devmodules » spi » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
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
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » j2eeserver » org.netbeans.modules.j2ee.deployment.devmodules.spi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.j2ee.deployment.devmodules.spi.J2eeModuleProvider

All known Subclasses:   org.netbeans.modules.j2ee.deployment.devmodules.spi.J2eeApplicationProvider,  org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl,
J2eeModuleProvider
abstract public class J2eeModuleProvider (Code)
This object must be implemented by J2EE module support and an instance added into project lookup.
author:
   Pavel Buzek

Inner Class :public static interface ConfigSupport

Field Summary
final  Listlisteners
    

Constructor Summary
public  J2eeModuleProvider()
    

Method Summary
final public  voidaddConfigurationFilesListener(ConfigurationFilesListener l)
    
final public  voidaddInstanceListener(InstanceListener l)
     Register an instance listener that will listen to server instances changes.
final public  DatasourcecreateDatasource(String jndiName, String url, String username, String password, String driver)
     Creates and saves data source in the module if it does not exist yet on the target server or in the module.
public  voiddeployDatasources()
     Deploys data sources saved in the module.
final protected  voidfireServerChange(String oldServerID, String newServerID)
    
final public  ConfigSupportgetConfigSupport()
    
final public  FileObject[]getConfigurationFiles()
     Returns all configuration files known to this J2EE Module.
final public  FileObject[]getConfigurationFiles(boolean refresh)
    
public  StringgetDeploymentName()
     Return name to be used in deployment of the module.
public  InstancePropertiesgetInstanceProperties()
    
abstract public  J2eeModulegetJ2eeModule()
    
abstract public  ModuleChangeReportergetModuleChangeReporter()
    
public  Set<Datasource>getModuleDatasources()
     Gets the data sources saved in the module.
public  Set<Datasource>getServerDatasources()
     Gets the data sources deployed on the target server instance.
final public  ServerDebugInfogetServerDebugInfo()
     Return server debug info. Note: if server is not running and needs to be up for retrieving debug info, this call will return null.
public  StringgetServerID()
     This method is used to determin type of target server.
public  StringgetServerInstanceID()
     Id of server isntance for deployment.
public  SourceFileMapgetSourceFileMap()
     Return destination path-to-source file mappings.
public  FileObject[]getSourceRoots()
     Returns list of root directories for source files including configuration files. Examples: file objects for src/java, src/conf.
public  booleanhasVerifierSupport()
     Returns true if the current target platform provide verifier support for this module.
public  booleanisDatasourceCreationSupported()
     Tests whether data source creation is supported.
final public  voidremoveConfigurationFilesListener(ConfigurationFilesListener l)
    
final public  voidremoveInstanceListener(InstanceListener l)
     Remove an instance listener which has been registered previously.
abstract public  voidsetServerInstanceID(String severInstanceID)
     Set ID of the server instance that will be used for deployment.
public  booleanuseDefaultServer()
     If the module wants to specify a target server instance for deployment it needs to override this method to return false.
public  voidverify(FileObject target, OutputStream logger)
     Invoke verifier from current platform on the provided target file.
Parameters:
  target - File to run verifier against.
Parameters:
  logger - output stream to write verification resutl to.

Field Detail
listeners
final List listeners(Code)




Constructor Detail
J2eeModuleProvider
public J2eeModuleProvider()(Code)




Method Detail
addConfigurationFilesListener
final public void addConfigurationFilesListener(ConfigurationFilesListener l)(Code)



addInstanceListener
final public void addInstanceListener(InstanceListener l)(Code)
Register an instance listener that will listen to server instances changes.
since:
   1.6



createDatasource
final public Datasource createDatasource(String jndiName, String url, String username, String password, String driver) throws DatasourceAlreadyExistsException, ConfigurationException(Code)
Creates and saves data source in the module if it does not exist yet on the target server or in the module. Data source is considered to be existing when JNDI name of the found data source and the one just created equal.
Parameters:
  jndiName - name of data source
Parameters:
  url - database URL
Parameters:
  username - database user
Parameters:
  password - user's password
Parameters:
  driver - fully qualified name of database driver class created data source
exception:
  DatasourceAlreadyExistsException - if conflicting data source is found
since:
   1.15



deployDatasources
public void deployDatasources() throws ConfigurationException, DatasourceAlreadyExistsException(Code)
Deploys data sources saved in the module.
exception:
  ConfigurationException - if there is some problem with data source configuration
exception:
  DatasourceAlreadyExistsException - if module data source(s) are conflictingwith data source(s) already deployed on the server
since:
   1.15



fireServerChange
final protected void fireServerChange(String oldServerID, String newServerID)(Code)



getConfigSupport
final public ConfigSupport getConfigSupport()(Code)



getConfigurationFiles
final public FileObject[] getConfigurationFiles()(Code)
Returns all configuration files known to this J2EE Module.



getConfigurationFiles
final public FileObject[] getConfigurationFiles(boolean refresh)(Code)



getDeploymentName
public String getDeploymentName()(Code)
Return name to be used in deployment of the module.



getInstanceProperties
public InstanceProperties getInstanceProperties()(Code)
Return InstanceProperties of the server instance



getJ2eeModule
abstract public J2eeModule getJ2eeModule()(Code)



getModuleChangeReporter
abstract public ModuleChangeReporter getModuleChangeReporter()(Code)



getModuleDatasources
public Set<Datasource> getModuleDatasources() throws ConfigurationException(Code)
Gets the data sources saved in the module. set of data sources
throws:
  ConfigurationException - reports problems in retrieving data sourcedefinitions.
since:
   1.15



getServerDatasources
public Set<Datasource> getServerDatasources() throws ConfigurationException(Code)
Gets the data sources deployed on the target server instance. set of data sources
throws:
  ConfigurationException - reports problems in retrieving data sourcedefinitions.
since:
   1.15



getServerDebugInfo
final public ServerDebugInfo getServerDebugInfo()(Code)
Return server debug info. Note: if server is not running and needs to be up for retrieving debug info, this call will return null. This call is also used by UI so it should not try to ping or start the server.



getServerID
public String getServerID()(Code)
This method is used to determin type of target server. The return value must correspond to value returned from getServerInstanceID .



getServerInstanceID
public String getServerInstanceID()(Code)
Id of server isntance for deployment. The default implementation returns the default server instance selected in Server Registry. The return value may not be null. If modules override this method they also need to override useDefaultServer .



getSourceFileMap
public SourceFileMap getSourceFileMap()(Code)
Return destination path-to-source file mappings. Default returns config file mapping with straight mapping from the configuration directory to distribution directory.



getSourceRoots
public FileObject[] getSourceRoots()(Code)
Returns list of root directories for source files including configuration files. Examples: file objects for src/java, src/conf. Note: If there is a standard configuration root, it should be the first one in the returned list.



hasVerifierSupport
public boolean hasVerifierSupport()(Code)
Returns true if the current target platform provide verifier support for this module.



isDatasourceCreationSupported
public boolean isDatasourceCreationSupported()(Code)
Tests whether data source creation is supported. true if data source creation is supported, false otherwise.
since:
   1.15



removeConfigurationFilesListener
final public void removeConfigurationFilesListener(ConfigurationFilesListener l)(Code)



removeInstanceListener
final public void removeInstanceListener(InstanceListener l)(Code)
Remove an instance listener which has been registered previously.
since:
   1.6



setServerInstanceID
abstract public void setServerInstanceID(String severInstanceID)(Code)
Set ID of the server instance that will be used for deployment.
Parameters:
  severInstanceID - server instance ID.
since:
   1.6



useDefaultServer
public boolean useDefaultServer()(Code)
If the module wants to specify a target server instance for deployment it needs to override this method to return false.



verify
public void verify(FileObject target, OutputStream logger) throws ValidationException(Code)
Invoke verifier from current platform on the provided target file.
Parameters:
  target - File to run verifier against.
Parameters:
  logger - output stream to write verification resutl to. true



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_._ja_va__2___s.___co_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.