org.ow2.frascati.fscript.procedures
Class AddBinding
java.lang.Object
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 java.lang.Object
- implements ScaNativeProcedure
Abstract class allowing to add bindings
to an SCA service/reference.
- Author:
- Christophe Demarey
|
Field Summary |
static java.lang.String |
CLASSLOADER
Classloader constant for Fractal Binding Factory |
static java.util.logging.Logger |
logger
|
protected FraSCAtiModel |
model
The FraSCAti model component |
static java.lang.String |
PLUGIN_ID
plug-in id constant for Fractal Binding Factory |
|
Constructor Summary |
AddBinding()
Default constructor. |
|
Method Summary |
void |
bindFc(java.lang.String itfName,
java.lang.Object srvItf)
|
void |
createBinding(java.lang.String itfName,
org.objectweb.fractal.api.Component owner,
boolean isScaReference,
java.util.Map<java.lang.String,java.lang.Object> hints)
Export an SCA service or Unbind an SCA reference with the Binding Factory. |
java.lang.String[] |
listFc()
|
java.lang.Object |
lookupFc(java.lang.String itfName)
|
void |
unbindFc(java.lang.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 |
logger
public static java.util.logging.Logger logger
CLASSLOADER
public static final java.lang.String CLASSLOADER
- Classloader constant for Fractal Binding Factory
- See Also:
- Constant Field Values
PLUGIN_ID
public static final java.lang.String PLUGIN_ID
- plug-in id constant for Fractal Binding Factory
- See Also:
- Constant Field Values
model
protected FraSCAtiModel model
- The FraSCAti model component
AddBinding
public AddBinding()
- Default constructor.
createBinding
public final void createBinding(java.lang.String itfName,
org.objectweb.fractal.api.Component owner,
boolean isScaReference,
java.util.Map<java.lang.String,java.lang.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 final java.lang.String[] listFc()
- Specified by:
listFc in interface org.objectweb.fractal.api.control.BindingController
bindFc
public final void bindFc(java.lang.String itfName,
java.lang.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 final java.lang.Object lookupFc(java.lang.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 final void unbindFc(java.lang.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-2010 OW2 Consortium. All Rights Reserved.