| java.lang.Object javax.media.jai.RegistryMode
All known Subclasses: javax.media.jai.registry.RemoteRenderableRegistryMode, javax.media.jai.registry.CollectionRegistryMode, javax.media.jai.registry.TileDecoderRegistryMode, javax.media.jai.registry.RenderableRegistryMode, javax.media.jai.registry.RenderableCollectionRegistryMode, javax.media.jai.registry.RemoteRenderedRegistryMode, javax.media.jai.registry.TileEncoderRegistryMode, javax.media.jai.registry.RenderedRegistryMode,
RegistryMode | public class RegistryMode (Code) | | A class which provides information about a registry mode. The
static methods of the class act to maintain a global list of
known modes. All RegistryMode s known
to JAI are added to this list when this class is loaded. The
RegistryMode s installed by JAI cannot be
replaced or removed.
The String s used to represent the registry modes
are all used in a case-insensitive manner.
since: JAI 1.1 |
Constructor Summary | |
protected | RegistryMode(String name, Class descriptorClass, Class productClass, Method factoryMethod, boolean arePreferencesSupported, boolean arePropertiesSupported) Constructor. |
RegistryMode | protected RegistryMode(String name, Class descriptorClass, Class productClass, Method factoryMethod, boolean arePreferencesSupported, boolean arePropertiesSupported)(Code) | | Constructor. Protected access allows only instantiation of
subclasses.
Parameters: name - name of the registry mode Parameters: descriptorClass - the specific sub-class ofRegistryElementDescriptor associated withthis registry mode. Parameters: productClass - the Class of the objectsproduced by this registry mode. This would typicallybe factoryMethod.getReturnType() . Parameters: factoryMethod - the method used to "create" an object. Parameters: arePreferencesSupported - does this registry mode supportpreferences between products or instances of the "modes" Parameters: arePropertiesSupported - do properties have to be managedfor this registry mode. |
addMode | public static synchronized boolean addMode(RegistryMode mode)(Code) | | Adds a new RegistryMode to the existing list. This
succeeds only if the mode is not already present in the
list. New RegistryMode names can not clash (in a
case insensitive manner) with the ones installed by JAI (done
statically when this class is loaded)
Parameters: mode - the new RegistryMode to be added to list false if the mode was already in the list. true otherwise |
arePreferencesSupported | final public boolean arePreferencesSupported()(Code) | | Does this registry mode support preferences ?
|
arePropertiesSupported | final public boolean arePropertiesSupported()(Code) | | Are properties to be managed for this registry mode ?
|
getDescriptorClass | final public Class getDescriptorClass()(Code) | | Returns the descriptor class that corresponds to this registry mode.
For eg. this would be OperationDescriptor for rendered, renderable,
collection ... and TileCodecDescriptor for tilecodec etc.
|
getDescriptorClasses | public static synchronized Set getDescriptorClasses()(Code) | | Get a Set of all descriptor classes over
all registry modes.
|
getFactoryClass | final public Class getFactoryClass()(Code) | | A convenience method which essentially returns
getFactoryMethod().getDeclaringClass()
|
getFactoryMethod | final public Method getFactoryMethod()(Code) | | Get the factory method that corresponds to "create"
|
getModeNames | public static synchronized String[] getModeNames()(Code) | | Get the list of the known registry mode names.
null , if there are no registered modes.Otherwise returns an array of String s of registeredmode names. |
getModeNames | public static synchronized String[] getModeNames(Class descriptorClass)(Code) | | Get a list of all known registry modes associated with the
specified descriptorClass .
Parameters: descriptorClass - a Class null if there are no modes registeredagainst the specified descriptorClass. Otherwise returns anarray of String s of mode names associated with thedescriptorClass. |
getName | final public String getName()(Code) | | Get the registry mode name (case-preserved)
|
getProductClass | final public Class getProductClass()(Code) | | The Class of the objects produced by this
registry mode.
|
removeMode | public static synchronized boolean removeMode(String name)(Code) | | Removes a mode from the existing list of known registryModes.
If the mode is one of the JAI-installed ones, it can not
be removed.
Parameters: mode - the RegistryMode to be removed from the list false if the mode can not be removed because it was addedby JAI or because the mode was not previously add.returns true otherwise. |
|
|