|
||||||||||
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
getServerID
method.
Method Summary | |
---|---|
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. |
boolean |
ensureConfigurationReady()
Ensure configuration is ready to respond to any editing to the module. |
void |
ensureResourceDefinedForEjb(String ejbname,
String ejbtype)
Ensure needed resources are automatically defined for the entity represented by given DDBean. |
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. |
String |
getWebContextRoot()
|
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 |
setWebContextRoot(String contextRoot)
Set/get web module context root. |
Method Detail |
---|
boolean createInitialConfiguration()
boolean ensureConfigurationReady()
void setWebContextRoot(String contextRoot)
String getWebContextRoot()
String[] getDeploymentConfigurationFileNames()
String getContentRelativePath(String deploymentConfigurationFileName)
deploymentConfigurationFileName
- server specific descriptor file name
void setCMPMappingInfo(OriginalCMPMapping[] mappings)
void ensureResourceDefinedForEjb(String ejbname, String ejbtype)
ejbname
- the ejb nameejbtype
- dtd name for type of ejb: 'message-drive', 'entity', 'session'.boolean isDatasourceCreationSupported()
Set<Datasource> getDatasources()
Datasource createDatasource(String jndiName, String url, String username, String password, String driver) throws javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException, DatasourceAlreadyExistsException
jndiName
- name of data sourceurl
- database URLusername
- database userpassword
- user's passworddriver
- fully qualified name of database driver class
javax.enterprise.deploy.spi.exceptions.OperationUnsupportedException
- if operation is not supported
DatasourceAlreadyExistsException
- if conflicting data source is found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |