You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2007/10/02 10:52:51 UTC

[jira] Issue Comment Edited: (SLING-28) Simplify the Sling (aka Component) API

    [ https://issues.apache.org/jira/browse/SLING-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531716 ] 

fmeschbe edited comment on SLING-28 at 10/2/07 1:51 AM:
-----------------------------------------------------------------

Commited first proposal in Rev. 581158 as project sling-app in trunk.

The new API can be summarized as follows:

  - The API is renamed to Sling API and all prefixes changed to Sling...
  - Moved the API to the root Sling package org.apache.sling
  - The Component interfaces has been dropped and replaced by just using the Servlet interface
  - An abstract SlingServlet is added, which has a method taking SlingRequest and SlingResponse
  - No special Context and Session implementation any more (just use the ServletContext and HttpSession)
  - SlingResponse is empty: getNamespace is dropped, the other methods are Servlet API 2.4 replicas
  - Require Servlet API 2.4
  - Use servlet name (Servlet.getServletName) as identifier of servlets for Sling
  - Rename Content.getComponentId() to Content.getServletName() method referring to handling servlet

Up for discussion ....

      was (Author: fmeschbe):
    Commited first proposal in Rev. 581158 as project sling-app in trunk.

The new API can be summarized as follows:

  - The API is renamed to Sling API and all prefixes changed to Sling...
  - The Component interfaces has been dropped and replaced by just using the Servlet interface
  - An abstract SlingServlet is added, which has a method taking SlingRequest and SlingResponse
  - No special Context and Session implementation any more (just use the ServletContext and HttpSession)
  - SlingResponse is empty: getNamespace is dropped, the other methods are Servlet API 2.4 replicas
  - Require Servlet API 2.4
  - Use servlet name (Servlet.getServletName) as identifier of servlets for Sling
  - Rename Content.getComponentId() to Content.getServletName() method referring to handling servlet

Up for discussion ....
  
> Simplify the Sling (aka Component) API
> --------------------------------------
>
>                 Key: SLING-28
>                 URL: https://issues.apache.org/jira/browse/SLING-28
>             Project: Sling
>          Issue Type: Improvement
>          Components: API
>            Reporter: Felix Meschberger
>            Priority: Blocker
>             Fix For: 2.0.0
>
>
> JIRA issue to track simplification of the Sling (aka Component) API.
> See http://www.mail-archive.com/sling-dev@incubator.apache.org/msg00177.html for the discussion on the mailing list.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.