org.objectweb.fractal.fraclet.annotation.generator.template
Class RequiresTemplate

java.lang.Object
  extended by org.objectweb.fractal.fraclet.annotation.generator.template.RequiresTemplate
All Implemented Interfaces:
spoon.template.Template

public class RequiresTemplate
extends Object
implements spoon.template.Template

A template code to insert the binding controller methods.

Author:
Nicolas Pessemier

Constructor Summary
RequiresTemplate(spoon.reflect.Factory spoonFactory, spoon.reflect.declaration.CtClass<?> target)
          Constructor for RequiresTemplate.
 
Method Summary
 void bindFc(String clientItfName, Object serverItf)
          (non-Javadoc)
 String[] listFc()
          (non-Javadoc)
 Object lookupFc(String clientItfName)
          (non-Javadoc)
 void unbindFc(String clientItfName)
          (non-Javadoc)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequiresTemplate

public RequiresTemplate(spoon.reflect.Factory spoonFactory,
                        spoon.reflect.declaration.CtClass<?> target)
                 throws NonTypedFractalAttributeException
Constructor for RequiresTemplate. This constructor is called from the @Requires Processor

Parameters:
spoonFactory - the factory
target - the target class
Throws:
NonTypedFractalAttributeException
Method Detail

bindFc

public void bindFc(String clientItfName,
                   Object serverItf)
            throws NoSuchInterfaceException,
                   IllegalBindingException,
                   IllegalLifeCycleException
(non-Javadoc)

Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
See Also:
Method automatically generated with Spoon

listFc

public String[] listFc()
(non-Javadoc)

See Also:
Method automatically generated with Spoon

lookupFc

public Object lookupFc(String clientItfName)
                throws NoSuchInterfaceException
(non-Javadoc)

Throws:
NoSuchInterfaceException
See Also:
Method automatically generated with Spoon

unbindFc

public void unbindFc(String clientItfName)
              throws NoSuchInterfaceException,
                     IllegalBindingException,
                     IllegalLifeCycleException
(non-Javadoc)

Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
See Also:
Method automatically generated with Spoon