public class FragmentPackageName extends Object
FragmentPackageName
converts it to a legal name
for a fragment package. Any code that manipulates the package name of a
fragment should store and/or pass it around using this class, to ensure that
the name is legal.
Normally the requested name is used as the package name, but the JVM forbids us from placing generated code in certain packages. Luckily, we never actually need to place code in those packages anyway, even if our rules would normally cause us to do so (because users of Gin can only access public parts of those packages). Since it doesn't matter where those methods go, we arbitrarily put them in the fragment corresponding to the ginjector interface.
Modifier and Type | Class and Description |
---|---|
static interface |
FragmentPackageName.Factory |
Copyright © 2008–2018. All rights reserved.