public class PluginDescriptor extends java.lang.Object
Represents a parsed Grails plugin descriptor discovered on the classpath.
A descriptor captures the source Resource together with the plugin implementation classes declared by the descriptor and any additional provided class names contributed by the plugin.
| Constructor and description |
|---|
PluginDescriptor(Resource resource, java.util.List<java.lang.String> providedPlugins, java.util.List<java.lang.String> providedClasses)Creates a plugin descriptor. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
equals(java.lang.Object o)Compares this descriptor with another descriptor using the resource, provided plugin classes, and provided class names. |
|
public java.util.List<java.lang.String> |
getProvidedClasses()Returns the non-plugin classes contributed by this descriptor. |
|
public java.util.List<java.lang.String> |
getProvidedPlugins()Returns the plugin implementation classes declared by this descriptor. |
|
public Resource |
getResource()Returns the source resource for this descriptor. |
|
public int |
hashCode() |
|
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) |
Creates a plugin descriptor.
resource - the source resource from which the descriptor was readprovidedPlugins - the fully qualified plugin implementation class names declared by the descriptorprovidedClasses - the fully qualified provided class names declared by the descriptorCompares this descriptor with another descriptor using the resource, provided plugin classes, and provided class names.
o - the other object to comparetrue if the descriptors describe the same resource and declared classesReturns the non-plugin classes contributed by this descriptor.
Returns the plugin implementation classes declared by this descriptor.
Returns the source resource for this descriptor.