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

Package class diagram package AbstractComponent
java.lang.Object
  extended by de.smartics.properties.jboss.extension.resources.components.AbstractComponent
Direct Known Subclasses:
AdminResourceComponent, CacheComponent, DataSourceComponent, FactoriesComponent, SecurityComponent

public abstract class AbstractComponent
     
     
extends Object

Base class for components.


Field Summary
protected  org.jboss.as.controller.OperationStepHandler writeHandler
          The write handler for all attributes of this component.
 
Constructor Summary
protected AbstractComponent(org.jboss.as.controller.OperationStepHandler writeHandler)
          Default constructor.
 
Method Summary
protected static String getAttribute(org.jboss.dmr.ModelNode resource, org.jboss.as.controller.AttributeDefinition definition)
           
protected static boolean isAtLeastOneDefined(org.jboss.dmr.ModelNode config, org.jboss.as.controller.AttributeDefinition[] definitions)
           
protected static String normalize(String rawText)
           
protected static void readAttribute(org.jboss.staxmapper.XMLExtendedStreamReader reader, org.jboss.dmr.ModelNode addOperation, org.jboss.as.controller.SimpleAttributeDefinition definition)
           
protected static void writeAttribute(org.jboss.staxmapper.XMLExtendedStreamWriter writer, org.jboss.dmr.ModelNode resource, org.jboss.as.controller.AttributeDefinition definition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

writeHandler

protected final org.jboss.as.controller.OperationStepHandler writeHandler
The write handler for all attributes of this component.

Constructor Detail

AbstractComponent

protected AbstractComponent(org.jboss.as.controller.OperationStepHandler writeHandler)
Default constructor.

Method Detail

readAttribute

protected static final void readAttribute(org.jboss.staxmapper.XMLExtendedStreamReader reader,
                                          org.jboss.dmr.ModelNode addOperation,
                                          org.jboss.as.controller.SimpleAttributeDefinition definition)
                                   throws XMLStreamException
Throws:
XMLStreamException

normalize

protected static final String normalize(String rawText)

writeAttribute

protected static final void writeAttribute(org.jboss.staxmapper.XMLExtendedStreamWriter writer,
                                           org.jboss.dmr.ModelNode resource,
                                           org.jboss.as.controller.AttributeDefinition definition)
                                    throws XMLStreamException
Throws:
XMLStreamException

getAttribute

protected static final String getAttribute(org.jboss.dmr.ModelNode resource,
                                           org.jboss.as.controller.AttributeDefinition definition)

isAtLeastOneDefined

protected static final boolean isAtLeastOneDefined(org.jboss.dmr.ModelNode config,
                                                   org.jboss.as.controller.AttributeDefinition[] definitions)


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