Class PluginAnnotation<T extends Annotation>
- java.lang.Object
-
- org.hotswap.agent.annotation.handler.PluginAnnotation<T>
-
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 Summary
Constructors Constructor Description PluginAnnotation(Class<?> pluginClass, Object plugin, T annotation, Field field)PluginAnnotation(Class<?> pluginClass, Object plugin, T annotation, Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)TgetAnnotation()FieldgetField()StringgetGroup()MethodgetMethod()ObjectgetPlugin()Class<?>getPluginClass()Return plugin class (the plugin to which this annotation belongs - not necessarily declaring class.inthashCode()booleanisFallBack()booleanmatches(DeploymentInfo deploymentInfo)Matches.booleanshouldCheckVersion()StringtoString()
-
-
-
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
-
-