org.cytoscape.app
Class AbstractCyApp
java.lang.Object
org.cytoscape.app.AbstractCyApp
public abstract class AbstractCyApp
- extends Object
The primary app interface for Cytoscape that all
apps must extend. App developers will have access
to all Cytoscape 3.X services, but are not required to
know about or use Maven, OSGi, or Spring.
However, there are limitations on which packages may
be included in the app jar based on those already loaded in the classpath.
To load alternative versions of the same library used by other apps or
Cytoscape itself, it will be necessary to write your app using OSGi
and Spring.
Cytoscape Backwards Compatibility (Abstract Class): This class is abstract and meant to be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
|
Field Summary |
protected CyAppAdapter |
adapter
Reference to access Cytoscape functionality -- various managers and
factories that are normally available as OSGi services. |
|
Constructor Summary |
AbstractCyApp(CyAppAdapter adapter)
The constructor that all apps must call using "super(adapter);" where
the "adapter" is a CyAppAdapter reference provided as an
argument to the constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
adapter
protected CyAppAdapter adapter
- Reference to access Cytoscape functionality -- various managers and
factories that are normally available as OSGi services.
AbstractCyApp
public AbstractCyApp(CyAppAdapter adapter)
- The constructor that all apps must call using "super(adapter);" where
the "adapter" is a
CyAppAdapter reference provided as an
argument to the constructor. Cytoscape's app loader will execute
the constructor and provide the proper CyAppAdapter reference.
public class MyApp extends CyApp {
public MyApp(CyAppAdapter adapter) {
super(adapter);
// app code here
}
}
- Parameters:
adapter - a CyAppAdapter reference provided as an
argument to the constructor.
Copyright 2011 Cytoscape Consortium. All rights reserved.