Class PluginAnnotation<T extends Annotation>


  • public class PluginAnnotation<T extends Annotation>
    extends Object
    DTO for resolved plugin annotation properties.

    Either method OR field is filled - never both (annotation on method or field).

    Author:
    Jiri Bubnik
    • Constructor Detail

      • PluginAnnotation

        public PluginAnnotation​(Class<?> pluginClass,
                                Object plugin,
                                T annotation,
                                Method method)
      • PluginAnnotation

        public PluginAnnotation​(Class<?> pluginClass,
                                Object plugin,
                                T annotation,
                                Field field)
    • Method Detail

      • getPluginClass

        public Class<?> getPluginClass()
        Return plugin class (the plugin to which this annotation belongs - not necessarily declaring class.
      • getPlugin

        public Object getPlugin()
      • getAnnotation

        public T getAnnotation()
      • getMethod

        public Method getMethod()
      • getField

        public Field getField()
      • shouldCheckVersion

        public boolean shouldCheckVersion()
      • isFallBack

        public boolean isFallBack()
        Returns:
        true, if plugin is fallback
      • getGroup

        public String getGroup()
        Returns:
        the plugin group
      • matches

        public boolean matches​(DeploymentInfo deploymentInfo)
        Matches.
        Parameters:
        deploymentInfo - the deployment info
        Returns:
        true, if successful
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object