|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.core.ApplicationRepository
This class is a repository for all the applications defined in the JAC system.
Application
Constructor Summary | |
ApplicationRepository()
|
Method Summary | |
void |
addApplication(Application app)
Adds an application within the repository. |
void |
extend(String applicationName,
String aspectName)
Extends an application with a given aspect (only if this application has a configuration for this aspect and if this aspect is not yet woven). |
static ApplicationRepository |
get()
Gets the sole instance of the application repository within the local JAC system. |
Application |
getApplication(String name)
Gets an application from its name. |
HashMap |
getApplications()
Returns the applications that have been added to the repository. |
static Application |
getCurrentApplication()
Returns the application of the current thread. |
static Application |
getOwningApplication(Wrappee wrappee,
ClassItem cl)
|
static String |
getOwningApplicationName(Wrappee wrappee,
ClassItem cl)
|
static void |
launchProgram(String[] args)
Launches a JAC program. |
static void |
main(String[] args)
Launches and initializes the application repository (this method is called by the system). |
static void |
setOwningApplication(Wrappee wrappee,
ClassItem cl,
Application application)
|
void |
unextend(String applicationName,
String aspectName)
Un-extends an application with a given aspect (only if this application has a configuration for this aspect and if this aspect is woven). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ApplicationRepository()
Method Detail |
public static Application getOwningApplication(Wrappee wrappee, ClassItem cl)
public static String getOwningApplicationName(Wrappee wrappee, ClassItem cl)
public static void setOwningApplication(Wrappee wrappee, ClassItem cl, Application application)
public static Application getCurrentApplication()
public static void launchProgram(String[] args)
args
- the program arguments (first is the .jac file)public static void main(String[] args) throws Throwable
args
- the launching arguments of JAC
Throwable
public static ApplicationRepository get()
public void addApplication(Application app)
When added, the application is initialized so that the needed aspects are woven.
app
- the application to addpublic HashMap getApplications()
addApplication(org.objectweb.jac.core.Application)
public Application getApplication(String name)
name
- the application's name
name
getApplications()
public void extend(String applicationName, String aspectName)
applicationName
- the application's nameaspectName
- the aspect's namepublic void unextend(String applicationName, String aspectName)
applicationName
- the application's nameaspectName
- the aspect's name
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |