Package org.jboss.as.controller
Class PersistentResourceXMLDescription
java.lang.Object
org.jboss.as.controller.PersistentResourceXMLDescription
- All Implemented Interfaces:
ResourceMarshaller,ResourceParser
@Deprecated(forRemoval=true,
since="28.0")
public final class PersistentResourceXMLDescription
extends Object
implements ResourceParser, ResourceMarshaller
Deprecated, for removal: This API element is subject to removal in a future version.
A representation of a resource as needed by the XML parser.
- Author:
- Tomaz Cerar, Stuart Douglas
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated, for removal: This API element is subject to removal in a future version.Some resources require more operations that just a simple add.static interfaceDeprecated, for removal: This API element is subject to removal in a future version.Builds aPersistentResourceXMLDescription.static interfaceDeprecated, for removal: This API element is subject to removal in a future version.Factory for creating aPersistentResourceXMLDescriptionbuilder.static final classDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbuilder(PathElement pathElement) Deprecated.builder(PathElement pathElement, String namespaceURI) Deprecated.builder(PathElement path, org.jboss.staxmapper.Namespace namespace) Deprecated.Deprecated, for removal: This API element is subject to removal in a future version.Creates builder for passed path elementstatic <S extends PersistentSubsystemSchema<S>>
PersistentResourceXMLDescription.Factoryfactory(PersistentSubsystemSchema<S> schema) Deprecated, for removal: This API element is subject to removal in a future version.Creates a factory for creating aPersistentResourceXMLDescriptionbuilders for the specified subsystem schema.Deprecated, for removal: This API element is subject to removal in a future version.voidparse(org.jboss.staxmapper.XMLExtendedStreamReader reader, PathAddress parentAddress, List<org.jboss.dmr.ModelNode> list) Deprecated, for removal: This API element is subject to removal in a future version.Parse xml from providedreaderand add resulting operations to passed listvoidpersist(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode model) Deprecated, for removal: This API element is subject to removal in a future version.voidpersist(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode model, String namespaceURI) Deprecated, for removal: This API element is subject to removal in a future version.voidpersistChildren(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode model) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
getPathElement
Deprecated, for removal: This API element is subject to removal in a future version. -
parse
public void parse(org.jboss.staxmapper.XMLExtendedStreamReader reader, PathAddress parentAddress, List<org.jboss.dmr.ModelNode> list) throws XMLStreamException Deprecated, for removal: This API element is subject to removal in a future version.Parse xml from providedreaderand add resulting operations to passed list- Specified by:
parsein interfaceResourceParser- Parameters:
reader- xml reader to parse fromparentAddress- address of the parent, used as base for all child elementslist- list of operations where result will be put to.- Throws:
XMLStreamException- if any error occurs while parsing
-
persist
public void persist(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode model) throws XMLStreamException Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
persistin interfaceResourceMarshaller- Throws:
XMLStreamException
-
persist
public void persist(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode model, String namespaceURI) throws XMLStreamException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
XMLStreamException
-
persistChildren
public void persistChildren(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode model) throws XMLStreamException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
XMLStreamException
-
builder
@Deprecated public static PersistentResourceXMLDescription.PersistentResourceXMLBuilder builder(PathElement pathElement) Deprecated.Creates builder for passed path element- Parameters:
pathElement- for which we are creating builder- Returns:
- PersistentResourceXMLBuilder
-
builder
@Deprecated public static PersistentResourceXMLDescription.PersistentResourceXMLBuilder builder(PathElement pathElement, String namespaceURI) Deprecated.Creates builder for passed path element- Parameters:
pathElement- for which we are creating buildernamespaceURI- xml namespace to use for this resource, usually used for top level elements such as subsystems- Returns:
- PersistentResourceXMLBuilder
-
builder
@Deprecated public static PersistentResourceXMLDescription.PersistentResourceXMLBuilder builder(PathElement path, org.jboss.staxmapper.Namespace namespace) Deprecated.Creates builder for the given subsystem path and namespace.- Parameters:
path- a subsystem path elementnamespace- the subsystem namespace- Returns:
- a builder for creating a
PersistentResourceXMLDescription.
-
decorator
public static PersistentResourceXMLDescription.PersistentResourceXMLBuilder decorator(String elementName) Deprecated, for removal: This API element is subject to removal in a future version.Creates builder for passed path element- Parameters:
elementName- name of xml element that is used as decorator- Returns:
- PersistentResourceXMLBuilder
- Since:
- 4.0
-
factory
public static <S extends PersistentSubsystemSchema<S>> PersistentResourceXMLDescription.Factory factory(PersistentSubsystemSchema<S> schema) Deprecated, for removal: This API element is subject to removal in a future version.Creates a factory for creating aPersistentResourceXMLDescriptionbuilders for the specified subsystem schema.- Type Parameters:
S- the schema type- Parameters:
schema- a subsystem schema- Returns:
- a factory for creating a
PersistentResourceXMLDescriptionbuilders
-
ResourceXMLParticleFactory