org.gcube.portlets.user.homelibrary.util.config
Class HomeLibraryConfiguration

java.lang.Object
  extended by org.gcube.portlets.user.homelibrary.util.config.HomeLibraryConfiguration

public class HomeLibraryConfiguration
extends Object

Author:
Federico De Faveri defaveri@isti.cnr.it

Field Summary
protected  ComponentConfiguration componentConfiguration
           
protected static HomeLibraryConfiguration configuration
           
protected static String DEFAULT_PROPERTY_FILES
           
static String HOME_LIBRARY_PERSISTENCE_DIR_VARIABLE_NAME
          Home Library persistence dir variable name.
protected  org.apache.log4j.Logger logger
           
protected static String PERSISTENCE_FOLDER
           
protected  ComponentProperties properties
           
 
Constructor Summary
protected HomeLibraryConfiguration()
           
 
Method Summary
 Class<?> getHomeManagerFactoryClass()
          Returns the HomeManagerFactory class to use.
static HomeLibraryConfiguration getInstance()
          Returns the HomeLibraryConfiguration singleton instance.
 String getPersistenceFolder()
          Returns the persistence folder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOME_LIBRARY_PERSISTENCE_DIR_VARIABLE_NAME

public static final String HOME_LIBRARY_PERSISTENCE_DIR_VARIABLE_NAME
Home Library persistence dir variable name.

See Also:
Constant Field Values

PERSISTENCE_FOLDER

protected static final String PERSISTENCE_FOLDER
See Also:
Constant Field Values

DEFAULT_PROPERTY_FILES

protected static final String DEFAULT_PROPERTY_FILES
See Also:
Constant Field Values

configuration

protected static HomeLibraryConfiguration configuration

componentConfiguration

protected ComponentConfiguration componentConfiguration

properties

protected ComponentProperties properties

logger

protected org.apache.log4j.Logger logger
Constructor Detail

HomeLibraryConfiguration

protected HomeLibraryConfiguration()
Method Detail

getInstance

public static HomeLibraryConfiguration getInstance()
Returns the HomeLibraryConfiguration singleton instance.

Returns:
the singleton instance.

getHomeManagerFactoryClass

public Class<?> getHomeManagerFactoryClass()
                                    throws ClassNotFoundException
Returns the HomeManagerFactory class to use.

Returns:
the class to use as HomeManagerFactory.
Throws:
ClassNotFoundException - if the specified class is not found.

getPersistenceFolder

public String getPersistenceFolder()
                            throws InternalErrorException
Returns the persistence folder.

Returns:
the persistence folder to use.
Throws:
InternalErrorException - if an error occurs calculating the persistence folder.


Copyright © 2013. All Rights Reserved.