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 /**
16 * Gets the schema for the given module type.
17 *
18 * @param type the module type for which we'd like to know the schema
19 * @return the schema for the given module type, {@code null} if it can't be found.
20 */
21 @Nullable
22 Schema getSchema(String type);
23 }