[jbosstools-issues] [JBoss JIRA] (JBIDE-10261) Rework on the OpenShift client library
Xavier Coulon (Created) (JIRA)
jira-events at lists.jboss.org
Mon Nov 28 09:22:40 EST 2011
Rework on 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
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