Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » deployment » spi » factories » [javadoc | source]
org.jboss.deployment.spi.factories
public class: DeploymentFactoryImpl [javadoc | source]
java.lang.Object
   org.jboss.deployment.spi.factories.DeploymentFactoryImpl

All Implemented Interfaces:
    javax.enterprise.deploy.spi.factories.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.
Method from org.jboss.deployment.spi.factories.DeploymentFactoryImpl Summary:
getDeploymentManager,   getDisconnectedDeploymentManager,   getDisplayName,   getProductVersion,   handlesURI,   register
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.deployment.spi.factories.DeploymentFactoryImpl Detail:
 public DeploymentManager getDeploymentManager(String uri,
    String userName,
    String password) throws DeploymentManagerCreationException 
    Get a connected deployment manager
 public DeploymentManager getDisconnectedDeploymentManager(String uri) throws DeploymentManagerCreationException 
    Get a disconnected version of the deployment manager
 public String getDisplayName() 
    The name of the JBoss DeploymentFactory.
 public String getProductVersion() 
    The version of the deployment manager
 public boolean handlesURI(String uri) 
    Look for jboss-deployer:.... URIs. Returns true if uri is has a scheme of jboss-deployer, false otherwise.
 public static synchronized  void register() 
    Register a DeploymentFactoryImpl instance with the DeploymentFactoryManager. This obtains the display name and version from the Package object for org.jboss.deploy.spi.factories