public abstract class AbstractCyApp extends Object
Module: app-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>app-api</artifactId> </dependency>
Modifier and Type | Field and Description |
---|---|
protected CyAppAdapter |
adapter
Reference to access Cytoscape functionality -- various managers and
factories that are normally available as OSGi services.
|
Constructor and Description |
---|
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. |
protected CyAppAdapter adapter
public AbstractCyApp(CyAppAdapter adapter)
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 AbstractCyApp { public MyApp(CyAppAdapter adapter) { super(adapter); // app code here } }
adapter
- a CyAppAdapter
reference provided as an
argument to the constructor.Copyright 2011-2015 Cytoscape Consortium. All rights reserved.