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

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

public class BindFcTemplate
extends Object
implements spoon.template.Template

A template to manage the bindFc method

Author:
Nicolas Pessemier

Constructor Summary
BindFcTemplate(String itfName, spoon.reflect.reference.CtTypeReference<?> serviceType, String serviceName)
          Use this constructor for singeton bindings
BindFcTemplate(String itfName, String fieldName, spoon.reflect.reference.CtTypeReference<?> serviceType)
          Use this constructor for collection bindings`
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindFcTemplate

public BindFcTemplate(String itfName,
                      spoon.reflect.reference.CtTypeReference<?> serviceType,
                      String serviceName)
Use this constructor for singeton bindings

Parameters:
itfName - The name of the Fractal interface
serviceType - The java type of the binding
serviceName - The name of the java field

BindFcTemplate

public BindFcTemplate(String itfName,
                      String fieldName,
                      spoon.reflect.reference.CtTypeReference<?> serviceType)
Use this constructor for collection bindings`

Parameters:
fieldName - the name of the map field