org.ow2.frascati.fscript.procedures
Class AddBinding

java.lang.Object
  extended by org.ow2.frascati.fscript.procedures.AddBinding
All Implemented Interfaces:
org.objectweb.fractal.api.control.BindingController, org.objectweb.fractal.fscript.procedures.NativeProcedure, org.objectweb.fractal.fscript.procedures.Procedure, ScaNativeProcedure
Direct Known Subclasses:
AddRestBinding, AddWsBinding

public abstract class AddBinding
extends Object
implements ScaNativeProcedure

Abstract class allowing to add bindings to an SCA service/reference.

Author:
Christophe Demarey

Field Summary
static String CLASSLOADER
          Classloader constant for Fractal Binding Factory
static Logger logger
           
protected  FraSCAtiModel model
          The FraSCAti model component
static String PLUGIN_ID
          plug-in id constant for Fractal Binding Factory
 
Fields inherited from interface org.ow2.frascati.fscript.procedures.ScaNativeProcedure
MODEL_ITF_NAME
 
Constructor Summary
AddBinding()
          Default constructor.
 
Method Summary
 void bindFc(String itfName, Object srvItf)
           
 void createBinding(String itfName, org.objectweb.fractal.api.Component owner, boolean isScaReference, Map<String,Object> hints)
          Export an SCA service or Unbind an SCA reference with the Binding Factory.
 String[] listFc()
           
 Object lookupFc(String itfName)
           
 void unbindFc(String itfName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.fractal.fscript.procedures.NativeProcedure
apply
 
Methods inherited from interface org.objectweb.fractal.fscript.procedures.Procedure
getName, getSignature, isPureFunction
 

Field Detail

logger

public static Logger logger

CLASSLOADER

public static final String CLASSLOADER
Classloader constant for Fractal Binding Factory

See Also:
Constant Field Values

PLUGIN_ID

public static final String PLUGIN_ID
plug-in id constant for Fractal Binding Factory

See Also:
Constant Field Values

model

protected FraSCAtiModel model
The FraSCAti model component

Constructor Detail

AddBinding

public AddBinding()
Default constructor.

Method Detail

createBinding

public void createBinding(String itfName,
                          org.objectweb.fractal.api.Component owner,
                          boolean isScaReference,
                          Map<String,Object> hints)
Export an SCA service or Unbind an SCA reference with the Binding Factory. Callback method used by the NewBindingForm GUI to create the binding.

Parameters:
itfName - The interface to add binding on.
owner - The component owning the interface to add binding on.
isScaReference - Is the interface to bind an SCA reference?
hints - A map with entries needed by the Binding Factory.

listFc

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

bindFc

public void bindFc(String itfName,
                   Object srvItf)
            throws org.objectweb.fractal.api.NoSuchInterfaceException
Specified by:
bindFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException

lookupFc

public Object lookupFc(String itfName)
                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(String itfName)
              throws org.objectweb.fractal.api.NoSuchInterfaceException
Specified by:
unbindFc in interface org.objectweb.fractal.api.control.BindingController
Throws:
org.objectweb.fractal.api.NoSuchInterfaceException


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