com.ebmwebsourcing.easyviper.core.impl
Class CoreImpl

java.lang.Object
  extended by com.ebmwebsourcing.easyviper.core.impl.CoreImpl
All Implemented Interfaces:
com.ebmwebsourcing.easyviper.core.api.Core, com.ebmwebsourcing.easyviper.core.api.engine.Element, com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent, java.io.Serializable

public class CoreImpl
extends java.lang.Object
implements com.ebmwebsourcing.easyviper.core.api.Core

Author:
Nicolas Salatge - eBM WebSourcing
See Also:
Serialized Form

Field Summary
static java.lang.String DEFAULT_ENGINE_NAME
           
 
Constructor Summary
CoreImpl()
          Default Constructor
 
Method Summary
 void create()
          Start the scope behaviour
 com.ebmwebsourcing.easyviper.core.api.engine.Engine createEngine(com.ebmwebsourcing.easyviper.core.api.engine.configuration.ConfigurationEngine conf, java.lang.Class internalMessageType)
           
 com.ebmwebsourcing.easyviper.core.api.env.ExternalEnvironment createExternalEnvironment(java.lang.String name)
           
 com.ebmwebsourcing.easyviper.core.api.model.Model createModel(java.lang.String name, java.lang.Class<? extends com.ebmwebsourcing.easyviper.core.api.model.Model> modelClass)
           
 void destroy()
          Start the scope behaviour
 org.objectweb.fractal.api.Component getComponent()
           
 com.ebmwebsourcing.easyviper.core.api.engine.Engine getEngine()
           
 com.ebmwebsourcing.easyviper.core.api.env.ExternalEnvironment getExternalEnvironment()
           
 com.ebmwebsourcing.easyviper.core.api.model.Model getModel()
           
 java.lang.String getName()
           
 void init(org.objectweb.fractal.api.Component fractalNode)
           
 void setLog(java.util.logging.Logger logger)
           
 void setName(java.lang.String name)
           
 void start()
          Start the scope behaviour
 void stop()
          Stop the scope behaviour
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ENGINE_NAME

public static final java.lang.String DEFAULT_ENGINE_NAME
See Also:
Constant Field Values
Constructor Detail

CoreImpl

public CoreImpl()
         throws com.ebmwebsourcing.easyviper.core.api.CoreException
Default Constructor

Throws:
org.objectweb.fractal.adl.ADLException
com.ebmwebsourcing.easyviper.core.api.CoreException
Method Detail

create

public void create()
            throws com.ebmwebsourcing.easyviper.core.api.CoreException
Start the scope behaviour

Specified by:
create in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

init

public void init(org.objectweb.fractal.api.Component fractalNode)
          throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
init in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

start

public void start()
           throws com.ebmwebsourcing.easyviper.core.api.CoreException
Start the scope behaviour

Specified by:
start in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

stop

public void stop()
          throws com.ebmwebsourcing.easyviper.core.api.CoreException
Stop the scope behaviour

Specified by:
stop in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

destroy

public void destroy()
             throws com.ebmwebsourcing.easyviper.core.api.CoreException
Start the scope behaviour

Specified by:
destroy in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

createEngine

public com.ebmwebsourcing.easyviper.core.api.engine.Engine createEngine(com.ebmwebsourcing.easyviper.core.api.engine.configuration.ConfigurationEngine conf,
                                                                        java.lang.Class internalMessageType)
                                                                 throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
createEngine in interface com.ebmwebsourcing.easyviper.core.api.Core
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

getComponent

public org.objectweb.fractal.api.Component getComponent()
Specified by:
getComponent in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent

getName

public java.lang.String getName()
                         throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
getName in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

setName

public void setName(java.lang.String name)
             throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
setName in interface com.ebmwebsourcing.easyviper.core.api.engine.FractalComponent
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

getEngine

public com.ebmwebsourcing.easyviper.core.api.engine.Engine getEngine()
                                                              throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
getEngine in interface com.ebmwebsourcing.easyviper.core.api.Core
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

createModel

public com.ebmwebsourcing.easyviper.core.api.model.Model createModel(java.lang.String name,
                                                                     java.lang.Class<? extends com.ebmwebsourcing.easyviper.core.api.model.Model> modelClass)
                                                              throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
createModel in interface com.ebmwebsourcing.easyviper.core.api.Core
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

getModel

public com.ebmwebsourcing.easyviper.core.api.model.Model getModel()
                                                           throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
getModel in interface com.ebmwebsourcing.easyviper.core.api.Core
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

createExternalEnvironment

public com.ebmwebsourcing.easyviper.core.api.env.ExternalEnvironment createExternalEnvironment(java.lang.String name)
                                                                                        throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
createExternalEnvironment in interface com.ebmwebsourcing.easyviper.core.api.Core
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

getExternalEnvironment

public com.ebmwebsourcing.easyviper.core.api.env.ExternalEnvironment getExternalEnvironment()
                                                                                     throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
getExternalEnvironment in interface com.ebmwebsourcing.easyviper.core.api.Core
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException

setLog

public void setLog(java.util.logging.Logger logger)
Specified by:
setLog in interface com.ebmwebsourcing.easyviper.core.api.engine.Element


Copyright © 2009 eBM WebSourcing. All Rights Reserved.