akiki1001 / waa-sep-2022-ioc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lab 1 - Inversion of Control

In this lab you will develop an IoC framework. Your framework cannot have Spring libraries.

Requirements


  • Create '@MyBean' annotation only for classes.
  • Create '@MyAutowired' annotation only for fields.
  • Create the Injector Class 'MyInjector' to search for annotations and create objects.
    • Scan all classes under the current package.
    • Create an instance for every class that has '@MyAutowired' annotation.
  • Create a map to hold the instances of classes.
  • Create a 'getBean(Class clazz)' method that returns the object of the class from the Map. Throw a BeanNotFoundException if there is no object of the class in the Map. (You need to create the exception.)

Submission


  • Fork the repository and push your changes.
  • Once you finished your project, send a Pull Request. (Send only one Pull Request once you finish the assignment.)

Important Notes


  • You are not allowed to share codes with your classmates. If detected, you will get NC.
  • For pairs:
    • Individual's work will be checked from the commits.
    • Share tasks evenly and fairly.
    • To have a clearer understanding of pair programming:
      • Pair programming is an agile software development technique in which two programmers work together at one workstation. One, the driver, writes code while the other, the observer or navigator reviews each line of code as it is typed in. The two programmers switch roles frequently.

      • Wikipedia
  • Remember to respect the code honor submission policy. All written code must be original. Presenting something as one’s own work when it came from another source is plagiarism and is forbidden.

  • Plagiarism is a very serious thing in all American academic institutions and is guarded against vigilantly by every professor.

About


Languages

Language:Java 100.0%