You can create Nucleus components that are based on classes that have constructors that require arguments (parameterized constructors). The Oracle Commerce Platform includes two components that you can use to create components based on classes with parameterized constructors. These components are:
/atg/dynamo/nucleus/ParameterConstructorInstanceFactory
/atg/dynamo/nucleus/MethodInstanceFactory
Use the $instanceFactory
property to specify the component that Nucleus will use to create a component with a parameterized constructor. See instructions for using the instance factory components in ParameterConstructorInstanceFactory and MethodInstanceFactory.