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

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

public final class CacheComponent
     
     
extends AbstractComponent

Defines the cache information of a configuration.

Example XML fragment of a cache within a configuration:

 
   
   

Cache Element

<cache>
  <jndiName>java:jboss/infinispan/container/smartics-properties</jndiName>
</cache>


Field Summary
static String CACHE_ELEMENT_NAME
          The name of the configuration XML element that holds the cache information.
static org.jboss.as.controller.SimpleAttributeDefinition CACHE_NAME
          The attribute that holds the name of the cache within the container.
static org.jboss.as.controller.SimpleAttributeDefinition JNDI_NAME
          The attribute that holds the JNDI name of the cache container.
 
Fields inherited from class de.smartics.properties.jboss.extension.resources.components.AbstractComponent
writeHandler
 
Constructor Summary
CacheComponent(org.jboss.as.controller.OperationStepHandler writeHandler)
          Default constructor.
 
Method Summary
 void apply(String identifier, 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

CACHE_ELEMENT_NAME

public static final String CACHE_ELEMENT_NAME
The name of the configuration XML element that holds the cache information.

The value of this constant is "cache".

Constant Field Value:
"cache"

JNDI_NAME

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


CACHE_NAME

public static final org.jboss.as.controller.SimpleAttributeDefinition CACHE_NAME
The attribute that holds the name of the cache within the container.

Constructor Detail

CacheComponent

public CacheComponent(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(String identifier,
                  de.smartics.properties.spi.config.config.PropertiesConfiguration propertiesConfig,
                  org.jboss.dmr.ModelNode model)


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