org.infinispan.config
Annotation Type ConfigurationElement


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface ConfigurationElement

Represents XML element from a valid Infinispan configuration file.

Each ConfigurationElement should annotate the most derived subclass of AbstractConfigurationBean that contains setter methods for XML attributes of the corresponding XML element (the one that ConfigurationElement represents)

For example, CacheLoaderManagerConfig is annotated with @ConfigurationElement(name="loaders",parent="default") annotation since CacheLoaderManagerConfig is the most derived subclass of AbstractConfigurationBean that contains setter methods for attributes contained in XML element.

Author:
Vladimir Blagojevic
See Also:
GlobalConfiguration, Configuration, CacheLoaderManagerConfig

Required Element Summary
 String name
          Returns name of corresponding XML element
 String parent
          Returns name of corresponding parent XML element.
 
Optional Element Summary
 ConfigurationElement.Cardinality cardinalityInParent
          Returns Cardinality.ONE if parent ConfigurationElement can have zero or one child defined by this ConfigurationElement.
 String description
          Returns description of this element
 

Element Detail

name

public abstract String name
Returns name of corresponding XML element

Returns:

parent

public abstract String parent
Returns name of corresponding parent XML element.

Returns:

cardinalityInParent

public abstract ConfigurationElement.Cardinality cardinalityInParent
Returns Cardinality.ONE if parent ConfigurationElement can have zero or one child defined by this ConfigurationElement. In case parent can have multiple ConfigurationElement with the same name returns Cardinality.UNBOUNDED

Returns:
Default:
ONE

description

public abstract String description
Returns description of this element

Returns:
Default:
""

Google Analytics

Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.