|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.jboss.extension.resources.components.AbstractComponent de.smartics.properties.jboss.extension.resources.components.DataSourceComponent
public final class DataSourceComponent
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 |
---|
public static final String DS_ELEMENT_NAME
The value of this constant is "datasource".
"datasource"
public static final org.jboss.as.controller.SimpleAttributeDefinition JNDI_NAME
public static final org.jboss.as.controller.SimpleAttributeDefinition DROP_TABLE
drop table
flag of the data source.
public static final org.jboss.as.controller.SimpleAttributeDefinition CREATE_TABLE
create table
flag of the data source.
Constructor Detail |
---|
public DataSourceComponent(org.jboss.as.controller.OperationStepHandler writeHandler)
Method Detail |
---|
public void registerAttributes(org.jboss.as.controller.registry.ManagementResourceRegistration resourceRegistration)
public void populateModel(org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model) throws org.jboss.as.controller.OperationFailedException
org.jboss.as.controller.OperationFailedException
public void read(org.jboss.staxmapper.XMLExtendedStreamReader reader, org.jboss.dmr.ModelNode addOperation) throws XMLStreamException
XMLStreamException
public void write(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode config) throws XMLStreamException
XMLStreamException
public void apply(de.smartics.properties.spi.config.config.PropertiesConfiguration propertiesConfig, org.jboss.dmr.ModelNode model)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |