+ /**
+ Pattern to obtain a single named component instance easily.
+ Parameters are usually replaced by the macro C <b>FILE_LOCATION</b>.
+
+ \param fromFile File which called the method
+ \param fromLine Line number within the file from where the method is called.
+
+ \return Component instance for the class provided at the pattern
+ \warning T class must implement a method in the form:
+ \code
+ static const char* getClassName () throw ();
+ \endcode
+ \see Component
+ */
+ template <typename T> static T* component(const char* fromFile, const int fromLine)
+ throw(RuntimeException) {
+ return functions::componentByName<T> (T::getClassName(), fromFile, fromLine);
+ }
+
+