Package net.sf.jguiraffe.gui.dlg
Interface DialogServiceFactory<T>
-
- Type Parameters:
T
- the type of the service returned by the factory
public interface DialogServiceFactory<T>
A factory interface for the creation of a dialog service.
Using this interface, instances of services for the creation of standard dialogs can be created. Each UI library provides implementations of this generic interface for the different dialog services it supports. These implementations can be referenced via the dependency injection framework. From the concrete factory instances service objects can be obtained.
- Since:
- 1.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
createService(ApplicationContext applicationContext)
Returns a new instance of the managed service.
-
-
-
Method Detail
-
createService
T createService(ApplicationContext applicationContext)
Returns a new instance of the managed service. The passed in application context can be used to obtain properties required by the service, e.g. to get access to resources or the application's main window.- Parameters:
applicationContext
- the application context- Returns:
- the service object
-
-