com.intel.gpe.client2.common.configurators
Class BaseConfigurator

java.lang.Object
  extended by com.intel.gpe.client2.common.configurators.BaseConfigurator
Direct Known Subclasses:
FileProviderConfigurator, NetworkConfigurator, SecurityManagerConfigurator, UserDefaultsConfigurator

public class BaseConfigurator
extends java.lang.Object

The convenience methods for loading configurators using Reflection API.

Version:
$Id: BaseConfigurator.java,v 1.2 2006/04/14 13:01:35 lukichev Exp $
Author:
Alexander Lukichev

Constructor Summary
BaseConfigurator()
           
 
Method Summary
static
<Configurator extends BaseConfigurator>
Configurator
load(java.lang.String name, java.lang.String defaultName)
          Load the class specified in the supplied System property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseConfigurator

public BaseConfigurator()
Method Detail

load

public static <Configurator extends BaseConfigurator> Configurator load(java.lang.String name,
                                                                        java.lang.String defaultName)
                                                  throws java.lang.InstantiationException,
                                                         java.lang.IllegalAccessException,
                                                         java.lang.ClassNotFoundException
Load the class specified in the supplied System property.

Type Parameters:
Configurator - the return type
Parameters:
name - the name of the System property
defaultName - the default value of the property
Returns:
the new instance of the loaded configurator
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException


Copyright © 2008. All Rights Reserved.