0

I am replacing some deprecated Javadoc annotation in code I am unfamiliar with. Most javadoc annotations easily translate to org.apache.felix.scr.annotations, but I'm not sure how to translate this one:

/**
 * @scr.property
 *   nameRef="org.apache.sling.auth.core.spi.AuthenticationHandler.PATH_PROPERTY"
 *   values.0="/"
*/

What @Property annotation does the above translate to--particularly the nameRef portion?

@Property( ???)
Shawn
  • 8,374
  • 5
  • 37
  • 60

1 Answers1

1

Took a guess...simple enough once it dawned on me that the Javadoc syntax was saying the name referred to some enum value. Guess I was having a momentary lapse of reason:

@Property(
     name = org.apache.sling.auth.core.spi.AuthenticationHandler.PATH_PROPERTY,
     value = "/"
)

Similar for valueRef, which I encountered in another item.

Shawn
  • 8,374
  • 5
  • 37
  • 60