Interface Plugin<T,Pm>
- All Superinterfaces:
IconSetHolder, LoggerProvider, MessageSetHolder, ResourceSetHolder
- All Known Implementing Classes:
DefaultPlugin
- Author:
- Taha Ben Salah (taha.bensalah@gmail.com) %creationtime 27 août 2007 19:23:14
-
Field Summary
Fields inherited from interface LoggerProvider
DEFAULT -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) voidvoidvoidcalled to initialize Application component.voidvoidgetId()Plugin Unique Identifier must return getPluginDescriptor().getId()voidbooleanbooleanvoidvoidvoidvoidvoidvoidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) voidvoidsetEnabled(boolean enabled) voidsetIconSet(String iconSetBundleName) voidsetInitialized(boolean enabled) voidvoidsetMessageSet(String bundleName) Methods inherited from interface LoggerProvider
getLogger
-
Method Details
-
pluginInstalled
void pluginInstalled() -
pluginUninstalled
void pluginUninstalled() -
pluginRegistered
void pluginRegistered() -
pluginUnregistered
void pluginUnregistered() -
applicationInitializing
void applicationInitializing()called to initialize Application component. Mainly we could configure Factory here withregisterImplementation(AnyInterface.class, AnyClass.class,true)
it is recommended not to use directlygetApplication().getFactory().getConfiguration(AnyInterface.class).add(AnyClass.class);
system plugin should call the following
getApplication().setDefaultFactoryConfigurations(createFactoryConfigurations(getMessageSet()));
-
applicationOpening
void applicationOpening() -
applicationConfiguring
void applicationConfiguring() -
applicationReady
void applicationReady() -
applicationClosing
void applicationClosing() -
getApplication
T getApplication() -
getPluginManager
Pm getPluginManager() -
init
-
isEnabled
boolean isEnabled() -
setEnabled
void setEnabled(boolean enabled) -
setInitialized
void setInitialized(boolean enabled) -
isInitialized
boolean isInitialized() -
setLocale
-
getDescriptor
PluginDescriptor getDescriptor() -
setDescriptor
-
getMessageSet
MessageSet getMessageSet()- Specified by:
getMessageSetin interfaceMessageSetHolder
-
getIconSet
IconSet getIconSet()- Specified by:
getIconSetin interfaceIconSetHolder
-
addPropertyChangeListener
-
addPropertyChangeListener
-
removePropertyChangeListener
-
removePropertyChangeListener
-
setMessageSet
-
setIconSet
-
getId
String getId()Plugin Unique Identifier must return getPluginDescriptor().getId()- Returns:
- getPluginDescriptor().getId()
-
getVarFolder
File getVarFolder()
-