{"issue":{"user":{"id":696742,"login":"thekid","url":"https://api.github.com/users/thekid","avatar_url":"https://secure.gravatar.com/avatar/26f07e3b262e9a80436f368cb11bd0c2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"26f07e3b262e9a80436f368cb11bd0c2"},"milestone":{"created_at":"2011-10-17T16:04:25Z","creator":{"id":127769,"login":"kiesel","url":"https://api.github.com/users/kiesel","avatar_url":"https://secure.gravatar.com/avatar/66552a028d39afd16f21858d7ac9cf41?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"66552a028d39afd16f21858d7ac9cf41"},"open_issues":9,"title":"5.9.0-RELEASE","state":"open","due_on":null,"closed_issues":0,"description":"","number":63,"url":"https://api.github.com/repos/xp-framework/rfc/milestones/63"},"created_at":"2011-12-20T20:03:51Z","title":"Classpath initializers","labels":[{"name":"framework","url":"https://api.github.com/repos/xp-framework/rfc/labels/framework","color":"118f5b"}],"state":"open","updated_at":"2011-12-20T20:03:51Z","id":2617475,"html_url":"https://github.com/xp-framework/rfc/issues/220","closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Scope of Change\r\n==\r\nEvery class path will provide a static initializer which is executed when the given class path element is registered.\r\n\r\n\r\nRationale\r\n==\r\nPrerequisite for XP Framework Modularization - see RFC #204.\r\n\r\n\r\nFunctionality\r\n==\r\nIf a classpath element (a path or a XAR file) contains a file named `module-info.xp`, then it is loaded and initialized.\r\n\r\nmodule-info.xp\r\n--\r\n\r\n```php\r\n<?php\r\n/* This file is part of the XP framework\r\n *\r\n * $Id$\r\n */\r\n\r\n  uses(...);\r\n  \r\n  /**\r\n   * The example module\r\n   *\r\n   * @see http://example.com\r\n   */\r\n  module example {\r\n    // Class body here\r\n  }\r\n?>\r\n```\r\n\r\n\r\nSecurity considerations\r\n==\r\nn/a\r\n\r\n\r\nSpeed impact\r\n==\r\nSlightly slower because loading a class path will add an addition `stat()` call.\r\n\r\n\r\nDependencies\r\n==\r\nNone.\r\n\r\n\r\nRelated documents\r\n==\r\nRFC #0204\r\n","number":220,"url":"https://api.github.com/repos/xp-framework/rfc/issues/220","comments":0,"assignee":null},"action":"opened"}