public class PostofficeProvider extends Object implements com.google.inject.Provider<Postoffice>
NinjaProperties
(aka application.conf).
If this variable is set the instance for that class is
instantiated and used as postoffice implementation.
If the variable is not set PostofficeMockImpl
is used by default in
dev/test mode and PostofficeCommonsmailImpl in prod.Constructor and Description |
---|
PostofficeProvider(com.google.inject.Injector injector,
NinjaProperties ninjaProperties) |
@Inject public PostofficeProvider(com.google.inject.Injector injector, NinjaProperties ninjaProperties)
public Postoffice get()
get
in interface javax.inject.Provider<Postoffice>
Copyright © 2017 ninjaframework. All rights reserved.