org.netbeans.modules.j2eeserver/4 1.89.0 1

org.netbeans.modules.j2ee.deployment.plugins.spi.support
Class ProxyOptionalFactory

java.lang.Object
  extended by org.netbeans.modules.j2ee.deployment.plugins.spi.OptionalDeploymentManagerFactory
      extended by org.netbeans.modules.j2ee.deployment.plugins.spi.support.ProxyOptionalFactory

public final class ProxyOptionalFactory
extends OptionalDeploymentManagerFactory

Provides a proxying implementation of OptionalDeploymentManagerFactory. Handles optional noInitializationFinish attribute as a way to prevent delegate's finishServerInitialization() to be called. This can be useful in situation when we want to prevent loading unnecessary code (from delegate) being loaded during the finishServerInitialization() call. Designed to be used via XML layer filesystem.

Since:
1.66

Method Summary
static ProxyOptionalFactory create(Map map)
           
 void finishServerInitialization()
          Allows a plugin to perform post initialization action.
 WizardDescriptor.InstantiatingIterator getAddInstanceIterator()
          Create the wizard iterator to be used in the Add Server Instance wizard
 AntDeploymentProvider getAntDeploymentProvider(javax.enterprise.deploy.spi.DeploymentManager dm)
          Creates an Ant deployment provider for the specified deployment manager.
 DatasourceManager getDatasourceManager(javax.enterprise.deploy.spi.DeploymentManager dm)
          Creates a DatasourceManager for the given deployment manager or null if data source management is not supported
 FindJSPServlet getFindJSPServlet(javax.enterprise.deploy.spi.DeploymentManager dm)
          Create FindJSPServlet for given DeploymentManager.
 IncrementalDeployment getIncrementalDeployment(javax.enterprise.deploy.spi.DeploymentManager dm)
          Create IncrementalDeployment for given DeploymentManager.
 JDBCDriverDeployer getJDBCDriverDeployer(javax.enterprise.deploy.spi.DeploymentManager dm)
          Creates a JDBC driver deployer for the specified deployment manager.
 MessageDestinationDeployment getMessageDestinationDeployment(javax.enterprise.deploy.spi.DeploymentManager dm)
          Creates a MessageDestinationDeployment for the given deployment manager or null if message destination deployment is not supported
 ServerInstanceDescriptor getServerInstanceDescriptor(javax.enterprise.deploy.spi.DeploymentManager dm)
          Creates a ServerInstanceDescriptor for the given deployment manager or null if descriptor is not supported.
 ServerLibraryManager getServerLibraryManager(javax.enterprise.deploy.spi.DeploymentManager dm)
          Return the manager handling the server libraries.
 StartServer getStartServer(javax.enterprise.deploy.spi.DeploymentManager dm)
          Create StartServer for given DeploymentManager.
 TargetModuleIDResolver getTargetModuleIDResolver(javax.enterprise.deploy.spi.DeploymentManager dm)
          Create TargetModuleIDResolver for the given DeploymentManager.
 boolean isCommonUIRequired()
          Returns true if the common UI (like the wizard in common add dialog) should be handled by insfrastructure of the j2eeserver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ProxyOptionalFactory create(Map map)

isCommonUIRequired

public boolean isCommonUIRequired()
Description copied from class: OptionalDeploymentManagerFactory
Returns true if the common UI (like the wizard in common add dialog) should be handled by insfrastructure of the j2eeserver.

Overrides:
isCommonUIRequired in class OptionalDeploymentManagerFactory
Returns:
true if the common UI is required by the plugin

getTargetModuleIDResolver

public TargetModuleIDResolver getTargetModuleIDResolver(javax.enterprise.deploy.spi.DeploymentManager dm)
Description copied from class: OptionalDeploymentManagerFactory
Create TargetModuleIDResolver for the given DeploymentManager. The instance returned by this method will be cached by the j2eeserver.

Overrides:
getTargetModuleIDResolver in class OptionalDeploymentManagerFactory

getStartServer

public StartServer getStartServer(javax.enterprise.deploy.spi.DeploymentManager dm)
Description copied from class: OptionalDeploymentManagerFactory
Create StartServer for given DeploymentManager. The instance returned by this method will be cached by the j2eeserver.

Specified by:
getStartServer in class OptionalDeploymentManagerFactory

getServerInstanceDescriptor

public ServerInstanceDescriptor getServerInstanceDescriptor(javax.enterprise.deploy.spi.DeploymentManager dm)
Description copied from class: OptionalDeploymentManagerFactory
Creates a ServerInstanceDescriptor for the given deployment manager or null if descriptor is not supported.

Overrides:
getServerInstanceDescriptor in class OptionalDeploymentManagerFactory
Parameters:
dm - the deployment manager
Returns:
instance descriptor or null if descriptor is not supported

getMessageDestinationDeployment

public MessageDestinationDeployment getMessageDestinationDeployment(javax.enterprise.deploy.spi.DeploymentManager dm)
Description copied from class: OptionalDeploymentManagerFactory
Creates a MessageDestinationDeployment for the given deployment manager or null if message destination deployment is not supported

Overrides:
getMessageDestinationDeployment in class OptionalDeploymentManagerFactory
Parameters:
dm - the deployment manager
Returns:
a message destination deployment or null if message destination deployment is not supported

getJDBCDriverDeployer

public JDBCDriverDeployer getJDBCDriverDeployer(javax.enterprise.deploy.spi.DeploymentManager dm)
Description copied from class: OptionalDeploymentManagerFactory
Creates a JDBC driver deployer for the specified deployment manager.

Overrides:
getJDBCDriverDeployer in class OptionalDeploymentManagerFactory
Parameters:
dm - deployment manager.
Returns:
JDBC driver deployer for the specified deployment manager or null if JDBC driver deployment is not supported.

getIncrementalDeployment

public IncrementalDeployment getIncrementalDeployment(javax.enterprise.deploy.spi.DeploymentManager dm)
Description copied from class: OptionalDeploymentManagerFactory
Create IncrementalDeployment for given DeploymentManager. The instance returned by this method will be cached by the j2eeserver.

Specified by:
getIncrementalDeployment in class OptionalDeploymentManagerFactory

getFindJSPServlet

public FindJSPServlet getFindJSPServlet(javax.enterprise.deploy.spi.DeploymentManager dm)
Description copied from class: OptionalDeploymentManagerFactory
Create FindJSPServlet for given DeploymentManager. The instance returned by this method will be cached by the j2eeserver.

Specified by:
getFindJSPServlet in class OptionalDeploymentManagerFactory

getDatasourceManager

public DatasourceManager getDatasourceManager(javax.enterprise.deploy.spi.DeploymentManager dm)
Description copied from class: OptionalDeploymentManagerFactory
Creates a DatasourceManager for the given deployment manager or null if data source management is not supported

Overrides:
getDatasourceManager in class OptionalDeploymentManagerFactory
Parameters:
dm - the deployment manager
Returns:
a data source manager or null if data source management is not supported

getAntDeploymentProvider

public AntDeploymentProvider getAntDeploymentProvider(javax.enterprise.deploy.spi.DeploymentManager dm)
Description copied from class: OptionalDeploymentManagerFactory
Creates an Ant deployment provider for the specified deployment manager.

Overrides:
getAntDeploymentProvider in class OptionalDeploymentManagerFactory
Parameters:
dm - deployment manager.
Returns:
an instance of the AntDeploymentProvider if Ant deployment is supported for the specified deployment manager, null otherwise.

getAddInstanceIterator

public WizardDescriptor.InstantiatingIterator getAddInstanceIterator()
Description copied from class: OptionalDeploymentManagerFactory
Create the wizard iterator to be used in the Add Server Instance wizard

Overrides:
getAddInstanceIterator in class OptionalDeploymentManagerFactory

finishServerInitialization

public void finishServerInitialization()
                                throws ServerInitializationException
Description copied from class: OptionalDeploymentManagerFactory
Allows a plugin to perform post initialization action. When this method invoked infrastructure is initialized so it can register/query instances.

Overrides:
finishServerInitialization in class OptionalDeploymentManagerFactory
Throws:
ServerInitializationException

getServerLibraryManager

public ServerLibraryManager getServerLibraryManager(javax.enterprise.deploy.spi.DeploymentManager dm)
Description copied from class: OptionalDeploymentManagerFactory
Return the manager handling the server libraries. May return null if the functionality is not supported by the plugin.

Overrides:
getServerLibraryManager in class OptionalDeploymentManagerFactory
Parameters:
dm - the deployment manager
Returns:
the manager handling the server libraries
See Also:
ServerLibraryManager

org.netbeans.modules.j2eeserver/4 1.89.0 1

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.