|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.ioc.internal.ContributionDefImpl
public class ContributionDefImpl
Constructor Summary | |
---|---|
ContributionDefImpl(String serviceId,
Method contributorMethod,
boolean optional,
PlasticProxyFactory proxyFactory,
Class serviceInterface,
Set<Class> markers)
|
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. |
Set<Class> |
getMarkers()
Returns an optional set of marker annotation. |
String |
getServiceId()
Identifies the service contributed to. |
Class |
getServiceInterface()
Returns the service interface associated with the service. |
boolean |
isOptional()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContributionDefImpl(String serviceId, Method contributorMethod, boolean optional, PlasticProxyFactory proxyFactory, Class serviceInterface, Set<Class> markers)
Method Detail |
---|
public String toString()
toString
in class Object
public boolean isOptional()
isOptional
in interface ContributionDef3
public String getServiceId()
ContributionDef
getServiceId
in interface ContributionDef
public void contribute(ModuleBuilderSource moduleSource, ServiceResources resources, Configuration configuration)
ContributionDef
contribute
in interface ContributionDef
moduleSource
- the source, if needed, of the module instance associated with the contributionresources
- allows access to services visible to the moduleconfiguration
- 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).public void contribute(ModuleBuilderSource moduleSource, ServiceResources resources, OrderedConfiguration configuration)
ContributionDef
contribute
in interface ContributionDef
moduleSource
- the source, if needed, of the module instance associated with the contributionresources
- allows access to services visible to the moduleconfiguration
- 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).public void contribute(ModuleBuilderSource moduleSource, ServiceResources resources, MappedConfiguration configuration)
ContributionDef
contribute
in interface ContributionDef
moduleSource
- the source, if needed, of the module instance associated with the contributionresources
- allows access to services visible to the moduleconfiguration
- 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).public Set<Class> getMarkers()
Markable
getMarkers
in interface Markable
ServiceDef.getMarkers()
public Class getServiceInterface()
Markable
getServiceInterface
in interface Markable
ServiceDef.getServiceInterface()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |