Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C8D817B6B for ; Fri, 30 Oct 2015 03:56:16 +0000 (UTC) Received: (qmail 53788 invoked by uid 500); 30 Oct 2015 03:45:46 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 53758 invoked by uid 500); 30 Oct 2015 03:45:46 -0000 Mailing-List: contact dev-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list dev@brooklyn.incubator.apache.org Received: (qmail 53705 invoked by uid 99); 30 Oct 2015 03:45:45 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2015 03:45:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E90C51A2A87 for ; Fri, 30 Oct 2015 03:38:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.991 X-Spam-Level: X-Spam-Status: No, score=0.991 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id XrcSJ5CKd5el for ; Fri, 30 Oct 2015 03:38:29 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id C1D18439CA for ; Fri, 30 Oct 2015 03:38:22 +0000 (UTC) Received: (qmail 37122 invoked by uid 99); 30 Oct 2015 03:34:55 -0000 Received: from Unknown (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2015 03:34:55 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6257DDFA0B; Fri, 30 Oct 2015 03:34:39 +0000 (UTC) From: ahgittin To: dev@brooklyn.incubator.apache.org Reply-To: dev@brooklyn.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-brooklyn pull request: Introduce a type registry as a si... Content-Type: text/plain Message-Id: <20151030033439.6257DDFA0B@git1-us-west.apache.org> Date: Fri, 30 Oct 2015 03:34:39 +0000 (UTC) GitHub user ahgittin reopened a pull request: https://github.com/apache/incubator-brooklyn/pull/993 Introduce a type registry as a simplified catalog Currently simply provides a compatible stateless facade to catalog. A lot more to do -- commit describes the plans -- but I want early review and of course to try to avoid any merge conflicts! Idea of type registry is that this will allow us to generalize atop types (soon adding "beans" alongside the "specs" which is all that catalog previously supported) in order to: * simplify persistence/rebind across versions * define types for local resolution, e.g. when uploading a plan * define types to be used in specialized YAML, e.g. listing tasks for an effector You can merge this pull request into a Git repository by running: $ git pull https://github.com/ahgittin/incubator-brooklyn type-registry Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-brooklyn/pull/993.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #993 ---- commit dc968f9d0dab816df6f6993399f0a84ce5e8810c Author: Alex Heneveld Date: 2015-10-29T22:28:14Z introduce BrooklynTypeRegistry and start migrating Catalog to it remove some of the deprecated Catalog methods, and change many lookups to catalog to lookup in the type registry. NEXT - immediate low-hanging fruit: * move the TypeReg classes to where they belong * finish changing lookups in catalog so all reads go through registry (but writes still go to catalog) NEXT - provide new features: * add TypeReg for Beans, so types can be registered (at least by brooklyn startup code) for relationships, tasks, etc * new TypeReg REST API, including allowing completion proposals for yaml * new PlanToSpecTransformer API, and use the TypeImplementation.kind to pick the transformer to use, so we don't try the stupid attempt-load-with-any-transformer NEXT - clean up: * persist registered types and REST API and addToCatalog allows defining new (e.g. new relationships) * get rid of catalog, or at least deprecate it and make all *writes* to TypeRegistry, and it stores things * optionally, allow interim/multiple TypeRegistry instances to be used when loading catalogs or to resolve deep blueprints commit 4585e2c496a528fe83bcbf2b76bf41603c4fda7c Author: Alex Heneveld Date: 2015-10-30T02:50:34Z fix package name of RelationshipType ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---