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

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

public final class DataSourceComponent
     
     
extends AbstractComponent

Defines the data source information of a configuration. This information allows to access a data source containing property definitions.

Example XML fragment of a data source element within a configuration:

 
   
   

Data Source Element

<datasource>
  <jndiName>java:jboss/datasources/propertiesDS</jndiName>
  <dropTable>false</dropTable>
  <createTable>true</createTable>
</datasource>


Field Summary
static org.jboss.as.controller.SimpleAttributeDefinition CREATE_TABLE
          The attribute that holds the create table flag of the data source.
static org.jboss.as.controller.SimpleAttributeDefinition DROP_TABLE
          The attribute that holds the drop table flag of the data source.
static String DS_ELEMENT_NAME
          The name of the configuration XML element that holds the data source information.
static org.jboss.as.controller.SimpleAttributeDefinition JNDI_NAME
          The attribute that holds the JNDI name of the data source.
 
Fields inherited from class de.smartics.properties.jboss.extension.resources.components.AbstractComponent
writeHandler
 
Constructor Summary
DataSourceComponent(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

DS_ELEMENT_NAME

public static final String DS_ELEMENT_NAME
The name of the configuration XML element that holds the data source information.

The value of this constant is "datasource".

Constant Field Value:
"datasource"

JNDI_NAME

public static final org.jboss.as.controller.SimpleAttributeDefinition JNDI_NAME
The attribute that holds the JNDI name of the data source.


DROP_TABLE

public static final org.jboss.as.controller.SimpleAttributeDefinition DROP_TABLE
The attribute that holds the drop table flag of the data source.


CREATE_TABLE

public static final org.jboss.as.controller.SimpleAttributeDefinition CREATE_TABLE
The attribute that holds the create table flag of the data source.

Constructor Detail

DataSourceComponent

public DataSourceComponent(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.