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

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

public class ComponentServiceTemplate
extends Object
implements spoon.template.Template, BindingController

A template code to manage the introduction of specific services. In this case it gets the Java reference to "Component".

Author:
Nicolas Pessemier

Constructor Summary
ComponentServiceTemplate(String serviceName, spoon.reflect.declaration.CtClass<?> target)
          Constructor for ComponentServiceTemplate.
 
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

ComponentServiceTemplate

public ComponentServiceTemplate(String serviceName,
                                spoon.reflect.declaration.CtClass<?> target)
Constructor for ComponentServiceTemplate. This constructor is called from the Service Processor.

Parameters:
serviceName - the name of the service
target - the target class
Method Detail

bindFc

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

Specified by:
bindFc in interface BindingController
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
See Also:
Method automatically generated with Spoon

listFc

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

Specified by:
listFc in interface BindingController
See Also:
Method automatically generated with Spoon

lookupFc

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

Specified by:
lookupFc in interface BindingController
Throws:
NoSuchInterfaceException
See Also:
Method automatically generated with Spoon

unbindFc

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

Specified by:
unbindFc in interface BindingController
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
See Also:
Method automatically generated with Spoon