com.atlassian.plugin
Interface Resourced

All Known Subinterfaces:
ContainerManagedPlugin, DynamicPlugin, ModuleDescriptor<T>, Plugin
All Known Implementing Classes:
AbstractDelegatingPlugin, AbstractModuleDescriptor, AbstractPlugin, DefaultDynamicPlugin, ResourcedModuleDescriptor, Resources, StaticPlugin, UnloadableModuleDescriptor, UnloadablePlugin, UnrecognisedModuleDescriptor, XmlDynamicPlugin

public interface Resourced


Method Summary
 ResourceDescriptor getResourceDescriptor(java.lang.String type, java.lang.String name)
          Get a ResourceDescriptor of a particular type and name.
 java.util.List<ResourceDescriptor> getResourceDescriptors()
          Get a List of all the descriptors .
 java.util.List<ResourceDescriptor> getResourceDescriptors(java.lang.String type)
          Deprecated. since 2.5.0 use getResourceDescriptors() and filter as required
 ResourceLocation getResourceLocation(java.lang.String type, java.lang.String name)
          Get a ResourceLocation of a particular type and name.
 

Method Detail

getResourceDescriptors

java.util.List<ResourceDescriptor> getResourceDescriptors()
Get a List of all the descriptors .

Note: since 2.2 this list must be immutable, previously modifying this list could modify the underlying list.

Returns:
all resource descriptors this object supports.

getResourceDescriptors

@Deprecated
java.util.List<ResourceDescriptor> getResourceDescriptors(java.lang.String type)
Deprecated. since 2.5.0 use getResourceDescriptors() and filter as required

Get a list of all descriptors of a particular type.

Note: since 2.2 this list must be immutable, previously this list was modifiable but modifications would not be reflected in the underlying list.

Returns:
all resource descriptors this object supports.

getResourceDescriptor

ResourceDescriptor getResourceDescriptor(java.lang.String type,
                                         java.lang.String name)
Get a ResourceDescriptor of a particular type and name.

Returns:
the specified resource descriptor if found, null otherwise.

getResourceLocation

ResourceLocation getResourceLocation(java.lang.String type,
                                     java.lang.String name)
Get a ResourceLocation of a particular type and name.

Returns:
the specified resource location if found, null otherwise.


Copyright © 2010 Atlassian. All Rights Reserved.