22 params.
addParam<std::vector<std::string>>(
"register_objects_from",
23 "The names of other applications from which objects "
24 "will be registered from (dynamic registration).");
25 params.
addParam<std::vector<std::string>>(
26 "object_names",
"The names of the objects to register (Default: register all).");
27 params.
addParam<std::string>(
"library_path",
29 "Path to search for dynamic libraries (please "
30 "avoid committing absolute paths in addition to "
31 "MOOSE_LIBRARY_PATH)");
35 "The file name of the library (*.la file) that will be dynamically loaded.");
53 std::vector<std::string> application_names =
54 getParam<std::vector<std::string>>(
"register_objects_from");
55 for (
const auto & app_name : application_names)
61 getParam<std::string>(
"library_path"),
62 getParam<std::string>(
"library_name"));
registerMooseAction("MooseApp", DynamicObjectRegistrationAction, "dynamic_object_registration")
static InputParameters validParams()
MooseApp & _app
The MOOSE application this is associated with.
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
static InputParameters validParams()
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
DynamicObjectRegistrationAction(const InputParameters ¶meters)
void restrictRegisterableObjects(const std::vector< std::string > &names)
Calling this object with a non-empty vector will cause this factory to ignore registrations from any ...
void dynamicAllRegistration(const std::string &app_name, Factory *factory, ActionFactory *action_factory, Syntax *syntax, std::string library_path, const std::string &library_name)
Thes methods are called to register applications or objects on demand.
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
ActionFactory & _action_factory
Builds Actions.
Factory & _factory
The Factory associated with the MooseApp.