objectfactory

How to reference Spring.Net's ObjectFactory in the config?

I would like to use prototype interceptors instead of a singleton interceptor so each session would get a new interceptor instance. I looked into the HibernateTransactionManager Class and I think "EntityInterceptorObjectName" and "ObjectFactory" are the properties I have to set. While EntityInterceptorObjectName is pretty obvious, I ha...

JAXB ObjectFactory doubt!

Hi. The object Factory class of JAXB from java, does instances creation. OK. But, is there a way to change the method creation, passing a enum parameter like: public Country createCountry() { return new Country(); } to public Country createCountry(CountryType type) { switch (type) { case:US return new USCou...

StructureMap, ObjectFactory and the IContainer

I'm working with StructureMap for my IoC needs. To make things pleasantly testable, I'm passing IContainer instances around wherever possible, usually as constructor parameters. As a convenience, I'd like to be able to fall back to using ObjectFactory for a parameterless constructor. The simplest way (I thought) to do this would be to ...

Objective C : Given a Class id, can I check if this class implements a certain protocol? Or has a certain selector?

I want to use this for an object factory: Given a string, create a Class, and if this Class supports a protocol (with a Create() method) then alloc the class and call Create. ...

How to generate several versions of Java classes generated by JAXB ?

Hello, I recently generate two versions of Java classes generated by JAXB. So I get two packages : V1_0 and V2_0 I notice that I have only one ObjectFactory generated. The problem is that this ObjectFactory is specific to a version (here it's specific to my version v1_0). So the question is : Could I configure JAXB to allow to make on...

How can I check the validity of a wsdl because i got IllegalAnnotationsException ?

I have generated a java package with the wsdl2java CXF command. Now i want to deploy the wsdl to the tomcat server but I got these errors in logs when i start the server I use opebEjb. It looks like the wsdl is not valid. How can i check this? Log: Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceCo...

StructureMap IOC named instances help.

Hi, Having a problem with StructureMap IOC. I wish to retrieve different concrete implementations of objects that implement the same interface based on labels or names. internal static class InstanceHelper { internal enum Taxonomy { Foo, Bar } static InstanceHelper() { // Initialize th...