com.atlassian.plugin
Interface Resourced

All Known Subinterfaces:
DynamicPlugin, ModuleDescriptor<T>, Plugin, WebFragmentModuleDescriptor<T>, WebItemModuleDescriptor<T>, WebSectionModuleDescriptor<T>
All Known Implementing Classes:
AbstractDelegatingPlugin, AbstractModuleDescriptor, AbstractPlugin, AbstractWebFragmentModuleDescriptor, BaseServletModuleDescriptor, ComponentImportModuleDescriptor, ComponentModuleDescriptor, DefaultAbstractWebFragmentModuleDescriptor, DefaultDynamicPlugin, DefaultWebItemModuleDescriptor, DefaultWebSectionModuleDescriptor, DownloadStrategyModuleDescriptor, ModuleTypeModuleDescriptor, OsgiBundlePlugin, OsgiPlugin, ResourcedModuleDescriptor, Resources, ServletContextListenerModuleDescriptor, ServletContextParamModuleDescriptor, ServletFilterModuleDescriptor, ServletModuleDescriptor, StaticPlugin, UnloadableModuleDescriptor, UnloadablePlugin, UnrecognisedModuleDescriptor, WebResourceModuleDescriptor, 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)
          Get a list of all descriptors of a particular type.
 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

java.util.List<ResourceDescriptor> getResourceDescriptors(java.lang.String type)
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 © 2009 Atlassian Pty Ltd. All Rights Reserved.