Package io.wcm.handler.link
Class LinkComponentPropertyResolver
- java.lang.Object
-
- io.wcm.handler.link.LinkComponentPropertyResolver
-
- All Implemented Interfaces:
AutoCloseable
@ProviderType public final class LinkComponentPropertyResolver extends Object implements AutoCloseable
Resolves Link Handler component properties for the component associated with the given resource from content policies and properties defined in the component resource. Please make sure toclose()instances of this class after usage.
-
-
Constructor Summary
Constructors Constructor Description LinkComponentPropertyResolver(@NotNull org.apache.sling.api.resource.Resource resource)Deprecated.LinkComponentPropertyResolver(@NotNull org.apache.sling.api.resource.Resource resource, @NotNull io.wcm.wcm.commons.component.ComponentPropertyResolverFactory componentPropertyResolverFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()@NotNull String @Nullable []getLinkTargetUrlFallbackProperty()
-
-
-
Constructor Detail
-
LinkComponentPropertyResolver
public LinkComponentPropertyResolver(@NotNull @NotNull org.apache.sling.api.resource.Resource resource, @NotNull @NotNull io.wcm.wcm.commons.component.ComponentPropertyResolverFactory componentPropertyResolverFactory)- Parameters:
resource- Resource containing link propertiescomponentPropertyResolverFactory- Component property resolver factory
-
LinkComponentPropertyResolver
@Deprecated public LinkComponentPropertyResolver(@NotNull @NotNull org.apache.sling.api.resource.Resource resource)
Deprecated.- Parameters:
resource- Resource containing link properties
-
-
Method Detail
-
getLinkTargetUrlFallbackProperty
@NotNull public @NotNull String @Nullable [] getLinkTargetUrlFallbackProperty()
- Returns:
- Link target URL fallback property name
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-