org.objectweb.dsrg.sofa.bootstrap
Class FactoryInterceptorGenerator

java.lang.Object
  extended by org.objectweb.dsrg.sofa.bootstrap.FactoryInterceptorGenerator
All Implemented Interfaces:
SOFAMicroGenerator

public class FactoryInterceptorGenerator
extends java.lang.Object
implements SOFAMicroGenerator

Generates new interceptor which intercepts return from factory methods and creates new delegation chains for the interface connecting to the created component.


Constructor Summary
FactoryInterceptorGenerator()
           
 
Method Summary
 SOFAMicroComponent generate(java.lang.Class iface, java.util.Map<java.lang.String,java.lang.String> parameters)
          This method generates delegating microcomponent for given interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryInterceptorGenerator

public FactoryInterceptorGenerator()
Method Detail

generate

public SOFAMicroComponent generate(java.lang.Class iface,
                                   java.util.Map<java.lang.String,java.lang.String> parameters)
                            throws SOFAException
Description copied from interface: SOFAMicroGenerator
This method generates delegating microcomponent for given interface. Parameters from microarchitecture model MicroComponentInstance are passed.

Specified by:
generate in interface SOFAMicroGenerator
Parameters:
iface - Interface the new microcomponent delegates.
parameters - Parameters to the new microcomponent. Exactly the same parameters will the new microcomponent get in the init() method.
Throws:
SOFAException