com.lonniepryor.blues.cfg
Class SingletonCfgImpl

java.lang.Object
  |
  +--com.lonniepryor.blues.cfg.AbstractBeanCfg
        |
        +--com.lonniepryor.blues.cfg.SingletonCfgImpl
All Implemented Interfaces:
SingletonCfg, Verifiable

public class SingletonCfgImpl
extends AbstractBeanCfg
implements SingletonCfg, Verifiable

Generic implementation of SingletonCfg.

Version:
$Revision: 1.1 $
Author:
Lonnie Pryor

Field Summary
 
Fields inherited from interface com.lonniepryor.blues.cfg.SingletonCfg
validImplementationTypes, validSingletonTypes
 
Constructor Summary
SingletonCfgImpl()
          Creates a new SingletonCfgImpl object.
 
Method Summary
 void configure(java.lang.Object implementationInstance)
          Configures an instance of the implementation type.
 java.lang.Class getImplementationType()
          Return the type used to implement the singleon.
 java.lang.Class getSingeltonType()
          Returns the public singleton type.
 void setClass(java.lang.Class singletonType)
          Sets the public singleton type.
 void setImpl(java.lang.Class implementationType)
          Sets the type used to implement the singleon.
 void verify()
          Verifies the state of this configuration element.
 
Methods inherited from class com.lonniepryor.blues.cfg.AbstractBeanCfg
configureBean, configureBean, declareSetBean, declareSetRefrence, declareSetValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingletonCfgImpl

public SingletonCfgImpl()
Creates a new SingletonCfgImpl object.

Method Detail

setClass

public void setClass(java.lang.Class singletonType)
Sets the public singleton type.

Parameters:
singletonType - The public singleton type.

setImpl

public void setImpl(java.lang.Class implementationType)
Sets the type used to implement the singleon.

Parameters:
implementationType - The type used to implement the singleon.

verify

public void verify()
Description copied from interface: Verifiable
Verifies the state of this configuration element.

Specified by:
verify in interface Verifiable

getSingeltonType

public java.lang.Class getSingeltonType()
Description copied from interface: SingletonCfg
Returns the public singleton type.

Specified by:
getSingeltonType in interface SingletonCfg
Returns:
The public singleton type.

getImplementationType

public java.lang.Class getImplementationType()
Description copied from interface: SingletonCfg
Return the type used to implement the singleon.

Specified by:
getImplementationType in interface SingletonCfg
Returns:
The type used to implement the singleon.

configure

public void configure(java.lang.Object implementationInstance)
Description copied from interface: SingletonCfg
Configures an instance of the implementation type.

Specified by:
configure in interface SingletonCfg
Parameters:
implementationInstance - An instance of the implementation type.


Copyright © 2003 Blues Framework. All Rights Reserved.