Injectable.java 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Nextcloud Android client application
  3. *
  4. * @author Chris Narkiewicz
  5. * Copyright (C) 2019 Chris Narkiewicz <hello@ezaquarii.com>
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU Affero General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU Affero General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Affero General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. package com.nextcloud.client.di;
  21. /**
  22. * Marks object as injectable by {@link DependencyInjector}.
  23. * <p>
  24. * Any {@link android.app.Activity} or {@link androidx.fragment.app.Fragment} implementing
  25. * this interface will be automatically supplied with dependencies by {@link DependencyInjector}.
  26. * <p>
  27. * Activities are considered fully-initialized after call to {@link android.app.Activity#onCreate(Bundle)}
  28. * (this means after {@code super.onCreate(savedStateInstance)} returns).
  29. * <p>
  30. * Injectable Fragments are supplied with dependencies before {@link androidx.fragment.app.Fragment#onAttach(Context)}.
  31. */
  32. public interface Injectable {
  33. }