org.apache.tapestry5.ioc
Interface Markable

All Known Subinterfaces:
AdvisorDef2, ContributionDef2, ContributionDef3, DecoratorDef2
All Known Implementing Classes:
AdvisorDefImpl, ContributionDefImpl, DecoratorDefImpl

public interface Markable

Interface implemented by objects which need to disambiguate services with marker annotations.

Since:
5.2.2

Method Summary
 Set<Class> getMarkers()
          Returns an optional set of marker annotation.
 Class getServiceInterface()
          Returns the service interface associated with the service.
 

Method Detail

getMarkers

Set<Class> getMarkers()
Returns an optional set of marker annotation. Marker annotations are used to disambiguate services; the combination of a marker annotation and a service type is expected to be unique. Note that it is not possible to identify which annotations are markers and which are not when this set is constructed, so it may include non-marker annotations.

See Also:
ServiceDef.getMarkers()

getServiceInterface

Class getServiceInterface()
Returns the service interface associated with the service.

See Also:
ServiceDef.getServiceInterface()


Copyright © 2003-2012 The Apache Software Foundation.