|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.jai.RegistryMode
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.
Constructor Summary | |
protected |
RegistryMode(String name,
Class descriptorClass,
Class productClass,
Method factoryMethod,
boolean arePreferencesSupported,
boolean arePropertiesSupported)
Constructor. |
Method Summary | |
static boolean |
addMode(RegistryMode mode)
Adds a new RegistryMode to the existing list. |
boolean |
arePreferencesSupported()
Does this registry mode support preferences ? |
boolean |
arePropertiesSupported()
Are properties to be managed for this registry mode ? |
Class |
getDescriptorClass()
Returns the descriptor class that corresponds to this registry mode. |
static Set |
getDescriptorClasses()
Get a Set of all descriptor classes over
all registry modes. |
Class |
getFactoryClass()
A convenience method which essentially returns getFactoryMethod().getDeclaringClass() |
Method |
getFactoryMethod()
Get the factory method that corresponds to "create" |
static RegistryMode |
getMode(String name)
Get the registry mode corresponding to this name. |
static String[] |
getModeNames()
Get the list of the known registry mode names. |
static String[] |
getModeNames(Class descriptorClass)
Get a list of all known registry modes associated with the specified descriptorClass . |
String |
getName()
Get the registry mode name (case-preserved) |
Class |
getProductClass()
The Class of the objects produced by this
registry mode. |
static boolean |
removeMode(String name)
Removes a mode from the existing list of known registryModes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected RegistryMode(String name, Class descriptorClass, Class productClass, Method factoryMethod, boolean arePreferencesSupported, boolean arePropertiesSupported)
name
- name of the registry modedescriptorClass
- the specific sub-class of
RegistryElementDescriptor
associated with
this registry mode.productClass
- the Class
of the objects
produced by this registry mode. This would typically
be factoryMethod.getReturnType()
.factoryMethod
- the method used to "create" an object.arePreferencesSupported
- does this registry mode support
preferences between products or instances of the "modes"arePropertiesSupported
- do properties have to be managed
for this registry mode.Method Detail |
public static boolean addMode(RegistryMode mode)
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)mode
- the new RegistryMode to be added to listpublic static boolean removeMode(String name)
mode
- the RegistryMode to be removed from the listpublic static String[] getModeNames()
null
, if there are no registered modes.
Otherwise returns an array of String
s of registered
mode names.public static String[] getModeNames(Class descriptorClass)
descriptorClass
.descriptorClass
- a Class
null
if there are no modes registered
against the specified descriptorClass. Otherwise returns an
array of String
s of mode names associated with the
descriptorClass.public static RegistryMode getMode(String name)
public static Set getDescriptorClasses()
Set
of all descriptor classes over
all registry modes.public final String getName()
public final Method getFactoryMethod()
public final boolean arePreferencesSupported()
public final boolean arePropertiesSupported()
public final Class getDescriptorClass()
public final Class getProductClass()
Class
of the objects produced by this
registry mode.public final Class getFactoryClass()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |