com.ebmwebsourcing.easyviper.core.impl
Class CoreImpl

Package class diagram package 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()
          Create component
 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()
          Destroy component
 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.marshalling.factory.MessageFactory<com.ebmwebsourcing.easyviper.core.api.soa.message.ExternalMessage<?>,com.ebmwebsourcing.easyviper.core.api.soa.message.InternalMessage<?>> getMessageFactory()
           
 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 setMessageFactory(com.ebmwebsourcing.easyviper.core.api.marshalling.factory.MessageFactory<com.ebmwebsourcing.easyviper.core.api.soa.message.ExternalMessage<?>,com.ebmwebsourcing.easyviper.core.api.soa.message.InternalMessage<?>> messageFactory)
           
 void setName(java.lang.String name)
           
 void start()
          Start component
 void stop()
          Stop component
 
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:
com.ebmwebsourcing.easyviper.core.api.CoreException
Method Detail

create

public void create()
            throws com.ebmwebsourcing.easyviper.core.api.CoreException
Create component

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 component

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 component

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
Destroy component

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

getMessageFactory

public com.ebmwebsourcing.easyviper.core.api.marshalling.factory.MessageFactory<com.ebmwebsourcing.easyviper.core.api.soa.message.ExternalMessage<?>,com.ebmwebsourcing.easyviper.core.api.soa.message.InternalMessage<?>> getMessageFactory()
Specified by:
getMessageFactory in interface com.ebmwebsourcing.easyviper.core.api.Core

setMessageFactory

public void setMessageFactory(com.ebmwebsourcing.easyviper.core.api.marshalling.factory.MessageFactory<com.ebmwebsourcing.easyviper.core.api.soa.message.ExternalMessage<?>,com.ebmwebsourcing.easyviper.core.api.soa.message.InternalMessage<?>> messageFactory)
                       throws com.ebmwebsourcing.easyviper.core.api.CoreException
Specified by:
setMessageFactory in interface com.ebmwebsourcing.easyviper.core.api.Core
Throws:
com.ebmwebsourcing.easyviper.core.api.CoreException


Copyright © 2009-2010 eBM WebSourcing. All Rights Reserved.