org.jboss.varia.deployment.convertor
Class WebLogicConvertor

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.varia.deployment.convertor.WebLogicConvertor
All Implemented Interfaces:
Convertor (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class WebLogicConvertor
extends ServiceMBeanSupport (src)
implements Convertor (src)

Converts WebLogic applications.


Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
WebLogicConvertor()
           
 
Method Summary
 boolean accepts(java.net.URL url)
          Checks if the deployment can be converted to a JBoss deployment by this converter.
 void convert(DeploymentInfo (src)  di, java.io.File path)
          Converts the necessary files to make the given deployment deployable on JBoss
 java.lang.String getDatasource()
           
 java.lang.String getDatasourceMapping()
           
 java.lang.String getDeployer()
           
 java.lang.String getRemoveTable()
           
 java.lang.String getWlVersion()
           
 java.util.Properties getXslParams()
          Returns the XSL parameters
 void setDatasource(java.lang.String datasource)
           
 void setDatasourceMapping(java.lang.String datasourceMapping)
           
 void setDeployer(java.lang.String name)
           
 void setRemoveTable(java.lang.String removeTable)
           
 void setWlVersion(java.lang.String wlVersion)
           
 void startService()
          Sub-classes should override this method to provide custum 'start' logic.
 void stopService()
          Sub-classes should override this method to provide custum 'stop' logic.
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebLogicConvertor

public WebLogicConvertor()
Method Detail

getDeployer

public java.lang.String getDeployer()

setDeployer

public void setDeployer(java.lang.String name)

getWlVersion

public java.lang.String getWlVersion()

setWlVersion

public void setWlVersion(java.lang.String wlVersion)

getRemoveTable

public java.lang.String getRemoveTable()

setRemoveTable

public void setRemoveTable(java.lang.String removeTable)

getDatasource

public java.lang.String getDatasource()

setDatasource

public void setDatasource(java.lang.String datasource)

getDatasourceMapping

public java.lang.String getDatasourceMapping()

setDatasourceMapping

public void setDatasourceMapping(java.lang.String datasourceMapping)

startService

public void startService()
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'start' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
startService in class ServiceMBeanSupport (src)

stopService

public void stopService()
Description copied from class: ServiceMBeanSupport (src)
Sub-classes should override this method to provide custum 'stop' logic.

This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.

Overrides:
stopService in class ServiceMBeanSupport (src)

accepts

public boolean accepts(java.net.URL url)
Checks if the deployment can be converted to a JBoss deployment by this converter.

Specified by:
accepts in interface Convertor (src)
Parameters:
url - The url of deployment to be converted
Returns:
true if this converter is able to convert

convert

public void convert(DeploymentInfo (src)  di,
                    java.io.File path)
             throws java.lang.Exception
Converts the necessary files to make the given deployment deployable on JBoss

Specified by:
convert in interface Convertor (src)
Parameters:
di - The deployment to be converted
path - Path of the extracted deployment
Throws:
java.lang.Exception

getXslParams

public java.util.Properties getXslParams()
Returns the XSL parameters