org.ow2.easybeans.mavenplugin.server
Class EasyBeansPluginServer

java.lang.Object
  extended by org.ow2.easybeans.mavenplugin.server.AbstractEasyBeansPluginServer
      extended by org.ow2.easybeans.mavenplugin.server.EasyBeansPluginServer
All Implemented Interfaces:
org.ow2.util.maven.plugin.deployment.api.IPluginServer

public class EasyBeansPluginServer
extends AbstractEasyBeansPluginServer

Implementation of IPluginServer interface. Create a local EasyBeans server instance and provide operations on this. If local server is found before creating, this one is used.

Author:
Vincent Michaud, Alexandre Deneux

Constructor Summary
EasyBeansPluginServer(String configXmlFile, List<String> partialConfigXmlFiles)
          Create an Embedded server instance with the specified XML file.
 
Method Summary
 String getVersion()
          Get the version of EasyBeans server.
 boolean isRemoteInstance()
          Determine if the server is a remote instance.
 boolean isStarted()
          Determine if the server is started or not.
 void start(IPersistenceListener persistenceListener)
          Launch the server.
 
Methods inherited from class org.ow2.easybeans.mavenplugin.server.AbstractEasyBeansPluginServer
deployArchive, getLog, getServer, isStopped, localServerFound, removeArchiveIfDeployed, setServer, stop, undeployArchive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EasyBeansPluginServer

public EasyBeansPluginServer(String configXmlFile,
                             List<String> partialConfigXmlFiles)
Create an Embedded server instance with the specified XML file. If XML files are invalid, default XML file is used.

Parameters:
configXmlFile - Path of EasyBeans XML configuration file
partialConfigXmlFiles - Path list of partial EasyBeans XML configuration file.
Method Detail

start

public void start(IPersistenceListener persistenceListener)
Launch the server.

Parameters:
persistenceListener - The listener which is called before the deployment, or null

getVersion

public String getVersion()
Get the version of EasyBeans server.

Specified by:
getVersion in interface org.ow2.util.maven.plugin.deployment.api.IPluginServer
Specified by:
getVersion in class AbstractEasyBeansPluginServer
Returns:
A String

isStarted

public boolean isStarted()
Determine if the server is started or not.

Returns:
True if server has been started.

isRemoteInstance

public boolean isRemoteInstance()
Determine if the server is a remote instance.

Returns:
True if server is a remote instance.


Copyright © 2006-2011 OW2 Consortium. All Rights Reserved.