public abstract class DSPFactory extends Object
Modifier and Type | Field and Description |
---|---|
protected List<Class> |
dspRegistry
Define a map of known DSP classes.
|
Constructor and Description |
---|
DSPFactory() |
Modifier and Type | Method and Description |
---|---|
DSP |
create(String path) |
boolean |
dspRegistered(Class klass)
See if a specific DSP is registered
|
void |
dspUnregister(Class klass)
Unregister dsp.
|
void |
registerDSP(Class klass)
Register a DSP class.
|
void |
registerDSP(Class klass,
boolean last)
Register a DSP class.
|
void |
registerDSP(String className)
Register a DSP, using its class string name.
|
public void registerDSP(String className) throws DapException
className
- Class that implements DSP.IllegalAccessException
- if class is not accessible.InstantiationException
- if class doesnt have a no-arg constructor.ClassNotFoundException
- if class not found.DapException
public void registerDSP(Class klass)
klass
- Class that implements DSP.IllegalAccessException
- if class is not accessible.InstantiationException
- if class doesnt have a no-arg constructor.ClassCastException
- if class doesnt implement DSP interface.public void registerDSP(Class klass, boolean last)
klass
- Class that implements DSP.last
- true=>insert at the end of the list; otherwise frontIllegalAccessException
- if class is not accessible.InstantiationException
- if class doesnt have a no-arg constructor.ClassCastException
- if class doesnt implement DSP interface.public boolean dspRegistered(Class klass)
klass
- Class for which to searchpublic void dspUnregister(Class klass)
klass
- Class for which to searchpublic DSP create(String path) throws DapException
path
- DapException
Copyright © 1999–2017 UCAR/Unidata. All rights reserved.