uDig

«  Debugging Tips   ::   Contents   ::   FeatureSourceOp Example  »

API rules of engagement

We follow the same API rules of engagement as the Eclipse project; a summary of which follows.

What is API:

Everything else is considered an internal implementation detail and should not be used by client code.

If you really need something please ask on the email list, chances are we would be happy to make it available, and are just waiting for someone to ask. One of the ways we have kept the udig application small is by not inventing (or advertising) API until a developers asks.

The eclipse rules go into more details on subclassing and overriding. Please assume we are following eclipse conventions - and feel free to report a bug when we dont.

For more information:

Q: org.locationtech.udig.xyz is optional?

Yes - if you don’t have any plublic API (because you are a pure extention) don’t declare any public api

Q: Implementation is not required?

Correct - if you are simply republishing some jars so that other may depend on them. The org.locationtech.udig.libs plug-in is an example of this.

Q: Can I have subpackages?

Sort of - just not public ones. Please limit your subpackages to your internals (where others cannot depend on them).

Eclipse does keep everything in different class loaders - so one can have two plug-ins with the same Class and different implementations. While this is possible it is not sane.

The RCP forces us to make sharing explicit - hense the reason for plug-ins like org.locationtech.udig.libs.

«  Debugging Tips   ::   Contents   ::   FeatureSourceOp Example  »