|
org.netbeans.modules.j2eeserver/4 1.55.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface J2eeModuleProvider.ConfigSupport
Configuration support to allow development module code to access well-known
configuration propeties, such as web context root, cmp mapping info...
The setters and getters work with server specific data on the server returned by
J2eeModuleProvider.getServerID() method.
| Method Summary | |
|---|---|
void |
bindDatasourceReference(String referenceName,
String jndiName)
Binds the data source reference name with the corresponding data source which is identified by the given JNDI name. |
void |
bindDatasourceReferenceForEjb(String ejbName,
String ejbType,
String referenceName,
String jndiName)
Binds the data source reference name with the corresponding data source which is identified by the given JNDI name. |
void |
bindEjbReference(String referenceName,
String jndiName)
Binds EJB reference name with EJB name. |
void |
bindEjbReferenceForEjb(String ejbName,
String ejbType,
String referenceName,
String jndiName)
Binds EJB reference name with EJB name within the EJB scope. |
void |
bindMdbToMessageDestination(String mdbName,
String name,
MessageDestination.Type type)
Binds the message destination name with message-driven bean. |
void |
bindMessageDestinationReference(String referenceName,
String connectionFactoryName,
String destName,
MessageDestination.Type type)
Binds the message destination reference name with the corresponding message destination which is identified by the given name. |
void |
bindMessageDestinationReferenceForEjb(String ejbName,
String ejbType,
String referenceName,
String connectionFactoryName,
String destName,
MessageDestination.Type type)
Binds the message destination reference name with the corresponding message destination which is identified by the given name. |
Datasource |
createDatasource(String jndiName,
String url,
String username,
String password,
String driver)
Creates and saves data source in the module if it does not exist yet in the module. |
boolean |
createInitialConfiguration()
Create an initial fresh configuration for the current module. |
MessageDestination |
createMessageDestination(String name,
MessageDestination.Type type)
Creates and saves a message destination in the module if it does not exist in the module yet. |
boolean |
ensureConfigurationReady()
Ensure configuration is ready to respond to any editing to the module. |
Datasource |
findDatasource(String jndiName)
Finds data source with the given JNDI name. |
String |
findDatasourceJndiName(String referenceName)
Finds JNDI name of data source which is mapped to the given reference name of a data source |
String |
findDatasourceJndiNameForEjb(String ejbName,
String referenceName)
Finds JNDI name of data source which is mapped to the given reference name in the scope of the EJB. |
String |
findJndiNameForEjb(String ejbName)
Returns a JNDI name for the given EJB or null if the EJB has
no JNDI name assigned. |
MessageDestination |
findMessageDestination(String name)
Finds message destination with the given name. |
String |
findMessageDestinationName(String mdbName)
Finds name of message destination which the given MDB listens to |
String |
getContentRelativePath(String deploymentConfigurationFileName)
Return relative path within the archive or distribution content for the given server specific deployment descriptor file. |
Set<Datasource> |
getDatasources()
Gets the data sources saved in the module. |
String[] |
getDeploymentConfigurationFileNames()
Return a list of file names for current server specific deployment descriptor used in this module. |
Set<MessageDestination> |
getMessageDestinations()
Retrieves message destinations stored in the module. |
Set<MessageDestination> |
getServerMessageDestinations()
Retrieves message destinations configured on the target server instance. |
String |
getWebContextRoot()
Get web module context root. |
boolean |
isDatasourceCreationSupported()
Tests whether data source creation is supported. |
void |
setCMPMappingInfo(OriginalCMPMapping[] mappings)
Push the CMP and CMR mapping info to the server configuraion. |
void |
setCMPResource(String ejbName,
String jndiName)
Sets the resource for the specified CMP bean. |
void |
setWebContextRoot(String contextRoot)
Set web module context root. |
boolean |
supportsCreateMessageDestination()
Tests whether a message destination creation is supported. |
| Method Detail |
|---|
boolean createInitialConfiguration()
boolean ensureConfigurationReady()
void setWebContextRoot(String contextRoot)
throws ConfigurationException
contextRoot - web module context root.
ConfigurationException - reports errors in setting the web context
root.
String getWebContextRoot()
throws ConfigurationException
ConfigurationException - reports errors in setting the web context
root.String[] getDeploymentConfigurationFileNames()
String getContentRelativePath(String deploymentConfigurationFileName)
deploymentConfigurationFileName - server specific descriptor file name
void setCMPMappingInfo(OriginalCMPMapping[] mappings)
throws ConfigurationException
ConfigurationException - reports errors in setting the CMP mapping.
void setCMPResource(String ejbName,
String jndiName)
throws ConfigurationException
ejbName - name of the CMP bean.jndiName - the JNDI name of the resource.
ConfigurationException - reports errors in setting the CMP resource.
NullPointerException - if any of the parameters is null.boolean isDatasourceCreationSupported()
Set<Datasource> getDatasources()
throws ConfigurationException
ConfigurationException - reports errors in retrieving the data sources.
Datasource createDatasource(String jndiName,
String url,
String username,
String password,
String driver)
throws UnsupportedOperationException,
DatasourceAlreadyExistsException,
ConfigurationException
jndiName - name of data sourceurl - database URLusername - database userpassword - user's passworddriver - fully qualified name of database driver class
UnsupportedOperationException - if operation is not supported
DatasourceAlreadyExistsException - if conflicting data source is found
ConfigurationException - reports errors in creating the data source.
void bindDatasourceReference(String referenceName,
String jndiName)
throws ConfigurationException
referenceName - name used to identify the data sourcejndiName - JNDI name of the data source
NullPointerException - if any of parameters is null
ConfigurationException - if there is some problem with data source configuration
void bindDatasourceReferenceForEjb(String ejbName,
String ejbType,
String referenceName,
String jndiName)
throws ConfigurationException
ejbName - EJB nameejbType - EJB type - the possible values are
org.netbeans.modules.j2ee.dd.api.ejb.EnterpriseBeans.SESSION,
org.netbeans.modules.j2ee.dd.api.ejb.EnterpriseBeans.ENTITY and
org.netbeans.modules.j2ee.dd.api.ejb.EnterpriseBeans.MESSAGE_DRIVENreferenceName - name used to identify the data sourcejndiName - JNDI name of the data source
NullPointerException - if any of parameters is null
ConfigurationException - if there is some problem with data source configuration
IllegalArgumentException - if ejbType doesn't have one of allowed values
String findDatasourceJndiName(String referenceName)
throws ConfigurationException
referenceName - reference name of data source
NullPointerException - if reference name is null
ConfigurationException - if there is some problem with data source configuration
String findDatasourceJndiNameForEjb(String ejbName,
String referenceName)
throws ConfigurationException
ejbName - EJB namereferenceName - reference name of data source
NullPointerException - if any of parameters is null
ConfigurationException - if there is some problem with data source configuration
Datasource findDatasource(String jndiName)
throws ConfigurationException
jndiName - JNDI name of a data source
NullPointerException - if JNDI name is null
ConfigurationException - if there is some problem with data source configuration
Set<MessageDestination> getMessageDestinations()
throws ConfigurationException
ConfigurationException - if there is some problem with message destination configuration
Set<MessageDestination> getServerMessageDestinations()
throws ConfigurationException
ConfigurationException - if there is some problem with message destination configurationboolean supportsCreateMessageDestination()
MessageDestination createMessageDestination(String name,
MessageDestination.Type type)
throws UnsupportedOperationException,
ConfigurationException
name - name of the message destinationtype - message destination type
NullPointerException - if any of parameters is null
UnsupportedOperationException - if this opearation is not supported
ConfigurationException - if there is some problem with message destination configuration
void bindMdbToMessageDestination(String mdbName,
String name,
MessageDestination.Type type)
throws ConfigurationException
mdbName - MDB namename - name of the message destinationtype - message destination type
NullPointerException - if any of parameters is null
ConfigurationException - if there is some problem with message destination configuration
String findMessageDestinationName(String mdbName)
throws ConfigurationException
mdbName - MDB name
NullPointerException - if MDB name is null
ConfigurationException - if there is some problem with message destination configuration
MessageDestination findMessageDestination(String name)
throws ConfigurationException
name - message destination name
NullPointerException - if name is null
ConfigurationException - if there is some problem with message destination configuration
void bindMessageDestinationReference(String referenceName,
String connectionFactoryName,
String destName,
MessageDestination.Type type)
throws ConfigurationException
referenceName - reference name used to identify the message destinationconnectionFactoryName - connection factory namedestName - name of the message destinationtype - message destination type
NullPointerException - if any of parameters is null
ConfigurationException - if there is some problem with message destination configuration
void bindMessageDestinationReferenceForEjb(String ejbName,
String ejbType,
String referenceName,
String connectionFactoryName,
String destName,
MessageDestination.Type type)
throws ConfigurationException
ejbName - EJB nameejbType - EJB type - the possible values are
org.netbeans.modules.j2ee.dd.api.ejb.EnterpriseBeans.SESSION,
org.netbeans.modules.j2ee.dd.api.ejb.EnterpriseBeans.ENTITY and
org.netbeans.modules.j2ee.dd.api.ejb.EnterpriseBeans.MESSAGE_DRIVENreferenceName - reference name used to identify the message destinationconnectionFactoryName - connection factory namedestName - name of the message destinationtype - message destination type
NullPointerException - if any of parameters is null
ConfigurationException - if there is some problem with message destination configuration
IllegalArgumentException - if ejbType doesn't have one of allowed values
String findJndiNameForEjb(String ejbName)
throws ConfigurationException
null if the EJB has
no JNDI name assigned.
ejbName - EJB name
null if the EJB has no
JNDI name assigned.
ConfigurationException - if there is some problem with EJB configuration.
void bindEjbReference(String referenceName,
String jndiName)
throws ConfigurationException
referenceName - name used to identify the EJBjndiName - JNDI name of the referenced EJB
NullPointerException - if any of parameters is null
ConfigurationException - if there is some problem with EJB configuration
void bindEjbReferenceForEjb(String ejbName,
String ejbType,
String referenceName,
String jndiName)
throws ConfigurationException
ejbName - EJB nameejbType - EJB type - the possible values are
org.netbeans.modules.j2ee.dd.api.ejb.EnterpriseBeans.SESSION,
org.netbeans.modules.j2ee.dd.api.ejb.EnterpriseBeans.ENTITY and
org.netbeans.modules.j2ee.dd.api.ejb.EnterpriseBeans.MESSAGE_DRIVENreferenceName - name used to identify the referenced EJBjndiName - JNDI name of the referenced EJB
NullPointerException - if any of parameters is null
ConfigurationException - if there is some problem with EJB configuration
IllegalArgumentException - if ejbType doesn't have one of allowed values
|
org.netbeans.modules.j2eeserver/4 1.55.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||