org.ow2.frascati.fscript.procedures
Class AddWsBinding

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

public class AddWsBinding
extends AddBinding

Implements the add-ws-binding() function which adds a WS binding to the SCA service/reference given as argument. The second argument is the WS URI.

Author:
Christophe Demarey

Field Summary
 
Fields inherited from class org.ow2.frascati.fscript.procedures.AddBinding
CLASSLOADER, logger, model, PLUGIN_ID
 
Fields inherited from interface org.ow2.frascati.fscript.procedures.ScaNativeProcedure
MODEL_ITF_NAME
 
Constructor Summary
AddWsBinding()
          Default constructor.
 
Method Summary
 java.lang.Object apply(java.util.List<java.lang.Object> args, org.objectweb.fractal.fscript.interpreter.Context ctx)
          Parse arguments and call createBinding()
 java.lang.String getName()
          Returns the name of the procedure.
 org.objectweb.fractal.fscript.types.Signature getSignature()
          Returns the signature of this procedure.
 boolean isPureFunction()
          Tests whether this procedure is a pure function (i.e. without side-effect), or an action (with potential side-effects).
 
Methods inherited from class org.ow2.frascati.fscript.procedures.AddBinding
bindFc, createBinding, listFc, lookupFc, unbindFc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddWsBinding

public AddWsBinding()
Default constructor.

Method Detail

getName

public final java.lang.String getName()
Returns the name of the procedure.

Returns:
the name of the procedure.

getSignature

public final org.objectweb.fractal.fscript.types.Signature getSignature()
Returns the signature of this procedure.

Returns:
the signature of this procedure.

isPureFunction

public final boolean isPureFunction()
Tests whether this procedure is a pure function (i.e. without side-effect), or an action (with potential side-effects).

Returns:
true if this procedure is a pure function.

apply

public final java.lang.Object apply(java.util.List<java.lang.Object> args,
                                    org.objectweb.fractal.fscript.interpreter.Context ctx)
                             throws org.objectweb.fractal.fscript.ScriptExecutionError
Parse arguments and call createBinding()

Throws:
org.objectweb.fractal.fscript.ScriptExecutionError


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