Interface MembershipSchemaProvider
-
- All Implemented Interfaces:
public interface MembershipSchemaProvider
Provide the membership schema files to client's code ensuring that the load works under OSGi and non-OSGi.
All provided InputStream objects should be closed by the client.
-
-
Method Summary
Modifier and Type Method Description abstract InputStream
getSchema(@NotNull() MembershipSchema schema, @NotNull() Version version)
Retrieve the schema file for a membership schema. abstract InputStream
getSchemaFile(@NotNull() String fileName)
Retrieve a schema file with the given path. -
-
Method Detail
-
getSchema
@NotNull() abstract InputStream getSchema(@NotNull() MembershipSchema schema, @NotNull() Version version)
Retrieve the schema file for a membership schema.
NOTE: This does not resolve $ref fields in the schema file.
- Parameters:
schema
- The membership schema to retrieve.version
- The version of the membership schema to retrieve.
-
getSchemaFile
@NotNull() abstract InputStream getSchemaFile(@NotNull() String fileName)
Retrieve a schema file with the given path.
NOTE: This can be used to retrieve files required to resolve $ref fields in the schema.
- Parameters:
fileName
- The file to retrieve.
-
-
-
-