org.jtheque.core.managers.core
Class Core

java.lang.Object
  extended by org.jtheque.core.managers.core.Core
All Implemented Interfaces:
ICore

public final class Core
extends java.lang.Object
implements ICore

The core.

Author:
Baptiste Wicht

Method Summary
 void addCreditsMessage(java.lang.String key)
          Add an internationalized credits message.
 Application getApplication()
          Return the current application.
 CoreConfiguration getConfiguration()
          Return the configuration of the core.
 org.jtheque.utils.bean.Version getCoreCurrentVersion()
          Return the version of the core.
 java.lang.String getCoreMessageFileURL()
          Return the messages file url for the core.
 java.util.List<java.lang.String> getCreditsMessage()
          Return all the credits message.
 IFilesContainer getFiles()
          Return the files of the application.
 IFoldersContainer getFolders()
          Return the folders of the application.
 java.lang.String getImagesBaseName()
          Return the base name for the images.
static ICore getInstance()
          Return the unique instance of the class.
 ILifeCycleManager getLifeCycleManager()
          Return the manager of the life cycle.
 boolean isCompatibleWith(org.jtheque.utils.bean.Version version)
          Indicate if the current version of the core is compatible with an other version.
 void launchJThequeCore(Application application)
          Launch the JTheque Core.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCoreCurrentVersion

public org.jtheque.utils.bean.Version getCoreCurrentVersion()
Description copied from interface: ICore
Return the version of the core.

Specified by:
getCoreCurrentVersion in interface ICore
Returns:
The version of the core.

getInstance

public static ICore getInstance()
Return the unique instance of the class.

Returns:
The singleton instance of the class.

launchJThequeCore

public void launchJThequeCore(Application application)
Description copied from interface: ICore
Launch the JTheque Core.

Specified by:
launchJThequeCore in interface ICore
Parameters:
application - The application to launch.

getCoreMessageFileURL

public java.lang.String getCoreMessageFileURL()
Description copied from interface: ICore
Return the messages file url for the core.

Specified by:
getCoreMessageFileURL in interface ICore
Returns:
The URL to the messages files of the core.

addCreditsMessage

public void addCreditsMessage(java.lang.String key)
Description copied from interface: ICore
Add an internationalized credits message.

Specified by:
addCreditsMessage in interface ICore
Parameters:
key - The internationalized key.

getCreditsMessage

public java.util.List<java.lang.String> getCreditsMessage()
Description copied from interface: ICore
Return all the credits message.

Specified by:
getCreditsMessage in interface ICore
Returns:
A List containing all the credits message.

isCompatibleWith

public boolean isCompatibleWith(org.jtheque.utils.bean.Version version)
Description copied from interface: ICore
Indicate if the current version of the core is compatible with an other version.

Specified by:
isCompatibleWith in interface ICore
Parameters:
version - The version to test the compatibility with.
Returns:
true if the current version is compatible with the other version.

getApplication

public Application getApplication()
Description copied from interface: ICore
Return the current application.

Specified by:
getApplication in interface ICore
Returns:
The current application.

getFolders

public IFoldersContainer getFolders()
Description copied from interface: ICore
Return the folders of the application.

Specified by:
getFolders in interface ICore
Returns:
The folders of the application.

getFiles

public IFilesContainer getFiles()
Description copied from interface: ICore
Return the files of the application.

Specified by:
getFiles in interface ICore
Returns:
The files of the application.

getLifeCycleManager

public ILifeCycleManager getLifeCycleManager()
Description copied from interface: ICore
Return the manager of the life cycle.

Specified by:
getLifeCycleManager in interface ICore
Returns:
The manager of the life cycle.

getImagesBaseName

public java.lang.String getImagesBaseName()
Description copied from interface: ICore
Return the base name for the images.

Specified by:
getImagesBaseName in interface ICore
Returns:
The basename for the images.

getConfiguration

public CoreConfiguration getConfiguration()
Description copied from interface: ICore
Return the configuration of the core.

Specified by:
getConfiguration in interface ICore
Returns:
The configuration of the core.


Copyright © 2009 JTheque. All Rights Reserved.