public UnityBytecodeProvider(IUnityContainer container)
 {
     this.container = container;
     CollectionTypeFactory = new DefaultCollectionTypeFactory();
     ObjectsFactory = new UnityObjectsFactory(container);
     ProxyFactoryFactory = new UnityProxyFactoryFactory();
 }
 ///<summary>
 /// Creates a new bytecode Provider instance using the specified object factory
 ///</summary>
 ///<param name="listableObjectFactory"></param>
 public BytecodeProvider(IListableObjectFactory listableObjectFactory)
 {
     this.listableObjectFactory = listableObjectFactory;
     this.objectsFactory = new ObjectsFactory(listableObjectFactory);
     this.collectionTypefactory = new DefaultCollectionTypeFactory();
     this.proxyFactoryFactory = new ProxyFactoryFactory();
 }
 ///<summary>
 /// Creates a new bytecode Provider instance using the specified object factory
 ///</summary>
 ///<param name="listableObjectFactory"></param>
 public BytecodeProvider(IListableObjectFactory listableObjectFactory)
 {
     this.listableObjectFactory = listableObjectFactory;
     this.objectsFactory        = new ObjectsFactory(listableObjectFactory);
     this.collectionTypefactory = new DefaultCollectionTypeFactory();
     this.proxyFactoryFactory   = new ProxyFactoryFactory();
 }
示例#4
0
 public NinjectBytecodeProvider(IKernel Kernel)
 {
     kernel                = Kernel;
     objectsFactory        = new ObjectsFactory(Kernel);
     collectionTypeFactory = new DefaultCollectionTypeFactory();
 }
 public EnhancedBytecode(IListableObjectFactory listableObjectFactory)
 {
     this.listableObjectFactory = listableObjectFactory;
     objectsFactory             = new ObjectsFactory(listableObjectFactory);
     collectionTypefactory      = new DefaultCollectionTypeFactory();
 }
示例#6
0
 public CSLBytecodeProvider()
 {
     _objectsFactory        = new CSLObjectsFactory();
     _collectionTypeFactory = new DefaultCollectionTypeFactory();
 }