public ContextFactory toCreate ( BiFunction < Constructor , Object [ ] , Object > function ) { return new ContextFactory ( this . context , function ) ; }
Changes the way the objects are created by using the given function .