|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个 CLASS | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.enterprise.deploy.spi.factories Interface DeploymentFactory
public interface DeploymentFactory
The DeploymentFactory interface is a deployment driver for a J2EE plaform product. It returns a DeploymentManager object which represents a connection to a specific J2EE platform product.
Each application server vendor must provide an implementation of this class in order for the J2EE Deployment API to work with their product.
The class implementing this interface should have a public no-argument constructor, and it should be stateless (two instances of the class should always behave the same). It is suggested but not required that the class have a static initializer that registers an instance of the class with the DeploymentFactoryManager class.
A connected or disconnected DeploymentManager can be requested. A DeploymentManager that runs connected to the platform can provide access to J2EE resources. A DeploymentManager that runs disconnected only provides module deployment configuration support.
方法摘要 | |
---|---|
DeploymentManager |
getDeploymentManager(String uri,
String username,
String password)
Return a connected DeploymentManager instance. |
DeploymentManager |
getDisconnectedDeploymentManager(String uri)
Return a disconnected DeploymentManager instance. |
String |
getDisplayName()
Provide a string with the name of this vendor's DeploymentManager. |
String |
getProductVersion()
Provide a string identifying version of this vendor's DeploymentManager. |
boolean |
handlesURI(String uri)
Tests whether this factory can create a DeploymentManager object based on the specificed URI. |
方法详细信息 |
---|
handlesURI
boolean handlesURI(String uri)
- Tests whether this factory can create a DeploymentManager
object based on the specificed URI. This does not indicate
whether such an attempt will be successful, only whether the
factory can handle the uri.
- 参数:
uri
- The uri to check- 返回:
- true if the factory can handle the uri.
getDeploymentManager
DeploymentManager getDeploymentManager(String uri, String username, String password) throws DeploymentManagerCreationException
- Return a connected DeploymentManager instance.
- 参数:
uri
- The URI that specifies the connection parametersusername
- An optional username (may be null if no authentication is required for this platform).password
- An optional password (may be null if no authentication is required for this platform).- 返回:
- A ready DeploymentManager instance.
- 抛出异常:
DeploymentManagerCreationException
- occurs when a DeploymentManager could not be returned (server down, unable to authenticate, etc).
getDisconnectedDeploymentManager
DeploymentManager getDisconnectedDeploymentManager(String uri) throws DeploymentManagerCreationException
- Return a disconnected DeploymentManager instance.
- 参数:
uri
- the uri of the DeploymentManager to return.- 返回:
- A DeploymentManager disconnected instance.
- 抛出异常:
DeploymentManagerCreationException
- occurs if the DeploymentManager could not be created.
getDisplayName
String getDisplayName()
- Provide a string with the name of this vendor's DeploymentManager.
- 返回:
- the name of the vendor's DeploymentManager.
getProductVersion
String getProductVersion()
- Provide a string identifying version of this vendor's
DeploymentManager.
- 返回:
- the name of the vendor's DeploymentManager.
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个 CLASS | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.