+1 for component.yaml with combined meta-info. Moving forward with this approach can we keep meta-info on *menu-items* of the component in the same file ?
On Mon, Nov 21, 2016 at 3:51 PM, SajithAR Ariyarathna <[email protected]> wrote: > Hi All, > > We are hoping to do $subject. > > *What is 'bindings.yaml'?* > > Through the bindings, app/component developer can push a fragment into a > zone. > > e.g. > > # zone name : fragment name > > org.wso2.carbon.uuf.sample.foundation.usermenu: > "org.wso2.carbon.uuf.sample.simple-auth.usermenu" > > Here, "usermenu" fragment in the "org.wso2.carbon.uuf.sample.simple-auth" > component is pushed (binded) into the "usermenu" zone defined in a layout > in the "org.wso2.carbon.uuf.sample.foundation" component. > > As you can see, content in the 'bindings.yaml' is not configuration, > rather it is meta-info of that component. > > > *Goal of 'component.yaml'.* > > It is intended to be the central place that contains all the meta-info of > an UUF component (similar to the MANIFEST.MF of an OSGi bundle). It gives > the room for new features and future enhancements. For example, we have a > requirement to add microservices to host UI-specific REST APIs. In the > following example 'component.yaml', we have defined REST APIs, along with > some bindings. > > apis: > - className: "org.wso2.carbon.uuf.sample.simpleauth.Users" > uri: "/simpleauth/users" > - className: "org.wso2.carbon.uuf.sample.petsstore.Service" > uri: "/pets" > > bindigs: > - zoneName: "org.wso2.carbon.uuf.sample.foundation.usermenu" > fragments: > - "org.wso2.carbon.uuf.sample.simple-auth.usermenu" > - zoneName: "org.wso2.carbon.uuf.sample.foundation.sidepane" > fragments: > - "org.wso2.carbon.uuf.sample.petsstore.sidemenu" > - "org.wso2.carbon.uuf.sample.simpleauth.sidemenu" > > Also with this approach, we can bind (push) more than one fragment into a > zone. > > > WDYT? > > Thanks. > -- > Sajith Janaprasad Ariyarathna > Software Engineer; WSO2, Inc.; http://wso2.com/ > <https://wso2.com/signature> > -- With Regards, *Rasika Perera* Software Engineer LinkedIn: http://lk.linkedin.com/in/rasika90 <http://wso2.com/signature> WSO2 Inc. www.wso2.com lean.enterprise.middleware
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
