ktp
Module Contents
alltypes
Module Contents
open
class
CanBeBound
<
T
:
Any
>
Module Contents
CanBeBound
(
delegate
:
CanBeBound
<
T
>
)
open
val
delegate
:
CanBeBound
<
T
>
fun
singleton
(
)
:
CanBeReleasable
<
T
>
fun
toClass
(
implClass
:
KClass
<
out
T
>
)
:
CanBeSingleton
<
T
>
inline
fun
<
reified
P
:
T
>
toClass
(
)
:
CanBeSingleton
<
T
>
fun
toInstance
(
instance
:
T
)
:
Unit
fun
toInstance
(
instanceProvider
:
(
)
->
T
)
:
Unit
fun
toProvider
(
providerClass
:
KClass
<
out
Provider
<
out
T
>
>
)
:
CanProvideSingletonOrSingleton
<
T
>
fun
toProviderInstance
(
providerInstance
:
Provider
<
out
T
>
)
:
CanProvideSingleton
<
T
>
fun
toProviderInstance
(
providerInstanceProvider
:
(
)
->
T
)
:
CanProvideSingleton
<
T
>
class
CanBeNamed
<
T
:
Any
>
:
CanBeBound
<
T
>
Module Contents
CanBeNamed
(
delegate
:
CanBeNamed
<
T
>
)
val
delegate
:
CanBeNamed
<
T
>
fun
withName
(
name
:
String
)
:
CanBeBound
<
T
>
fun
withName
(
annotationClassWithQualifierAnnotation
:
KClass
<
out
Annotation
>
)
:
CanBeBound
<
T
>
class
DelegateNotifier
Module Contents
DelegateNotifier
(
)
fun
hasDelegates
(
container
:
Any
)
:
Boolean
fun
notifyDelegates
(
container
:
Any
,
scope
:
Scope
)
:
Unit
fun
registerDelegate
(
container
:
Any
,
delegate
:
InjectDelegate
<
out
Any
>
)
:
Unit
sealed
class
DelegateProvider
<
T
:
Any
>
Module Contents
protected
val
clz
:
Class
<
T
>
abstract
fun
createDelegate
(
)
:
InjectDelegate
<
T
>
protected
val
name
:
String
?
operator
fun
provideDelegate
(
thisRef
:
Any
,
prop
:
KProperty
<
*
>
)
:
InjectDelegate
<
T
>
class
EagerDelegate
<
T
:
Any
>
:
InjectDelegate
<
T
>
Module Contents
EagerDelegate
(
clz
:
Class
<
T
>
,
name
:
String
?
)
lateinit
var
instance
:
T
fun
isEntryPointInjected
(
)
:
Boolean
fun
onEntryPointInjected
(
scope
:
Scope
)
:
Unit
class
EagerDelegateProvider
<
T
:
Any
>
:
DelegateProvider
<
T
>
Module Contents
EagerDelegateProvider
(
clz
:
Class
<
T
>
)
EagerDelegateProvider
(
clz
:
Class
<
T
>
,
name
:
String
)
EagerDelegateProvider
(
clz
:
Class
<
T
>
,
name
:
Class
<
out
Annotation
>
)
fun
createDelegate
(
)
:
EagerDelegate
<
T
>
sealed
class
InjectDelegate
<
T
:
Any
>
Module Contents
protected
val
clz
:
Class
<
T
>
operator
fun
getValue
(
thisRef
:
Any
,
property
:
KProperty
<
*
>
)
:
T
abstract
val
instance
:
T
abstract
fun
isEntryPointInjected
(
)
:
Boolean
protected
val
name
:
String
?
abstract
fun
onEntryPointInjected
(
scope
:
Scope
)
:
Unit
object
KTP
Module Contents
fun
closeScope
(
name
:
Any
)
:
Unit
val
delegateNotifier
:
DelegateNotifier
fun
isScopeOpen
(
name
:
Any
)
:
Boolean
fun
openRootScope
(
)
:
Scope
fun
openScope
(
name
:
Any
)
:
Scope
fun
openScope
(
name
:
Any
,
scopeConfig
:
ScopeConfig
)
:
Scope
fun
openScopes
(
vararg
names
:
Any
)
:
Scope
fun
setConfiguration
(
configuration
:
Configuration
)
:
Unit
class
LazyDelegate
<
T
:
Any
>
:
InjectDelegate
<
T
>
Module Contents
LazyDelegate
(
clz
:
Class
<
T
>
,
name
:
String
?
)
val
instance
:
T
fun
isEntryPointInjected
(
)
:
Boolean
fun
onEntryPointInjected
(
scope
:
Scope
)
:
Unit
lateinit
var
provider
:
Provider
<
T
>
class
LazyDelegateProvider
<
T
:
Any
>
:
DelegateProvider
<
T
>
Module Contents
LazyDelegateProvider
(
clz
:
Class
<
T
>
)
LazyDelegateProvider
(
clz
:
Class
<
T
>
,
name
:
String
)
LazyDelegateProvider
(
clz
:
Class
<
T
>
,
name
:
Class
<
out
Annotation
>
)
fun
createDelegate
(
)
:
LazyDelegate
<
T
>
class
ProviderDelegate
<
T
:
Any
>
:
InjectDelegate
<
T
>
Module Contents
ProviderDelegate
(
clz
:
Class
<
T
>
,
name
:
String
?
)
val
instance
:
T
fun
isEntryPointInjected
(
)
:
Boolean
fun
onEntryPointInjected
(
scope
:
Scope
)
:
Unit
lateinit
var
provider
:
Provider
<
T
>
class
ProviderDelegateProvider
<
T
:
Any
>
:
DelegateProvider
<
T
>
Module Contents
ProviderDelegateProvider
(
clz
:
Class
<
T
>
)
ProviderDelegateProvider
(
clz
:
Class
<
T
>
,
name
:
String
)
ProviderDelegateProvider
(
clz
:
Class
<
T
>
,
name
:
Class
<
out
Annotation
>
)
fun
createDelegate
(
)
:
ProviderDelegate
<
T
>
toothpick.config.Module
Module Contents
fun
<
T
:
Any
>
Module
.
bind
(
key
:
KClass
<
T
>
)
:
CanBeNamed
<
T
>
inline
fun
<
reified
T
:
Any
>
Module
.
bind
(
)
:
CanBeNamed
<
T
>
package
toothpick
Module Contents
fun
setToothpickInjector
(
injector
:
Injector
)
:
Unit
package
toothpick.ktp
Module Contents
object
KTP
Module Contents
fun
closeScope
(
name
:
Any
)
:
Unit
val
delegateNotifier
:
DelegateNotifier
fun
isScopeOpen
(
name
:
Any
)
:
Boolean
fun
openRootScope
(
)
:
Scope
fun
openScope
(
name
:
Any
)
:
Scope
fun
openScope
(
name
:
Any
,
scopeConfig
:
ScopeConfig
)
:
Scope
fun
openScopes
(
vararg
names
:
Any
)
:
Scope
fun
setConfiguration
(
configuration
:
Configuration
)
:
Unit
package
toothpick.ktp.binding
Module Contents
open
class
CanBeBound
<
T
:
Any
>
Module Contents
CanBeBound
(
delegate
:
CanBeBound
<
T
>
)
open
val
delegate
:
CanBeBound
<
T
>
fun
singleton
(
)
:
CanBeReleasable
<
T
>
fun
toClass
(
implClass
:
KClass
<
out
T
>
)
:
CanBeSingleton
<
T
>
inline
fun
<
reified
P
:
T
>
toClass
(
)
:
CanBeSingleton
<
T
>
fun
toInstance
(
instance
:
T
)
:
Unit
fun
toInstance
(
instanceProvider
:
(
)
->
T
)
:
Unit
fun
toProvider
(
providerClass
:
KClass
<
out
Provider
<
out
T
>
>
)
:
CanProvideSingletonOrSingleton
<
T
>
fun
toProviderInstance
(
providerInstance
:
Provider
<
out
T
>
)
:
CanProvideSingleton
<
T
>
fun
toProviderInstance
(
providerInstanceProvider
:
(
)
->
T
)
:
CanProvideSingleton
<
T
>
class
CanBeNamed
<
T
:
Any
>
:
CanBeBound
<
T
>
Module Contents
CanBeNamed
(
delegate
:
CanBeNamed
<
T
>
)
val
delegate
:
CanBeNamed
<
T
>
fun
withName
(
name
:
String
)
:
CanBeBound
<
T
>
fun
withName
(
annotationClassWithQualifierAnnotation
:
KClass
<
out
Annotation
>
)
:
CanBeBound
<
T
>
fun
module
(
bindings
:
Module
.
(
)
->
Unit
)
:
Module
toothpick.config.Module
Module Contents
fun
<
T
:
Any
>
Module
.
bind
(
key
:
KClass
<
T
>
)
:
CanBeNamed
<
T
>
inline
fun
<
reified
T
:
Any
>
Module
.
bind
(
)
:
CanBeNamed
<
T
>
package
toothpick.ktp.delegate
Module Contents
class
DelegateNotifier
Module Contents
DelegateNotifier
(
)
fun
hasDelegates
(
container
:
Any
)
:
Boolean
fun
notifyDelegates
(
container
:
Any
,
scope
:
Scope
)
:
Unit
fun
registerDelegate
(
container
:
Any
,
delegate
:
InjectDelegate
<
out
Any
>
)
:
Unit
sealed
class
DelegateProvider
<
T
:
Any
>
Module Contents
protected
val
clz
:
Class
<
T
>
abstract
fun
createDelegate
(
)
:
InjectDelegate
<
T
>
protected
val
name
:
String
?
operator
fun
provideDelegate
(
thisRef
:
Any
,
prop
:
KProperty
<
*
>
)
:
InjectDelegate
<
T
>
class
EagerDelegate
<
T
:
Any
>
:
InjectDelegate
<
T
>
Module Contents
EagerDelegate
(
clz
:
Class
<
T
>
,
name
:
String
?
)
lateinit
var
instance
:
T
fun
isEntryPointInjected
(
)
:
Boolean
fun
onEntryPointInjected
(
scope
:
Scope
)
:
Unit
class
EagerDelegateProvider
<
T
:
Any
>
:
DelegateProvider
<
T
>
Module Contents
EagerDelegateProvider
(
clz
:
Class
<
T
>
)
EagerDelegateProvider
(
clz
:
Class
<
T
>
,
name
:
String
)
EagerDelegateProvider
(
clz
:
Class
<
T
>
,
name
:
Class
<
out
Annotation
>
)
fun
createDelegate
(
)
:
EagerDelegate
<
T
>
sealed
class
InjectDelegate
<
T
:
Any
>
Module Contents
protected
val
clz
:
Class
<
T
>
operator
fun
getValue
(
thisRef
:
Any
,
property
:
KProperty
<
*
>
)
:
T
abstract
val
instance
:
T
abstract
fun
isEntryPointInjected
(
)
:
Boolean
protected
val
name
:
String
?
abstract
fun
onEntryPointInjected
(
scope
:
Scope
)
:
Unit
class
LazyDelegate
<
T
:
Any
>
:
InjectDelegate
<
T
>
Module Contents
LazyDelegate
(
clz
:
Class
<
T
>
,
name
:
String
?
)
val
instance
:
T
fun
isEntryPointInjected
(
)
:
Boolean
fun
onEntryPointInjected
(
scope
:
Scope
)
:
Unit
lateinit
var
provider
:
Provider
<
T
>
class
LazyDelegateProvider
<
T
:
Any
>
:
DelegateProvider
<
T
>
Module Contents
LazyDelegateProvider
(
clz
:
Class
<
T
>
)
LazyDelegateProvider
(
clz
:
Class
<
T
>
,
name
:
String
)
LazyDelegateProvider
(
clz
:
Class
<
T
>
,
name
:
Class
<
out
Annotation
>
)
fun
createDelegate
(
)
:
LazyDelegate
<
T
>
class
ProviderDelegate
<
T
:
Any
>
:
InjectDelegate
<
T
>
Module Contents
ProviderDelegate
(
clz
:
Class
<
T
>
,
name
:
String
?
)
val
instance
:
T
fun
isEntryPointInjected
(
)
:
Boolean
fun
onEntryPointInjected
(
scope
:
Scope
)
:
Unit
lateinit
var
provider
:
Provider
<
T
>
class
ProviderDelegateProvider
<
T
:
Any
>
:
DelegateProvider
<
T
>
Module Contents
ProviderDelegateProvider
(
clz
:
Class
<
T
>
)
ProviderDelegateProvider
(
clz
:
Class
<
T
>
,
name
:
String
)
ProviderDelegateProvider
(
clz
:
Class
<
T
>
,
name
:
Class
<
out
Annotation
>
)
fun
createDelegate
(
)
:
ProviderDelegate
<
T
>
inline
fun
<
reified
T
:
Any
>
inject
(
)
:
EagerDelegateProvider
<
T
>
inline
fun
<
reified
T
:
Any
>
inject
(
name
:
String
)
:
EagerDelegateProvider
<
T
>
inline
fun
<
reified
T
:
Any
>
inject
(
name
:
KClass
<
out
Annotation
>
)
:
EagerDelegateProvider
<
T
>
inline
fun
<
reified
T
:
Any
>
lazy
(
)
:
LazyDelegateProvider
<
T
>
inline
fun
<
reified
T
:
Any
>
lazy
(
name
:
String
)
:
LazyDelegateProvider
<
T
>
inline
fun
<
reified
T
:
Any
>
lazy
(
name
:
KClass
<
out
Annotation
>
)
:
LazyDelegateProvider
<
T
>
inline
fun
<
reified
T
:
Any
>
provider
(
)
:
ProviderDelegateProvider
<
T
>
inline
fun
<
reified
T
:
Any
>
provider
(
name
:
String
)
:
ProviderDelegateProvider
<
T
>
inline
fun
<
reified
T
:
Any
>
provider
(
name
:
KClass
<
out
Annotation
>
)
:
ProviderDelegateProvider
<
T
>
package
toothpick.ktp.extension
Module Contents
inline
fun
<
reified
T
>
Scope
.
getInstance
(
name
:
String
?
=
null
)
:
T
inline
fun
<
reified
T
>
Scope
.
getLazy
(
name
:
String
?
=
null
)
:
Lazy
<
T
>
inline
fun
<
reified
T
>
Scope
.
getProvider
(
name
:
String
?
=
null
)
:
Provider
<
T
>