Static entities in MuranoPL

Registered by Stan Lagun

Static methods encapsulate algorithms that are not actions that can be performed on any specific object. For example there can be static method "getFreeSpace(instance)" which is a way for anyone to get amount of free space on a target VM. Because shell scripts are located in package resources, visible only in that package and considered to be implementation detail it is important to provide API that can be used to utilize such scripts from other places so that packages would not have to repeat all the utility code. Static methods could be used to provide functionality that is in turn provided by the script.

Static methods can access static properties (and cannot access instance properties). Static properties need to be stored in dedicated section of object model.

Entire classes can be marked static. Static classes cannot be instantiated and inherit by non-static classes. Thus static classes cannot be represented in object model (and cannot have ID)

Blueprint information

Status:
Started
Approver:
None
Priority:
Medium
Drafter:
Stan Lagun
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
Accepted for mitaka
Implementation:
Started
Milestone target:
None
Started by
Stan Lagun

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.