de.smartics.properties.jboss.extension.resources.components
Class FactoriesComponent
java.lang.Object
de.smartics.properties.jboss.extension.resources.components.AbstractComponent
de.smartics.properties.jboss.extension.resources.components.FactoriesComponent
-
public class FactoriesComponent
-
extends
AbstractComponent
Defines the factories information of a configuration. This configuration adds information about factories to be created as the Service API of Java in META-INF/services
does.
Example XML fragment of a factories element within a configuration:
Factories Element
<factories>
<factory type="de.smartics.properties.api.config.app.ConfigurationPropertiesFactory">
de.smartics.properties.impl.config.jndi.JndiConfigurationPropertiesFactory
</factory>
</factories>
Constructor Summary |
FactoriesComponent(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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROOT_ELEMENT_NAME
public static final String ROOT_ELEMENT_NAME
-
The name of the configuration XML element that holds the factories information.
The value of this constant is "factories".
-
Constant Field Value:
-
"factories"
FACTORIES
public static final SimpleMapAttributeDefinition FACTORIES
-
The attribute that holds the factories. The interface type maps to the implementation type.
FactoriesComponent
public FactoriesComponent(org.jboss.as.controller.OperationStepHandler writeHandler)
-
Default constructor.
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.