Return-Path: Delivered-To: apmail-incubator-chemistry-dev-archive@minotaur.apache.org Received: (qmail 61425 invoked from network); 11 Feb 2010 02:52:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2010 02:52:51 -0000 Received: (qmail 11473 invoked by uid 500); 11 Feb 2010 02:52:50 -0000 Delivered-To: apmail-incubator-chemistry-dev-archive@incubator.apache.org Received: (qmail 11335 invoked by uid 500); 11 Feb 2010 02:52:50 -0000 Mailing-List: contact chemistry-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chemistry-dev@incubator.apache.org Delivered-To: mailing list chemistry-dev@incubator.apache.org Received: (qmail 11313 invoked by uid 99); 11 Feb 2010 02:52:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2010 02:52:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2010 02:52:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 42A1B234C48D for ; Wed, 10 Feb 2010 18:52:29 -0800 (PST) Message-ID: <1097590385.199541265856749271.JavaMail.jira@brutus.apache.org> Date: Thu, 11 Feb 2010 02:52:29 +0000 (UTC) From: "Chris Hubick (JIRA)" To: chemistry-dev@incubator.apache.org Subject: [jira] Updated: (CMIS-114) APPObject's lack APP specific typesafe methods In-Reply-To: <1533169474.199521265856749237.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CMIS-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Hubick updated CMIS-114: ------------------------------ Attachment: chemistry_app_type_safety.patch Add APP specific typesafe methods to APPObject API's, have the generic interface method implementations defer to these methods. > APPObject's lack APP specific typesafe methods > ---------------------------------------------- > > Key: CMIS-114 > URL: https://issues.apache.org/jira/browse/CMIS-114 > Project: Chemistry > Issue Type: Improvement > Components: atompub > Reporter: Chris Hubick > Priority: Minor > Attachments: chemistry_app_type_safety.patch > > > Hi. > When using APPContentManager to communicate with my repository, I would like to use the APPObject derived API's, in order to access underlying APP specific information (Link's, etc). The problem is that I end up writing a lot of code containing ugly object cast's like this: > APPContentManager contentManager = new APPContentManager(""); > APPRepository repository = (APPRepository)contentManager.getDefaultRepository(); > APPConnection connection = (APPConnection)repository.getConnection(null); > APPFolder aFolder = (APPFolder)connection.getFolder(""); > When I would rather have the ability to write typesafe code like this: > APPContentManager contentManager = new APPContentManager(""); > APPRepository repository = contentManager.getDefaultAPPRepository(); > APPConnection connection = repository.getAPPConnection(null); > APPFolder aFolder = connection.getAPPFolder(""); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.