SlingFilter annotations in aem 6.4

Avatar

Avatar

preethamk694748

Avatar

preethamk694748

preethamk694748

24-10-2018

Hi Team,

Please help me in converting the below scr annotations to osgi annotations for aem 6.4.

@SlingFilter(label="my label" , description = "my desc" , metatype = false, order = -9999)

@Properties({@Property(label = "my label" , description = "my description", name="pattern" , value = "/.*")});

public class MyClass implements Filter

{

}

Thanks,

Preetham K.R

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

883

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

883
Arun_Patidar
MVP

24-10-2018

@Component(service = Filter.class, property = {

  Constants.SERVICE_DESCRIPTION + "= Filter incoming requests and create cookie",

  EngineConstants.SLING_FILTER_SCOPE + "=" + EngineConstants.FILTER_SCOPE_REQUEST,

"sling.filter.pattern=/.*",

  Constants.SERVICE_RANKING + "=-700"

})

Answers (0)