|
|
initialContextFactory = "peak.naming.contexts:EmptyContext" |
initialContextFactory = "peak.naming.contexts:EmptyContext" |
|
|
creationName = None |
|
creationParent = None |
creationParent = None |
schemeParser = None |
schemeParser = None |
objectFactories = list(findUtilities(targetObj, naming.IObjectFactory)) |
|
stateFactories = list(findUtilities(targetObj, naming.IStateFactory)) |
|
|
|
|
|
|
|
|
|
# inside of lambdas within config.provideInstance() or |
# inside of lambdas within config.provideInstance() or |
# config.instancePerComponent() calls. |
# config.instancePerComponent() calls. |
|
|
# Our first provider is a global default for the 'naming.IObjectFactory' |
# This first provider associates a default transaction service with the |
# interface, which "bottoms out" the search for object factories by providing |
|
# default behavior for creating objects from state found in a naming context. |
|
|
|
peak.naming.interfaces.IObjectFactory = |
|
lambda *args: importString('peak.naming.spi') |
|
|
|
# This next provider associates a default transaction service with the |
|
# nearest AppConfig above the object that the service is wanted for. It |
# nearest AppConfig above the object that the service is wanted for. It |
# creates a TransactionService instance with that config as its parent |
# creates a TransactionService instance with that config as its parent |
# component. |
# component. |
peak.running.interfaces.ITwistedReactor = |
peak.running.interfaces.ITwistedReactor = |
config.provideInstance('peak.running.scheduler.getTwisted') |
config.provideInstance('peak.running.scheduler.getTwisted') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[__main__] |
[__main__] |
|
|
# The '__main__' namespace will be used by PEAK for global settings that |
# The '__main__' namespace will be used by PEAK for global settings that |