/** * INTERNAL: * Set the factory class name, used by the MW. */ public void useFactoryInstantiationPolicy(String factoryClassName, String methodName) { getInstantiationPolicy().useFactoryInstantiationPolicy(factoryClassName, methodName); }
/** * INTERNAL: * Set the factory class name, used by the MW. */ public void useFactoryInstantiationPolicy(String factoryClassName, String methodName) { getInstantiationPolicy().useFactoryInstantiationPolicy(factoryClassName, methodName); }
/** * INTERNAL: * Set the factory class name, used by the MW. */ public void useFactoryInstantiationPolicy(String factoryClassName, String methodName, String factoryMethodName) { getInstantiationPolicy().useFactoryInstantiationPolicy(factoryClassName, methodName, factoryMethodName); }
/** * INTERNAL: * Set the factory class name, used by the MW. */ public void useFactoryInstantiationPolicy(String factoryClassName, String methodName, String factoryMethodName) { getInstantiationPolicy().useFactoryInstantiationPolicy(factoryClassName, methodName, factoryMethodName); }
/** * INTERNAL: * Set the factory class name, used by the MW. */ public void useFactoryInstantiationPolicy(String factoryClassName, String methodName) { getInstantiationPolicy().useFactoryInstantiationPolicy(factoryClassName, methodName); }
/** * INTERNAL: * Set the factory class name, used by the MW. */ public void useFactoryInstantiationPolicy(String factoryClassName, String methodName, String factoryMethodName) { getInstantiationPolicy().useFactoryInstantiationPolicy(factoryClassName, methodName, factoryMethodName); }
/** * PUBLIC: * Use an object factory to create new instances of objects built from the database. * The methodName is the name of the * method that will be invoked on the factory. When invoked, it must return a new instance * of the descriptor's class. * * @see #useDefaultConstructorInstantiationPolicy() * @see #useMethodInstantiationPolicy(String) * @see #useFactoryInstantiationPolicy(Class, String) * @see #useFactoryInstantiationPolicy(Class, String, String) */ public void useFactoryInstantiationPolicy(Object factory, String methodName) { getInstantiationPolicy().useFactoryInstantiationPolicy(factory, methodName); }
/** * PUBLIC: * Use an object factory to create new instances of objects built from the database. * The methodName is the name of the * method that will be invoked on the factory. When invoked, it must return a new instance * of the descriptor's class. * * @see #useDefaultConstructorInstantiationPolicy() * @see #useMethodInstantiationPolicy(String) * @see #useFactoryInstantiationPolicy(Class, String) * @see #useFactoryInstantiationPolicy(Class, String, String) */ public void useFactoryInstantiationPolicy(Object factory, String methodName) { getInstantiationPolicy().useFactoryInstantiationPolicy(factory, methodName); }
/** * PUBLIC: * Use an object factory to create new instances of objects built from the database. * The methodName is the name of the * method that will be invoked on the factory. When invoked, it must return a new instance * of the descriptor's class. * * @see #useDefaultConstructorInstantiationPolicy() * @see #useMethodInstantiationPolicy(String) * @see #useFactoryInstantiationPolicy(Class, String) * @see #useFactoryInstantiationPolicy(Class, String, String) */ public void useFactoryInstantiationPolicy(Object factory, String methodName) { getInstantiationPolicy().useFactoryInstantiationPolicy(factory, methodName); }
/** * PUBLIC: * Use an object factory to create new instances of objects built from the database. * The factoryMethodName is a static method declared by the factoryClass. * When invoked, it must return an instance of the factory. The methodName is the name of the * method that will be invoked on the factory. When invoked, it must return a new instance * of the descriptor's class. * * @see #useDefaultConstructorInstantiationPolicy() * @see #useFactoryInstantiationPolicy(Class, String) * @see #useFactoryInstantiationPolicy(Object, String) * @see #useMethodInstantiationPolicy(String) */ public void useFactoryInstantiationPolicy(Class factoryClass, String methodName, String factoryMethodName) { getInstantiationPolicy().useFactoryInstantiationPolicy(factoryClass, methodName, factoryMethodName); }
/** * PUBLIC: * Use an object factory to create new instances of objects built from the database. * The methodName is the name of the * method that will be invoked on the factory. When invoked, it must return a new instance * of the descriptor's class. * The factory will be created by invoking the factoryClass's default constructor. * * @see #useDefaultConstructorInstantiationPolicy() * @see #useMethodInstantiationPolicy(String) * @see #useFactoryInstantiationPolicy(Class, String, String) * @see #useFactoryInstantiationPolicy(Object, String) */ public void useFactoryInstantiationPolicy(Class factoryClass, String methodName) { getInstantiationPolicy().useFactoryInstantiationPolicy(factoryClass, methodName); }
/** * PUBLIC: * Use an object factory to create new instances of objects built from the database. * The factoryMethodName is a static method declared by the factoryClass. * When invoked, it must return an instance of the factory. The methodName is the name of the * method that will be invoked on the factory. When invoked, it must return a new instance * of the descriptor's class. * * @see #useDefaultConstructorInstantiationPolicy() * @see #useFactoryInstantiationPolicy(Class, String) * @see #useFactoryInstantiationPolicy(Object, String) * @see #useMethodInstantiationPolicy(String) */ public void useFactoryInstantiationPolicy(Class factoryClass, String methodName, String factoryMethodName) { getInstantiationPolicy().useFactoryInstantiationPolicy(factoryClass, methodName, factoryMethodName); }
/** * PUBLIC: * Use an object factory to create new instances of objects built from the database. * The methodName is the name of the * method that will be invoked on the factory. When invoked, it must return a new instance * of the descriptor's class. * The factory will be created by invoking the factoryClass's default constructor. * * @see #useDefaultConstructorInstantiationPolicy() * @see #useMethodInstantiationPolicy(String) * @see #useFactoryInstantiationPolicy(Class, String, String) * @see #useFactoryInstantiationPolicy(Object, String) */ public void useFactoryInstantiationPolicy(Class factoryClass, String methodName) { getInstantiationPolicy().useFactoryInstantiationPolicy(factoryClass, methodName); }
/** * PUBLIC: * Use an object factory to create new instances of objects built from the database. * The methodName is the name of the * method that will be invoked on the factory. When invoked, it must return a new instance * of the descriptor's class. * The factory will be created by invoking the factoryClass's default constructor. * * @see #useDefaultConstructorInstantiationPolicy() * @see #useMethodInstantiationPolicy(String) * @see #useFactoryInstantiationPolicy(Class, String, String) * @see #useFactoryInstantiationPolicy(Object, String) */ public void useFactoryInstantiationPolicy(Class factoryClass, String methodName) { getInstantiationPolicy().useFactoryInstantiationPolicy(factoryClass, methodName); }
/** * PUBLIC: * Use an object factory to create new instances of objects built from the database. * The factoryMethodName is a static method declared by the factoryClass. * When invoked, it must return an instance of the factory. The methodName is the name of the * method that will be invoked on the factory. When invoked, it must return a new instance * of the descriptor's class. * * @see #useDefaultConstructorInstantiationPolicy() * @see #useFactoryInstantiationPolicy(Class, String) * @see #useFactoryInstantiationPolicy(Object, String) * @see #useMethodInstantiationPolicy(String) */ public void useFactoryInstantiationPolicy(Class factoryClass, String methodName, String factoryMethodName) { getInstantiationPolicy().useFactoryInstantiationPolicy(factoryClass, methodName, factoryMethodName); }
if ((subClassToInstantiate != null) && (!isAbstract)) { InstantiationPolicy instantiationPolicy = new InstantiationPolicy(); instantiationPolicy.useFactoryInstantiationPolicy(new ConcreteSubclassFactory(subClassToInstantiate), "createConcreteSubclass"); descriptor.setInstantiationPolicy(instantiationPolicy); break;
if (!isAbstract) { InstantiationPolicy instantiationPolicy = new InstantiationPolicy(); instantiationPolicy.useFactoryInstantiationPolicy(new ConcreteSubclassFactory(subClassToInstantiate), "createConcreteSubclass"); descriptor.setInstantiationPolicy(instantiationPolicy); break;