mondrian.rolap
Class SqlMemberSource.ValuePoolFactoryFactory

java.lang.Object
  extended by mondrian.util.ObjectFactory<T>
      extended by mondrian.util.ObjectFactory.Singleton<SqlMemberSource.ValuePoolFactory>
          extended by mondrian.rolap.SqlMemberSource.ValuePoolFactoryFactory
Enclosing class:
SqlMemberSource

public static final class SqlMemberSource.ValuePoolFactoryFactory
extends ObjectFactory.Singleton<SqlMemberSource.ValuePoolFactory>

Creates the ValuePoolFactory which is in turn used to create property-value maps for member properties.

The name of the ValuePoolFactory is drawn from MondrianProperties.SqlMemberSourceValuePoolFactoryClass in mondrian.properties. If unset, it defaults to SqlMemberSource.NullValuePoolFactory.


Nested Class Summary
 
Nested classes/interfaces inherited from class mondrian.util.ObjectFactory
ObjectFactory.Context, ObjectFactory.Singleton<T>
 
Field Summary
 
Fields inherited from class mondrian.util.ObjectFactory.Singleton
singleInstance, testSingleInstance
 
Method Summary
protected  SqlMemberSource.ValuePoolFactory getDefault(Class[] parameterTypes, Object[] parameterValues)
          For most uses (other than testing) this is the method that derived classes implement that return the desired object.
protected  org.eigenbase.util.property.StringProperty getStringProperty()
          Return the StringProperty associated with this factory.
static SqlMemberSource.ValuePoolFactory getValuePoolFactory()
          Access the ValuePoolFactory instance.
 
Methods inherited from class mondrian.util.ObjectFactory.Singleton
getObject, getTestObject
 
Methods inherited from class mondrian.util.ObjectFactory
defaultCreationException, getClassName, getClassName, getObject, getObject, getObject, getObject, removeContext, restoreContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValuePoolFactory

public static SqlMemberSource.ValuePoolFactory getValuePoolFactory()
Access the ValuePoolFactory instance.

Returns:
the Map.

getStringProperty

protected org.eigenbase.util.property.StringProperty getStringProperty()
Description copied from class: ObjectFactory
Return the StringProperty associated with this factory.

Specified by:
getStringProperty in class ObjectFactory<SqlMemberSource.ValuePoolFactory>
Returns:
the StringProperty

getDefault

protected SqlMemberSource.ValuePoolFactory getDefault(Class[] parameterTypes,
                                                      Object[] parameterValues)
                                               throws CreationException
Description copied from class: ObjectFactory
For most uses (other than testing) this is the method that derived classes implement that return the desired object.

Specified by:
getDefault in class ObjectFactory<SqlMemberSource.ValuePoolFactory>
Parameters:
parameterTypes - the class parameters that define the signature of the constructor to use
parameterValues - the values to use to construct the current instance of the object
Returns:
the newly created object
Throws:
CreationException - if unable to create the object

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads