Package org.wildfly.subsystem
Interface SubsystemPersistence<S extends SubsystemSchema<S>>
-
- Type Parameters:
S- the schema type
public interface SubsystemPersistence<S extends SubsystemSchema<S>>Encapsulates the persistence configuration of a subsystem.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>>getReader(S schema)Returns the appropriate StAX reader for the version of the specified schema that parses subsystem XML into a set of management operations.Set<S>getSchemas()Returns the supported schemas of this subsystem.org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext>getWriter(org.jboss.as.version.Stability stability)Returns a StAX writer that writes the subsystem model to XML according to the current schema version for the specified stability level.static <S extends Enum<S> & SubsystemSchema<S>>
SubsystemPersistence<S>of(Map<S,org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext>> currentWriters)Creates the subsystem persistence configuration for the specified writers for current versions of the schema.static <S extends Enum<S> & PersistentSubsystemSchema<S>>
SubsystemPersistence<S>of(Set<S> currentSchemas)Creates the subsystem persistence configuration for the current versions of the schema.static <S extends Enum<S> & PersistentSubsystemSchema<S>>
SubsystemPersistence<S>of(S currentSchema)Creates the subsystem persistence configuration for the current version of the schema.static <S extends Enum<S> & SubsystemSchema<S>>
SubsystemPersistence<S>of(S currentSchema, org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> writer)Creates the subsystem persistence configuration for the current version of the schema and specified writer
-
-
-
Method Detail
-
getSchemas
Set<S> getSchemas()
Returns the supported schemas of this subsystem.- Returns:
- a set of schemas
-
getReader
default org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> getReader(S schema)
Returns the appropriate StAX reader for the version of the specified schema that parses subsystem XML into a set of management operations.- Returns:
- a StAX reader for the version of the specified schema
-
getWriter
org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> getWriter(org.jboss.as.version.Stability stability)
Returns a StAX writer that writes the subsystem model to XML according to the current schema version for the specified stability level.- Parameters:
stability- the stability level of the process- Returns:
- a StAX writer
-
of
static <S extends Enum<S> & PersistentSubsystemSchema<S>> SubsystemPersistence<S> of(S currentSchema)
Creates the subsystem persistence configuration for the current version of the schema.- Type Parameters:
S- the schema type- Parameters:
currentSchema- the current schema version- Returns:
- a subsystem persistence configuration
-
of
static <S extends Enum<S> & PersistentSubsystemSchema<S>> SubsystemPersistence<S> of(Set<S> currentSchemas)
Creates the subsystem persistence configuration for the current versions of the schema.- Type Parameters:
S- the schema type- Parameters:
currentSchemas- the current schema versions- Returns:
- a subsystem persistence configuration
-
of
static <S extends Enum<S> & SubsystemSchema<S>> SubsystemPersistence<S> of(S currentSchema, org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> writer)
Creates the subsystem persistence configuration for the current version of the schema and specified writer- Type Parameters:
S- the schema type- Parameters:
currentSchema- the current schema version- Returns:
- a subsystem persistence configuration
-
of
static <S extends Enum<S> & SubsystemSchema<S>> SubsystemPersistence<S> of(Map<S,org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext>> currentWriters)
Creates the subsystem persistence configuration for the specified writers for current versions of the schema.- Type Parameters:
S- the schema type- Parameters:
currentWirter- the schema writer per current schema version- Returns:
- a subsystem persistence configuration
-
-