Welcome to Windows Communication Foundation (WCF)
Top Tasks :

WCF Community Bloggers

Tuesday, November 28, 2006 - Posts

  • MOSS and other Office 2007 Servers Up on MSDN

    As of today, MOSS and all the other Office 2007 Servers are up on MSDN Subscriber. Share this post: Email it! | bookmark it! | digg it! | reddit! | kick it! Read More...
  • Java5, generics, and "just not quite there"

    So an attendee comes up to me at one of the past NFJS shows, with this challenge: The implementation does not know what parametrized Iterable class will be used. The Iterable class will need to know what class it contains. Interfaces are passed to the factory and it calls a lookup to identify (or create) the implementing class. Can this be done without causing a compile warning? items = factory.createBean(null, Seq.class, Item.class); // interface: public abstract T getBean(String localName, Class javaClass, Type... typeArguments); // impl: public T createBean(String localName, Class javaClass, Type... typeArguments) { Resource resource = createResource(localName); Collection rdfTypes = findRdfTypes(javaClass); for (String rdfType : rdfTypes) { addStatement(resource, RDF.TYPE, createResource(rdfType)); } T bean = rdfBeanFactory.createBean(this, resource, rdfTypes, javaClass); if (typeArguments != null && bean instanceof RdfParameterizedBean) ((RdfParameterizedBean)bean).setActualTypeArguments(typeArguments); return bean; } -- Some ideas I have tried. import java.util.Arrays; import java.util.Collection; import java.util.Date; import java.util.HashSet; import java.util.Set; public class test { public static class plain { public static Collection getSomethingOf(Class type, Class contentType) throws Exception { Collection result = (Collection) type.newInstance(); // cast result.addAll(Arrays.asList(contentType.newInstance())); // warning return result; } public static Set getSetOfDate() throws Exception { return (Set ) getSomethingOf(HashSet.class, Date.class); // warning } } public static class fixed { public static Collection getSomethingOf(Class type, Class contentType) throws Exception { Collection result = type.newInstance(); // warning result.addAll(Arrays.asList(contentType.newInstance())); return result; } public static Set getSetOfDate() throws Exception { return (Set ) getSomethingOf(HashSet.class, Date.class); // cast } } public static class external { public static > T getSomethingOf2(Class type, Class contentType) throws Exception { T result = type.newInstance(); result.addAll(Arrays.asList(contentType.newInstance())); return result; } public static Set getSetOfDate2() throws Exception { Class> type = (Class>) HashSet.class; // warning return getSomethingOf2(type, Date.class); } } public static class internal { public static > R getSomethingOf(Class type, Class contentType) throws Exception { R result = (R) type.newInstance(); // warning result.addAll(Arrays.asList(contentType.newInstance())); Read More...
  • New and Notable 129

    Workflow/BPM/WCF/SOA David Chappell presents arguments both pro and con as to whether Microsoft qualifies as a BPM vendor. Personally, I think the answer is yes, especially when WF is intergrated into BizTalk 200x and other products. Nicholas Allan continues the excellent Indigo WCF posts with Controlling the Synchronization Process LINQ and Family/CLR PLINQ, which I blogged about some time ago has surfaced again with this post from DonXML where he does some clever reading of Microsoft job posts! to make some educated speculations on the growing importance of Concurrency and Parallellism in the CLR as well as PLINQ . And yes, Don, "the cool kids [ALREADY] realize that WPF, WCF and WF are yesterday's news, and LINQ is where it is at ;)" Speaking of LINQ, see the XMLTeam blog for the announcement of the LINQ to XSD Preview and these links: Here is the link to the LINQ to XSD download . The LINQ to XSD overview document is available separately. You also need the LINQ download (May 2006 CTP) Here is the link to the LINQ to XSD download . The LINQ to XSD overview document is available separately. You also need the LINQ download (May 2006 CTP) Also from Joe Duffy, see Vista SRWLock acquires during shutdown Architecture Validation Application Block: Revealed! [via Mike ] Technorati Tags: Software Development , Software Architecture , WF , Workflow , BPM , LINQ , PLINQ , SOA , Windows Communication Foundation , WCF , CLR , Windows Vista , Microsoft Share this post: Email it! | bookmark it! | digg it! | reddit! | kick it! Read More...
  • Sorry for the Bad Vista and OS/X Rant - Retraction

    Saturday morning , I let both fustration and excessive over-admiration for Vista features cloud my judgement and I created a really bad, non-objective post. As several readers let me know, they value what I write, and being objective. This post was none of that and that is not acceptable as I hold myself to very high standards. It came off as a zealot's rant, was full of speculation and worse yet, errors. I like to think that I am Man/person enough to be the first to admit my failings here. I ask all of my readers to look at that and continue to read my blog. I value each and every one of my readers and I especially appreciate those who kept me honest. Thanks! Share this post: Email it! | bookmark it! | digg it! | reddit! | kick it! Read More...

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us