|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.core.Application
This class represents the JAC applications.
Before it is actually started, each application must define a name, some path informations, and a set of aspect configurations (one for each aspect the application needs to use) by instantiating and configuring this class. Then, the system registers the new application instance into the application repository of the system.
At a user-level, an application configuration is described in application descriptor files (*.acc). A typical application descriptor is:
// file myApp.acc applicationName: myApp lauchingClass: myPath.Run aspects: \ rtti rtti.acc true \ session session.acc false \ persistence persistence.acc true \ gui gui.acc true
Application(String,String,String,String[])
,
addAcConfiguration(ACConfiguration)
,
ACConfiguration.ACConfiguration(Application,String,String,boolean)
,
ApplicationRepository
,
Serialized FormConstructor Summary | |
Application(String name,
String path,
String constructorClass,
String[] arguments)
Creates a new application. |
Method Summary | |
void |
addAcConfiguration(ACConfiguration configuration)
Adds an aspect component configuration for this application. |
boolean |
configures(String acName)
Tells if this application configures a given aspect component. |
ACConfiguration |
getAcConfiguration(String name)
Gets a configurations from its name (the name of the aspect as defined in the jac.prop file. |
Collection |
getAcConfigurations()
Returns all the configurations for the current application. |
String |
getConstructorClass()
Gets the path of the launching class (that implements the static main(String[]) method). |
String |
getName()
Gets the name of the application. |
String |
getPath()
Gets the path of the application (its root directory). |
void |
init()
Inits the application by creating and weaving the aspects configuration that are not woven on demand. |
boolean |
realizes(String acName)
Tells if this application currently realizes a given aspect component. |
void |
removeAcConfiguration(ACConfiguration configuration)
Removes an aspect component configuration for this application. |
void |
setConstructorClass(String constructorClass)
Gets the path of the launching class (that implements the static main(String[]) method). |
void |
setName(String name)
Sets the application's name. |
void |
setPath(String path)
The path's setter. |
void |
start()
Starts the application with its current aspect component configurations. |
String |
toString()
Returns a string representation of this application. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Application(String name, String path, String constructorClass, String[] arguments)
name
- the name of the applicationpath
- the path of the application (root directory). If
it's null, the current directory is usedconstructorClass
- the path of the launching class
accessible within the current class path)arguments
- the launching argumentsMethod Detail |
public void init()
public String getName()
public void setName(String name)
name
- the application's namepublic String getPath()
setPath(String)
public void setPath(String path)
path
- the new application root directorygetPath()
public String getConstructorClass()
main(String[])
method).
public void setConstructorClass(String constructorClass)
main(String[])
method).
constructorClass
- the launching classpublic boolean realizes(String acName)
acName
- the aspect component name
public boolean configures(String acName)
acName
- the aspect component name
public void addAcConfiguration(ACConfiguration configuration)
configuration
- the new configurationpublic void removeAcConfiguration(ACConfiguration configuration)
configuration
- the configuration to removepublic Collection getAcConfigurations()
public ACConfiguration getAcConfiguration(String name)
jac.prop
file.
name
- the aspect name
public void start()
If the application is already instantiated or if the launching path is not found, then do nothing.
public String toString()
toString
in class Object
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |