0

我创建了一个吊索过滤器。下面是一个片段 -

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

public class SlingInoFilter implements Filter { 
}

当我部署我的代码时,我希望部署此过滤器但处于禁用状态。这是可以实现的吗?

4

1 回答 1

1

您可以使用 ACS 通用组件禁用器禁用它: https ://adobe-consulting-services.github.io/acs-aem-commons/features/osgi-disablers/component-disabler/index.html

于 2020-09-07T09:29:34.447 回答