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

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

public class LookupFcTemplate
extends Object
implements spoon.template.Template

A template to manage the LookupFc method

Author:
Nicolas Pessemier

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

Constructor Detail

LookupFcTemplate

public LookupFcTemplate(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

LookupFcTemplate

public LookupFcTemplate(String fieldName)
Use this constructor for collection bindings`

Parameters:
fieldName - the name of the map field