[jbosstools-issues] [JBoss JIRA] (JBIDE-10261) Remove (internal) information duplication in the OpenShift client library

Andre Dietisheim (Updated) (JIRA) jira-events at lists.jboss.org
Mon Dec 12 17:16:11 EST 2011


     [ https://issues.jboss.org/browse/JBIDE-10261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andre Dietisheim updated JBIDE-10261:
-------------------------------------

    Summary: Remove (internal) information duplication in the OpenShift client library  (was: Rework on the OpenShift client library)

    
> Remove (internal) information duplication in the OpenShift client library
> -------------------------------------------------------------------------
>
>                 Key: JBIDE-10261
>                 URL: https://issues.jboss.org/browse/JBIDE-10261
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: openshift
>    Affects Versions: 3.3.0.M4
>            Reporter: Xavier Coulon
>            Assignee: Andre Dietisheim
>             Fix For: 3.3.0.Beta2
>
>
> Rework on the OpenShift client library to avoid duplicate and potentially out-of-sync layers of Objects on the client side, while still being able to lazyly load the data from OpenShift when they are queried:
> Code sample :
> {code}
> public String getRhlogin() throws OpenShiftException {
>   if (rhlogin == null) {
>     refresh();
>   }
>   return rhlogin;
> }
>  
> public void refresh() throws OpenShiftException {
>   UserInfo userInfo = service.getUserInfo(this);
>   this.uuid = userInfo.getUuid();
>   this.namespace = userInfo.getNamespace();
>   this.rhcDomain = userInfo.getRhcDomain();
>   this.sshKey = userInfo.getSshPublicKey();
>   this.domain = new Domain(
>     this.namespace
>     , this.rhcDomain
>     , this
>     , service);
>   this.applications = null;
> }
> {code}
> Idem for the list of applications, perhaps using a custom ApplicationList (extends List<Application>) instance which would maintain an internal state value (initialized : boolean), and that would be able to call the OpenShift service when necessary (a bit in the Hibernate way of managing lazy containers)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list