public final class PluginInfo extends java.lang.Object
Represents a discovered Grails plugin together with the metadata and resources needed during bootstrap.
A PluginInfo combines the parsed PluginDescriptor, the extracted PluginMetadata, an
optional plugin configuration resource, and whether the plugin originated from dynamic plugin configuration rather
than classpath descriptor discovery.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
equals(java.lang.Object o)Compares this plugin info with another plugin info using the underlying metadata equality semantics. |
|
public Resource |
getConfigResource()Returns the plugin configuration resource associated with this plugin. |
|
public java.lang.String[] |
getDependsOnNames()Returns the plugin names that this plugin depends on. |
|
public java.lang.String[] |
getEvictions()Returns the plugin names evicted by this plugin. |
|
public java.lang.String |
getGrailsVersionRange()Returns the Grails version declared by this plugin. |
|
public java.lang.String[] |
getLoadAfterNames()Returns the plugin names that this plugin prefers to load after. |
|
public java.lang.String[] |
getLoadBeforeNames()Returns the plugin names that this plugin prefers to load before. |
|
public PluginMetadata |
getMetadata()Returns the extracted plugin metadata. |
|
public java.lang.String |
getName()Returns the logical plugin name (for example core or myPlugin). |
|
public java.lang.String[] |
getObservedPluginNames()Returns the plugin names observed by this plugin. |
|
public java.lang.Class<?> |
getPluginClass()Returns the plugin implementation class. |
|
public PluginDescriptor |
getPluginDescriptor()Returns the descriptor that produced this plugin info. |
|
public java.lang.String |
getPluginVersion()Returns the declared plugin version. |
|
public int |
hashCode() |
|
public boolean |
isDynamic()Returns whether this plugin was discovered from a dynamic plugin configuration. |
|
public boolean |
isGrailsVersionCompatible(java.lang.String grailsVersion)Determines whether this plugin declares compatibility with the supplied Grails version. |
|
public java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Compares this plugin info with another plugin info using the underlying metadata equality semantics.
o - the other object to comparetrue if both plugin infos are considered equal by their metadataReturns the plugin configuration resource associated with this plugin.
null if the plugin has no external config resourceReturns the plugin names that this plugin depends on.
Returns the plugin names evicted by this plugin.
Returns the Grails version declared by this plugin.
Returns the plugin names that this plugin prefers to load after.
Returns the plugin names that this plugin prefers to load before.
Returns the extracted plugin metadata.
Returns the logical plugin name (for example core or myPlugin).
Returns the plugin names observed by this plugin.
Returns the plugin implementation class.
Returns the descriptor that produced this plugin info.
Returns the declared plugin version.
Returns whether this plugin was discovered from a dynamic plugin configuration.
true if this plugin came from configured classes or Groovy resources instead of classpath
descriptor discoveryDetermines whether this plugin declares compatibility with the supplied Grails version.
grailsVersion - the Grails version to test againsttrue if the plugin is compatible with the supplied Grails version