org.objectweb.fractal.task.core
Class AbstractTaskFactoryUser

java.lang.Object
  extended by org.objectweb.fractal.task.core.AbstractTaskFactoryUser
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController

public abstract class AbstractTaskFactoryUser
extends java.lang.Object
implements org.objectweb.fractal.api.control.BindingController

Abstract class that can be overridden by component implementations that requires a TaskFactory.


Field Summary
static java.lang.String TASK_FACTORY_ITF_NAME
          The default name of the TaskFactory client interface.
 TaskFactory taskFactoryItf
          The TaskFactory client interface.
 
Constructor Summary
  AbstractTaskFactoryUser()
          Default constructor.
protected AbstractTaskFactoryUser(java.lang.String taskFactoryItfName)
          This constructor can be used by the default constructor of sub-classes to specify the name of the TaskFactory client interface.
 
Method Summary
 void bindFc(java.lang.String clientItfName, java.lang.Object serverItf)
           
 java.lang.String[] listFc()
           
 java.lang.Object lookupFc(java.lang.String clientItfName)
           
 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

TASK_FACTORY_ITF_NAME

public static final java.lang.String TASK_FACTORY_ITF_NAME
The default name of the TaskFactory client interface.

See Also:
Constant Field Values

taskFactoryItf

public TaskFactory taskFactoryItf
The TaskFactory client interface.

Constructor Detail

AbstractTaskFactoryUser

public AbstractTaskFactoryUser()
Default constructor.


AbstractTaskFactoryUser

protected AbstractTaskFactoryUser(java.lang.String taskFactoryItfName)
This constructor can be used by the default constructor of sub-classes to specify the name of the TaskFactory client interface.

Parameters:
taskFactoryItfName - the name of the TaskFactory client interface.
Method Detail

listFc

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

bindFc

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

lookupFc

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

unbindFc

public void unbindFc(java.lang.String clientItfName)
              throws org.objectweb.fractal.api.NoSuchInterfaceException,
                     org.objectweb.fractal.api.control.IllegalBindingException,
                     org.objectweb.fractal.api.control.IllegalLifeCycleException
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException
org.objectweb.fractal.api.control.IllegalBindingException
org.objectweb.fractal.api.control.IllegalLifeCycleException


Copyright © 2007-2009 ObjectWeb Consortium. All Rights Reserved.