org.apache.tapestry5.ioc.internal
Class ContributionDefImpl

java.lang.Object
  extended by org.apache.tapestry5.ioc.internal.ContributionDefImpl
All Implemented Interfaces:
ContributionDef

public class ContributionDefImpl
extends Object
implements ContributionDef


Constructor Summary
ContributionDefImpl(String serviceId, Method contributorMethod, ClassFactory classFactory)
           
 
Method Summary
 void contribute(ModuleBuilderSource moduleSource, ServiceResources resources, Configuration configuration)
          Performs the work needed to contribute into the standard, unordered configuration.
 void contribute(ModuleBuilderSource moduleSource, ServiceResources resources, MappedConfiguration configuration)
          Performs the work needed to contribute into the mapped configuration.
 void contribute(ModuleBuilderSource moduleSource, ServiceResources resources, OrderedConfiguration configuration)
          Performs the work needed to contribute into the ordered configuration.
 String getServiceId()
          Identifies the service contributed to.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContributionDefImpl

public ContributionDefImpl(String serviceId,
                           Method contributorMethod,
                           ClassFactory classFactory)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getServiceId

public String getServiceId()
Description copied from interface: ContributionDef
Identifies the service contributed to.

Specified by:
getServiceId in interface ContributionDef

contribute

public void contribute(ModuleBuilderSource moduleSource,
                       ServiceResources resources,
                       Configuration configuration)
Description copied from interface: ContributionDef
Performs the work needed to contribute into the standard, unordered configuration.

Specified by:
contribute in interface ContributionDef
Parameters:
moduleSource - the source, if needed, of the module instance associated with the contribution
resources - allows access to services visible to the module
configuration - the unordered configuration into which values should be loaded. This instance will encapsulate all related error checks (such as passing of nulls or inappropriate classes).

contribute

public void contribute(ModuleBuilderSource moduleSource,
                       ServiceResources resources,
                       OrderedConfiguration configuration)
Description copied from interface: ContributionDef
Performs the work needed to contribute into the ordered configuration.

Specified by:
contribute in interface ContributionDef
Parameters:
moduleSource - the source, if needed, of the module instance associated with the contribution
resources - allows access to services visible to the module
configuration - the ordered configuration into which values should be loaded. This instance will encapsulate all related error checks (such as passing of nulls or inappropriate classes).

contribute

public void contribute(ModuleBuilderSource moduleSource,
                       ServiceResources resources,
                       MappedConfiguration configuration)
Description copied from interface: ContributionDef
Performs the work needed to contribute into the mapped configuration.

Specified by:
contribute in interface ContributionDef
Parameters:
moduleSource - the source, if needed, of the module instance associated with the contribution
resources - allows access to services visible to the module
configuration - the mapped configuration into which values should be loaded. This instance will encapsulate all related error checks (such as passing of null keys or values or inappropriate classes, or duplicate keys).


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.