org.objectweb.fractal.gui.model
Class BasicConfiguration

java.lang.Object
  extended byorg.objectweb.fractal.gui.model.BasicConfiguration
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController, Configuration, Factory, org.objectweb.fractal.api.control.LifeCycleController

public class BasicConfiguration
extends java.lang.Object
implements Configuration, Factory, org.objectweb.fractal.api.control.BindingController, org.objectweb.fractal.api.control.LifeCycleController

Basic implementation of the Configuration interface.


Field Summary
static java.lang.String CONFIGURATION_LISTENERS_BINDING
          A collection client interface bound to the listeners of this model.
static java.lang.String VETOABLE_CONFIGURATION_LISTENERS_BINDING
          A collection client interface bound to the vetoable listeners of this model.
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
BasicConfiguration()
          Constructs a new basic configuration component.
 
Method Summary
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 ClientInterface createClientInterface(Component owner)
          Creates a new external client interface.
 Component createComponent()
          Creates a new component.
 Component createComponent(Component component)
          Creates a slave component.
 ServerInterface createServerInterface(Component owner)
          Creates a new external server interface.
 long getChangeCount()
          Returns the status of this configuration.
 java.lang.String getFcState()
           
 Component getRootComponent()
          Returns the root component of this configuration.
 java.lang.String getStorage()
          Returns the storage directory of this configuration.
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 void setChangeCount(long changeCount)
          Sets the status of this configuration.
 void setRootComponent(Component root)
          Sets the root component of this configuration.
 void setStorage(java.lang.String storage)
          Sets the storage directory of this configuration.
 void startFc()
           
 void stopFc()
           
 void unbindFc(java.lang.String clientItfName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VETOABLE_CONFIGURATION_LISTENERS_BINDING

public static final java.lang.String VETOABLE_CONFIGURATION_LISTENERS_BINDING
A collection client interface bound to the vetoable listeners of this model.

See Also:
Constant Field Values

CONFIGURATION_LISTENERS_BINDING

public static final java.lang.String CONFIGURATION_LISTENERS_BINDING
A collection client interface bound to the listeners of this model.

See Also:
Constant Field Values
Constructor Detail

BasicConfiguration

public BasicConfiguration()
Constructs a new basic configuration component.

Method Detail

listFc

public java.lang.String[] listFc()
Specified by:
listFc in interface org.objectweb.fractal.api.control.BindingController

lookupFc

public java.lang.Object lookupFc(java.lang.String clientItfName)
Specified by:
lookupFc in interface org.objectweb.fractal.api.control.BindingController

bindFc

public void bindFc(java.lang.String clientItfName,
                   java.lang.Object serverItf)
Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController

unbindFc

public void unbindFc(java.lang.String clientItfName)
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController

getFcState

public java.lang.String getFcState()
Specified by:
getFcState in interface org.objectweb.fractal.api.control.LifeCycleController

startFc

public void startFc()
Specified by:
startFc in interface org.objectweb.fractal.api.control.LifeCycleController

stopFc

public void stopFc()
Specified by:
stopFc in interface org.objectweb.fractal.api.control.LifeCycleController

getRootComponent

public Component getRootComponent()
Description copied from interface: Configuration
Returns the root component of this configuration.

Specified by:
getRootComponent in interface Configuration
Returns:
the root component of this configuration.
See Also:
Configuration.setRootComponent(org.objectweb.fractal.gui.model.Component)

setRootComponent

public void setRootComponent(Component root)
Description copied from interface: Configuration
Sets the root component of this configuration. This method notifies the configuration listeners, via the rootComponentChanged method.

Specified by:
setRootComponent in interface Configuration
Parameters:
root - the new root component of this configuration.
See Also:
Configuration.getRootComponent()

getChangeCount

public long getChangeCount()
Description copied from interface: Configuration
Returns the status of this configuration.

Specified by:
getChangeCount in interface Configuration
See Also:
Configuration.setChangeCount(long)

setChangeCount

public void setChangeCount(long changeCount)
Description copied from interface: Configuration
Sets the status of this configuration.

Specified by:
setChangeCount in interface Configuration
See Also:
Configuration.getChangeCount()

getStorage

public java.lang.String getStorage()
Description copied from interface: Configuration
Returns the storage directory of this configuration.

Specified by:
getStorage in interface Configuration
Returns:
the storage directory of this configuration.
See Also:
Configuration.setStorage(java.lang.String)

setStorage

public void setStorage(java.lang.String storage)
Description copied from interface: Configuration
Sets the storage directory of this configuration.

Specified by:
setStorage in interface Configuration
Parameters:
storage - the new storage directory of this configuration.
See Also:
Configuration.getStorage()

createComponent

public Component createComponent()
Description copied from interface: Factory
Creates a new component.

Specified by:
createComponent in interface Factory
Returns:
a newly created component.

createComponent

public Component createComponent(Component component)
Description copied from interface: Factory
Creates a slave component.

Specified by:
createComponent in interface Factory
Parameters:
component - a master component.
Returns:
a newly created slave component of the given master component.

createClientInterface

public ClientInterface createClientInterface(Component owner)
Description copied from interface: Factory
Creates a new external client interface.

Specified by:
createClientInterface in interface Factory
Parameters:
owner - a component.
Returns:
a newly created external client interface for the given component.

createServerInterface

public ServerInterface createServerInterface(Component owner)
Description copied from interface: Factory
Creates a new external server interface.

Specified by:
createServerInterface in interface Factory
Parameters:
owner - a component.
Returns:
a newly created external server interface for the given component.