Loading core/java/android/app/AppComponentFactory.java +17 −1 Original line number Diff line number Diff line Loading @@ -36,6 +36,10 @@ public class AppComponentFactory { * Allows application to override the creation of the application object. This can be used to * perform things such as dependency injection or class loader changes to these * classes. * <p> * This method is only intended to provide a hook for instantiation. It does not provide * earlier access to the Application object. The returned object will not be initialized * as a Context yet and should not be used to interact with other android APIs. * * @param cl The default classloader to use for instantiation. * @param className The class to be instantiated. Loading @@ -50,6 +54,10 @@ public class AppComponentFactory { * Allows application to override the creation of activities. This can be used to * perform things such as dependency injection or class loader changes to these * classes. * <p> * This method is only intended to provide a hook for instantiation. It does not provide * earlier access to the Activity object. The returned object will not be initialized * as a Context yet and should not be used to interact with other android APIs. * * @param cl The default classloader to use for instantiation. * @param className The class to be instantiated. Loading Loading @@ -80,6 +88,10 @@ public class AppComponentFactory { * Allows application to override the creation of services. This can be used to * perform things such as dependency injection or class loader changes to these * classes. * <p> * This method is only intended to provide a hook for instantiation. It does not provide * earlier access to the Service object. The returned object will not be initialized * as a Context yet and should not be used to interact with other android APIs. * * @param cl The default classloader to use for instantiation. * @param className The class to be instantiated. Loading @@ -95,6 +107,10 @@ public class AppComponentFactory { * Allows application to override the creation of providers. This can be used to * perform things such as dependency injection or class loader changes to these * classes. * <p> * This method is only intended to provide a hook for instantiation. It does not provide * earlier access to the ContentProvider object. The returned object will not be initialized * with a Context yet and should not be used to interact with other android APIs. * * @param cl The default classloader to use for instantiation. * @param className The class to be instantiated. Loading @@ -108,5 +124,5 @@ public class AppComponentFactory { /** * @hide */ public static AppComponentFactory DEFAULT = new AppComponentFactory(); public static final AppComponentFactory DEFAULT = new AppComponentFactory(); } Loading
core/java/android/app/AppComponentFactory.java +17 −1 Original line number Diff line number Diff line Loading @@ -36,6 +36,10 @@ public class AppComponentFactory { * Allows application to override the creation of the application object. This can be used to * perform things such as dependency injection or class loader changes to these * classes. * <p> * This method is only intended to provide a hook for instantiation. It does not provide * earlier access to the Application object. The returned object will not be initialized * as a Context yet and should not be used to interact with other android APIs. * * @param cl The default classloader to use for instantiation. * @param className The class to be instantiated. Loading @@ -50,6 +54,10 @@ public class AppComponentFactory { * Allows application to override the creation of activities. This can be used to * perform things such as dependency injection or class loader changes to these * classes. * <p> * This method is only intended to provide a hook for instantiation. It does not provide * earlier access to the Activity object. The returned object will not be initialized * as a Context yet and should not be used to interact with other android APIs. * * @param cl The default classloader to use for instantiation. * @param className The class to be instantiated. Loading Loading @@ -80,6 +88,10 @@ public class AppComponentFactory { * Allows application to override the creation of services. This can be used to * perform things such as dependency injection or class loader changes to these * classes. * <p> * This method is only intended to provide a hook for instantiation. It does not provide * earlier access to the Service object. The returned object will not be initialized * as a Context yet and should not be used to interact with other android APIs. * * @param cl The default classloader to use for instantiation. * @param className The class to be instantiated. Loading @@ -95,6 +107,10 @@ public class AppComponentFactory { * Allows application to override the creation of providers. This can be used to * perform things such as dependency injection or class loader changes to these * classes. * <p> * This method is only intended to provide a hook for instantiation. It does not provide * earlier access to the ContentProvider object. The returned object will not be initialized * with a Context yet and should not be used to interact with other android APIs. * * @param cl The default classloader to use for instantiation. * @param className The class to be instantiated. Loading @@ -108,5 +124,5 @@ public class AppComponentFactory { /** * @hide */ public static AppComponentFactory DEFAULT = new AppComponentFactory(); public static final AppComponentFactory DEFAULT = new AppComponentFactory(); }