2 Replies Latest reply on Jul 7, 2009 8:47 AM by dmlloyd

    BeanMetaDataFactory and value-factory

    dmlloyd

      I want to define a property value to use a value-factory programmatically via BeanMetaDataBuilder. I can see that the XML tag for this maps to AbstractValueFactoryMetaData; can I just instantiate this class directory or will the lack of e.g. a KernelControllerContext get me in trouble? Or is there a BMDF method for this that I just didn't see?

        • 1. Re: BeanMetaDataFactory and value-factory
          alesj

           

          "david.lloyd@jboss.com" wrote:
          can I just instantiate this class directory or will the lack of e.g. a KernelControllerContext get me in trouble?

          Directory? --> Directly?

          It depends on how you're gonna use it.
          Normally it's the MetaDataVisitor that sets this context during
          preprocess (when we set Controller to the KCC) or describe (once we have BeanInfo) phase.
          Meaning if you create your metadata and then pass it to Controller all should be fine.

          "david.lloyd@jboss.com" wrote:

          Or is there a BMDF method for this that I just didn't see?

          BMDF? --> BMDB?

          I'm adding those methods as we speak. :-)

          • 2. Re: BeanMetaDataFactory and value-factory
            dmlloyd

            Can you believe that I edited that post once as it is? Too much work, too little sleep.

            For now I'll just instantiate that class *directly*, and when the *BMDB* methods appear, I'll switch to those.

            Thanks :-)