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

Package class diagram package FactoriesComponent
java.lang.Object
  extended by de.smartics.properties.jboss.extension.resources.components.AbstractComponent
      extended by 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>


Field Summary
static SimpleMapAttributeDefinition FACTORIES
          The attribute that holds the factories.
static String ROOT_ELEMENT_NAME
          The name of the configuration XML element that holds the factories information.
 
Fields inherited from class de.smartics.properties.jboss.extension.resources.components.AbstractComponent
writeHandler
 
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 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 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.

Constructor Detail

FactoriesComponent

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