Skip to main content

[JAI] How conflicts are managed in OperationDescriptor "GlobalName" resource?

1 reply [Last post]
Anonymous

I would like a little clarification for implementors of
OperationDescriptor.getResources(Locale) please.

Given a new OperationDescriptor in some library to be distributed. The
"Vendor" resource is properly defined (e.g. "org.myproject"). What
should be the value for the "GlobalName" resource? Should it be some
kind of fully-qualified name? JAI's operations and the example in the
JAI developper guide use the plain operation name (e.g. "MyOperation"
instead of "org.myproject.MyOperation"). Is it the recommanded practice
for extensions too? If yes, how JAI.create("MyOperation") resolves the
operation when two independant libraries define an image operation
registered under the same name (assuming that no preference order were
set because those libraries do not know about each other)?

Thanks,

Martin Desruisseaux

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
For additional commands, e-mail: interest-help@jai.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Brian Burkhalter

On Thu, 30 Jun 2005, Martin Desruisseaux wrote:

> I would like a little clarification for implementors of
> OperationDescriptor.getResources(Locale) please.
>
> Given a new OperationDescriptor in some library to be distributed. The
> "Vendor" resource is properly defined (e.g. "org.myproject"). What
> should be the value for the "GlobalName" resource? Should it be some
> kind of fully-qualified name? JAI's operations and the example in the
> JAI developper guide use the plain operation name (e.g. "MyOperation"
> instead of "org.myproject.MyOperation"). Is it the recommanded practice
> for extensions too?

Yes. You just need a simple name.

> If yes, how JAI.create("MyOperation") resolves the
> operation when two independant libraries define an image operation
> registered under the same name (assuming that no preference order were
> set because those libraries do not know about each other)?

I believe that registering a second OperationDescriptor with the same name
will cause any already registered OperationDescriptor with that name to be
replaced. With OperationDescriptors there is no concept of preference: the
descriptor provides the general specification of a given operation. It is the
implementations of the general operation to which preferences may be applied.

Brian

----------------
Brian Burkhalter
Advanced Development/Media & Entertainment
Market Development Engineering
Sun Microsystems, Inc.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@jai.dev.java.net
For additional commands, e-mail: interest-help@jai.dev.java.net