Interface SubsystemPersistence<S extends SubsystemSchema<S>>

    • 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

        @Deprecated(forRemoval=true)
        default org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> getWriter()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Replaced by #getWriter(FeatureRegistry)
        Returns a StAX writer that writes the subsystem model to XML according to the current schema version.
        Returns:
        a StAX writer
      • 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
      • of

        @Deprecated(forRemoval=true)
        static <S extends SubsystemSchema<S>,​R extends org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>>> SubsystemPersistence<S> of​(Set<S> schemas,
                                                                                                                                                              Function<S,​R> readerFactory,
                                                                                                                                                              org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> writer)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates the subsystem persistence configuration for the specified set of schemas, reader factory, and writer.
        Type Parameters:
        S - the schema type
        R - the schema reader type
        Parameters:
        schemas - a set of schemas
        readerFactory - a factory for creating an XML reader for a specific schema
        writer - an XML reader
        Returns:
        a subsystem persistence configuration
      • of

        @Deprecated(forRemoval=true)
        static <S extends SubsystemSchema<S>,​R extends org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>>> SubsystemPersistence<S> of​(Set<S> schemas,
                                                                                                                                                              Function<S,​R> readerFactory,
                                                                                                                                                              S currentSchema,
                                                                                                                                                              org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> currentReader,
                                                                                                                                                              org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> writer)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates the subsystem persistence configuration for the current version of the schema and specified writer
        Type Parameters:
        S - the schema type
        R - the schema reader type
        Parameters:
        schemas - a set of schemas
        readerFactory - a factory for creating an XML reader for a specific schema
        currentSchema - the current schema version
        currentReader - the XML reader for the current schema version
        writer - an XML reader
        Returns:
        a subsystem persistence configuration