Interface AnalyticsPageNameProvider
-
@ConsumerType public interface AnalyticsPageNameProvider
Interface to be implemented by clients who want to provide their own logic for generatings.pageName
for Analytics or retrievingResource
s from custom pageName's. RegisteredAnalyticsPageNameProvider
will be called based on theirConstants.SERVICE_RANKING
. If one implementation can provide a value, then this value will be taken and remaining providers are not called anymore.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getPageName(AnalyticsPageNameContext context)
Called when pageName for a resource is requested.Resource
getResource(AnalyticsPageNameContext context)
Called when theResource
for a given pageName is requested.
-
-
-
Method Detail
-
getPageName
java.lang.String getPageName(AnalyticsPageNameContext context)
Called when pageName for a resource is requested.- Parameters:
context
- the resolutionAnalyticsPageNameContext
- Returns:
null
or the generated pageName
-
getResource
Resource getResource(AnalyticsPageNameContext context)
Called when theResource
for a given pageName is requested.- Parameters:
context
- the resolutionAnalyticsPageNameContext
- Returns:
null
or the resource that matches the pageName provided via context
-
-