Archit Arora
Archit Arora

Reputation: 2626

Parameter to disable Sling filter in AEM

I have created a sling filter. Below is a snippet -

@SlingFilter(label = "My filter", description = "Myfilter", metatype = true, generateComponent = true, generateService = true, order = 0, scope = SlingFilterScope.INCLUDE)

public class SlingInoFilter implements Filter { 
}

When I deploy my code, I want this filter to be deployed but in a disabled state. Is this achievable?

Upvotes: 0

Views: 394

Answers (1)

Pakira
Pakira

Reputation: 2021

You can disable it by using ACS commons component disabler: https://adobe-consulting-services.github.io/acs-aem-commons/features/osgi-disablers/component-disabler/index.html

Upvotes: 1

Related Questions