public class DigesterFactory
extends com.lf.commons.lang.ManagedFactory
new
), or let this factory create a shared instance and flush the factory after
you're finished with the object. The garbage collector will then release memory on-the-fly as the
objects are no longer referenced so the overall memory footprint can be very small. You should
keep the shared instances created by this class if you make heavy use of the supported classes
(currently DigesterSettings
).
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID_CAPTURE
Identifier for shared
CaptureDialog instance. |
static java.lang.String |
ID_EVALUATION_DIALOG
Identifier for shared
EvaluationDialog instance. |
static java.lang.String |
ID_GENERATE_WIZARD
Identifier for shared
GenerateWizard instance. |
static java.lang.String |
ID_HELP
Identifier for shared
HelpDialog instance. |
static java.lang.String |
ID_NET_MONITOR
Identifier for shared
VFSNetMonitor instance. |
static java.lang.String |
ID_OPTIONS_DIALOG
Identifier for shared
OptionsDialog instance. |
static java.lang.String |
ID_REGISTER
Identifier for shared
RegisterDialog instance. |
static java.lang.String |
ID_RELEASE_NOTES
Identifier for shared
NotesDialog instance. |
static java.lang.String |
ID_STATUS
Identifier for shared
StatusDialog instance. |
static java.lang.String |
ID_SYNC_WIZARD
Identifier for shared
SyncWizard instance. |
protected static DigesterFactory |
sharedInstance
Shared
DigesterFactory instance. |
Constructor and Description |
---|
DigesterFactory()
Constructs an instance of this factory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canRelease(java.lang.Object id)
Checks whether a factory shared object can be released or not.
|
void |
cleanup(java.lang.Object id)
Perform optional cleanup tasks like closing database connections or disposing dialogs.
|
static java.lang.String |
getAboutBuild()
Provides a data portion used by the
AboutTab . |
static javax.swing.ImageIcon |
getAboutIcon()
Provides a data portion used by the
AboutTab . |
static java.lang.String |
getAboutInfo()
Provides a data portion used by the
AboutTab . |
static javax.swing.ImageIcon |
getAboutSplash()
Provides a data portion used by the
AboutTab . |
static java.lang.String |
getAboutTitle()
Provides a data portion used by the
AboutTab . |
static java.util.Properties |
getApplicationProperties(boolean english)
Provides the application specific settings used by the
ApplicationTab class. |
static DigesterFactory |
getSharedInstance()
Provides the shared instance of the factory implementation.
|
java.lang.Object |
request(java.lang.Object id)
Create the factory shared object, recycle if already existing.
|
protected static DigesterFactory sharedInstance
DigesterFactory
instance.public static final java.lang.String ID_STATUS
StatusDialog
instance.public static final java.lang.String ID_CAPTURE
CaptureDialog
instance.public static final java.lang.String ID_HELP
HelpDialog
instance.public static final java.lang.String ID_GENERATE_WIZARD
GenerateWizard
instance.public static final java.lang.String ID_RELEASE_NOTES
NotesDialog
instance.public static final java.lang.String ID_REGISTER
RegisterDialog
instance.public static final java.lang.String ID_OPTIONS_DIALOG
OptionsDialog
instance.public static final java.lang.String ID_SYNC_WIZARD
SyncWizard
instance.public static final java.lang.String ID_EVALUATION_DIALOG
EvaluationDialog
instance.public static final java.lang.String ID_NET_MONITOR
VFSNetMonitor
instance.public DigesterFactory()
public static DigesterFactory getSharedInstance()
public java.lang.Object request(java.lang.Object id)
request
in class com.lf.commons.lang.ManagedFactory
id
- The factory-unique identifier of the shared objectnull
if none could be createdpublic static java.util.Properties getApplicationProperties(boolean english)
ApplicationTab
class.
english
- Setting descriptions in English?public boolean canRelease(java.lang.Object id)
canRelease
in class com.lf.commons.lang.ManagedFactory
id
- The factory-unique identifier of the shared objectpublic void cleanup(java.lang.Object id)
cleanup
in class com.lf.commons.lang.ManagedFactory
id
- The factory-unique identifier of the shared objectpublic static java.lang.String getAboutTitle()
AboutTab
.
public static java.lang.String getAboutBuild()
AboutTab
.
public static javax.swing.ImageIcon getAboutIcon()
AboutTab
.
public static javax.swing.ImageIcon getAboutSplash()
AboutTab
.
public static java.lang.String getAboutInfo()
AboutTab
.
Copyright © 2005-2015 Leisenfels UG. All rights reserved.