org.infinispan.util
Class ModuleProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by org.infinispan.util.ModuleProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>

public class ModuleProperties
extends Properties

The ModuleProperties class represents Infinispan's module configuration key value pairs. Each Infinispan module is required to provide accompanying infinispan-module.properties in module's jar. An instance of this class represents in-memory representation of infinispan-module.properties file.

Since:
4.0
Author:
Vladimir Blagojevic, Sanne Grinovero
See Also:
Serialized Form

Field Summary
static String MODULE_COMMAND_FACTORY
           
static String MODULE_COMMAND_INITIALIZER
           
static String MODULE_CONFIGURATION_CLASS
           
static String MODULE_LIFECYCLE
           
static String MODULE_NAME_KEY
           
static String MODULE_PROPERTIES_FILENAME
           
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
ModuleProperties()
           
 
Method Summary
 String getCommandFactoryClassName()
           
 String getCommandInitializerClassName()
           
 String getConfigurationClassName()
           
 String getLifecycleClassName()
           
 String getName()
           
static ModuleProperties loadModuleProperties(String moduleName, ClassLoader cl)
           
static Map<Byte,ModuleCommandFactory> moduleCommandFactories(ClassLoader cl)
           
static Map<Byte,ModuleCommandInitializer> moduleCommandInitializers(ClassLoader cl)
           
static Collection<Class<? extends ReplicableCommand>> moduleCommands(ClassLoader cl)
           
static List<ModuleLifecycle> resolveModuleLifecycles(ClassLoader cl)
           
protected  void verify()
           
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MODULE_PROPERTIES_FILENAME

public static final String MODULE_PROPERTIES_FILENAME
See Also:
Constant Field Values

MODULE_NAME_KEY

public static final String MODULE_NAME_KEY
See Also:
Constant Field Values

MODULE_CONFIGURATION_CLASS

public static final String MODULE_CONFIGURATION_CLASS
See Also:
Constant Field Values

MODULE_LIFECYCLE

public static final String MODULE_LIFECYCLE
See Also:
Constant Field Values

MODULE_COMMAND_INITIALIZER

public static final String MODULE_COMMAND_INITIALIZER
See Also:
Constant Field Values

MODULE_COMMAND_FACTORY

public static final String MODULE_COMMAND_FACTORY
See Also:
Constant Field Values
Constructor Detail

ModuleProperties

public ModuleProperties()
Method Detail

loadModuleProperties

public static ModuleProperties loadModuleProperties(String moduleName,
                                                    ClassLoader cl)
                                             throws IOException
Throws:
IOException

resolveModuleLifecycles

public static List<ModuleLifecycle> resolveModuleLifecycles(ClassLoader cl)

getName

public String getName()

getConfigurationClassName

public String getConfigurationClassName()

getLifecycleClassName

public String getLifecycleClassName()

getCommandInitializerClassName

public String getCommandInitializerClassName()

getCommandFactoryClassName

public String getCommandFactoryClassName()

verify

protected void verify()

moduleCommands

public static Collection<Class<? extends ReplicableCommand>> moduleCommands(ClassLoader cl)

moduleCommandFactories

public static Map<Byte,ModuleCommandFactory> moduleCommandFactories(ClassLoader cl)

moduleCommandInitializers

public static Map<Byte,ModuleCommandInitializer> moduleCommandInitializers(ClassLoader cl)

-->

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