NASA World Wind

gov.nasa.worldwind
Interface Factory

All Known Implementing Classes:
BasicElevationModelFactory, BasicFactory, BasicLayerFactory

public interface Factory

General factory interface.


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

Method Detail

createFromConfigSource

Object createFromConfigSource(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:
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).

NASA World Wind