Package org.wildfly.subsystem
Class SubsystemPersistence.DefaultSubsystemPersistence<S extends SubsystemSchema<S>,R extends org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>>>
- java.lang.Object
-
- org.wildfly.subsystem.SubsystemPersistence.DefaultSubsystemPersistence<S,R>
-
- All Implemented Interfaces:
SubsystemPersistence<S>
- Enclosing interface:
- SubsystemPersistence<S extends SubsystemSchema<S>>
public static class SubsystemPersistence.DefaultSubsystemPersistence<S extends SubsystemSchema<S>,R extends org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>>> extends Object implements SubsystemPersistence<S>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.wildfly.subsystem.SubsystemPersistence
SubsystemPersistence.DefaultSubsystemPersistence<S extends SubsystemSchema<S>,R extends org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>>>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()Returns a StAX writer that writes the subsystem model to XML according to the current schema version.
-
-
-
Method Detail
-
getSchemas
public Set<S> getSchemas()
Description copied from interface:SubsystemPersistenceReturns the supported schemas of this subsystem.- Specified by:
getSchemasin interfaceSubsystemPersistence<S extends SubsystemSchema<S>>- Returns:
- a set of schemas
-
getReader
public org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> getReader(S schema)
Description copied from interface:SubsystemPersistenceReturns the appropriate StAX reader for the version of the specified schema that parses subsystem XML into a set of management operations.- Specified by:
getReaderin interfaceSubsystemPersistence<S extends SubsystemSchema<S>>- Returns:
- a StAX reader for the version of the specified schema
-
getWriter
public org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> getWriter()
Description copied from interface:SubsystemPersistenceReturns a StAX writer that writes the subsystem model to XML according to the current schema version.- Specified by:
getWriterin interfaceSubsystemPersistence<S extends SubsystemSchema<S>>- Returns:
- a StAX writer
-
-