Common Methods
// Send an object to WireBox for autowiring by convention or mapping lookups
autowire( target, [mapping], [targetID], [annotationCheck] )
// Clears all singleton instances from the singleton scope (handy in development)
clearSingletons()
// Checks if this injector can build the named instance
containsInstance( name )
// Get the configuration binder for this injector
getBinder()
// The primary method to request an object instance by name, DSL string, or child injector
getInstance( [name], [initArguments], [dsl], [targetObject], [injector] )
// Return the WireBox ObjectPopulator utility (populate objects from JSON, XML, structs, etc.)
getObjectPopulator()
// Get a reference to the parent injector (if any)
getParent()
// Get a reference to a registered persistence scope by name
getScope( name )
// Set or replace the parent injector
setParent( injector )
// Gracefully shut down the injector and all child injectors
shutdown()
// Return the injector's unique name (e.g. 'root')
getName()
// -----------------------------------------------
// Child Injector Methods
// -----------------------------------------------
// Check whether a named child injector has been registered
hasChildInjector( name )
// Register a child injector, setting this injector as its parent
registerChildInjector( name, child )
// Remove and shut down a child injector by name
removeChildInjector( name )
// Get a registered child injector by name
getChildInjector( name )
// Return an array of all registered child injector names
getChildInjectorNames()getInstance() – injector Argument
getInstance() – injector ArgumentChild Injectors
Last updated
Was this helpful?