de.smartics.properties.jboss.extension.resources.components
Class AdminResourceComponent

Package class diagram package AdminResourceComponent
java.lang.Object
  extended by de.smartics.properties.jboss.extension.resources.components.AbstractComponent
      extended by de.smartics.properties.jboss.extension.resources.components.AdminResourceComponent

public class AdminResourceComponent
     
     
extends AbstractComponent

Defines the admin resource information of a configuration.

Example XML fragment of a admin resource within a configuration:

 {@markupExample "Admin Resource Element"
 <adminResource>
   <groupId>de.smartics.sandbox</groupId>
   <artifactId>test-application-context-ds</artifactId>
   <version>0.1.0</version>
   <archiveType>pom</archiveType>
   <!-- classifier / -->
 </definitions>
 


Field Summary
static org.jboss.as.controller.SimpleAttributeDefinition ARCHIVE_TYPE
          The attribute that holds the archive type.
static org.jboss.as.controller.SimpleAttributeDefinition ARTIFACT_ID
          The attribute that holds the artifact ID.
static org.jboss.as.controller.SimpleAttributeDefinition CLASSIFIER
          The attribute that holds the classifier.
static org.jboss.as.controller.SimpleAttributeDefinition GROUP_ID
          The attribute that holds the group ID.
static String ROOT_ELEMENT_NAME
          The name of the configuration XML element that holds the admin resource information.
static org.jboss.as.controller.SimpleAttributeDefinition VERSION
          The attribute that holds the version.
 
Fields inherited from class de.smartics.properties.jboss.extension.resources.components.AbstractComponent
writeHandler
 
Constructor Summary
AdminResourceComponent(org.jboss.as.controller.OperationStepHandler writeHandler)
          Default constructor.
 
Method Summary
 void apply(de.smartics.properties.spi.config.config.PropertiesConfiguration propertiesConfig, org.jboss.dmr.ModelNode model)
           
 void populateModel(org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model)
           
 void read(org.jboss.staxmapper.XMLExtendedStreamReader reader, org.jboss.dmr.ModelNode addOperation)
           
 void registerAttributes(org.jboss.as.controller.registry.ManagementResourceRegistration resourceRegistration)
           
 void write(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode config)
           
 
Methods inherited from class de.smartics.properties.jboss.extension.resources.components.AbstractComponent
getAttribute, isAtLeastOneDefined, normalize, readAttribute, writeAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT_ELEMENT_NAME

public static final String ROOT_ELEMENT_NAME
The name of the configuration XML element that holds the admin resource information.

The value of this constant is "adminResource".

Constant Field Value:
"adminResource"

GROUP_ID

public static final org.jboss.as.controller.SimpleAttributeDefinition GROUP_ID
The attribute that holds the group ID.


ARTIFACT_ID

public static final org.jboss.as.controller.SimpleAttributeDefinition ARTIFACT_ID
The attribute that holds the artifact ID.


VERSION

public static final org.jboss.as.controller.SimpleAttributeDefinition VERSION
The attribute that holds the version.


ARCHIVE_TYPE

public static final org.jboss.as.controller.SimpleAttributeDefinition ARCHIVE_TYPE
The attribute that holds the archive type.


CLASSIFIER

public static final org.jboss.as.controller.SimpleAttributeDefinition CLASSIFIER
The attribute that holds the classifier.

Constructor Detail

AdminResourceComponent

public AdminResourceComponent(org.jboss.as.controller.OperationStepHandler writeHandler)
Default constructor.

Method Detail

registerAttributes

public void registerAttributes(org.jboss.as.controller.registry.ManagementResourceRegistration resourceRegistration)

populateModel

public void populateModel(org.jboss.dmr.ModelNode operation,
                          org.jboss.dmr.ModelNode model)
                   throws org.jboss.as.controller.OperationFailedException
Throws:
org.jboss.as.controller.OperationFailedException

read

public void read(org.jboss.staxmapper.XMLExtendedStreamReader reader,
                 org.jboss.dmr.ModelNode addOperation)
          throws XMLStreamException
Throws:
XMLStreamException

write

public void write(org.jboss.staxmapper.XMLExtendedStreamWriter writer,
                  org.jboss.dmr.ModelNode config)
           throws XMLStreamException
Throws:
XMLStreamException

apply

public void apply(de.smartics.properties.spi.config.config.PropertiesConfiguration propertiesConfig,
                  org.jboss.dmr.ModelNode model)


Copyright © 2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.