Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Corona API Changes

Revision as of 08:49, 28 February 2007 by Marcin.okraszewski.compuware.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page is used to propose and discuss changes to Corona API.

Moving code to internal packages

Europa M6 milestone is an API freeze. Everything that is not in internal package is considered to be the API. So, we need to select interfaces and classes which are exposed to other projects to use. Those classes cannot be modified. All things in internal packages can be used as previously.

Repository adapter interface

We should define semantic and return types for all operations.

fetchResource()

  • Currently returns an object.
  • If repository adapter is expected to abstract repository access, the return type cannot change when repository is changed.
  • Some needs:
    • Repository contains files: we might require InputStream.
    • Definitely native resource should be available.
    • Some string representation (eg. file name).
    • Should be tree structure be some how supported?
  • An example object that could be returned:
    public interface IRepositoryResource {
        public InputStream getStream();
        public Object getNativeResource();

        // ????
        public IRepositoryResource getChild();
        public IRepositoryResource getParent();
    }
  • What would return getStream() for SQL repository?

Back to the top