NASA World Wind

gov.nasa.worldwind
Interface Factory

All Known Implementing Classes:
BasicElevationModelFactory, BasicFactory, BasicLayerFactory

public interface Factory

General factory interface.


Method Summary
 java.lang.Object createFromConfigSource(java.lang.Object configSource, AVList params)
          Creates an object from a general configuration source.
 java.lang.Object createFromDataConfig(DataConfiguration dataConfig, AVList params)
          Create a component from a specified data configuration, potentially overriding values from the configuration with values from the specified parameters.
 

Method Detail

createFromConfigSource

java.lang.Object createFromConfigSource(java.lang.Object configSource,
                                        AVList params)
Creates an object from a general configuration source.

Parameters:
configSource - the configuration source.
params - properties to apply during object creation.
Returns:
the new object.
Throws:
java.lang.IllegalArgumentException - if the configuration source is null or an empty string.
WWUnrecognizedException - if the type of source or some object-specific value is unrecognized.
WWRuntimeException - if object creation fails. The exception indicating the source of the failure is included as the Throwable.initCause(Throwable).

createFromDataConfig

java.lang.Object createFromDataConfig(DataConfiguration dataConfig,
                                      AVList params)
Create a component from a specified data configuration, potentially overriding values from the configuration with values from the specified parameters.

Parameters:
dataConfig - the configuration information describing the component.
params - key-value parameters which override or supplement the information provided in the specified configuration. A null reference is permitted.
Returns:
an instance of the requested class.
Throws:
WWRuntimeException - if the class cannot be created for any reason.

NASA World Wind