Package com.day.cq.personalization
Interface TargetResourceTypeProvider
The
TargetResourceTypeProvider allows implementing classes to register a resource type
to be used instead of the default targeting resource type. The default resource type is
personalization/components/target which provides the default AEM targeting behavior
however if custom behavior is required, implementing classes can register a resource type that support
their targeting specific requirements.
Classes that implement the TargetResourceTypeProvider register their service with a property name
of TargetResourceTypeProvider.PROP_RESOURCE_PROVIDER and a value of their specific resource type.
@Property(name = TargetResourceTypeProvider.PROP_RESOURCE_PROVIDER, value = MyCustomTargetResourceTypeProvider.RESOURCE_TYPE)-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the service registration property indicating the name of the operation provided by the operation implementation. -
Method Summary
Modifier and TypeMethodDescriptionReturn the resource type associated with the provider.
-
Field Details
-
PROP_RESOURCE_PROVIDER
The name of the service registration property indicating the name of the operation provided by the operation implementation. The value of this service property must be a single String.- See Also:
-
-
Method Details
-
getResourceType
String getResourceType()Return the resource type associated with the provider.- Returns:
- the resource type.
-