lookupSPIName

Looks up SPI name (static "NAME" field) with appropriate modifiers. Also it must be a String class and declared in the concrete class.

Return

the SPI name

Throws

NoSuchFieldException
  • if the "NAME" field is not defined.

IllegalAccessException
  • if the "NAME" field is inaccessible.

  • if the "NAME" field does not have appropriate modifiers or isn't a String field.