View Javadoc
1   package com.atlassian.plugin.schema.descriptor;
2   
3   import com.atlassian.plugin.osgi.external.ListableModuleDescriptorFactory;
4   import com.atlassian.plugin.schema.spi.Schema;
5   
6   import javax.annotation.Nullable;
7   
8   /**
9    * A module factory that provides schemas for module types.
10   *
11   * @since 3.0.0
12   */
13  public interface DescribedModuleDescriptorFactory extends ListableModuleDescriptorFactory {
14      /**
15       * Gets the schema for the given module type.
16       *
17       * @param type the module type for which we'd like to know the schema
18       * @return the schema for the given module type, {@code null} if it can't be found.
19       */
20      @Nullable
21      Schema getSchema(String type);
22  }