public final class SessionManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LAYER_INSTALL
instalation layer
|
static String |
LAYER_SESSION
session layer
|
static String |
PROP_CLOSE
session is closed
|
static String |
PROP_OPEN
session is opened
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Registers PropertyChangeListener to receive events.
|
void |
close()
Close session
|
FileSystem |
create(File userDir,
File homeDir,
File[] extradirs)
Initializes and creates new repository.
|
static SessionManager |
getDefault()
get default one
|
FileSystem |
getLayer(String name)
get a layer associated with the name
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes PropertyChangeListener from the list of listeners.
|
public static final String PROP_OPEN
public static final String PROP_CLOSE
public static final String LAYER_SESSION
public static final String LAYER_INSTALL
public static SessionManager getDefault()
public FileSystem create(File userDir, File homeDir, File[] extradirs) throws PropertyVetoException, IOException
userDir
- directory where user can writehomeDir
- directory where netbeans has been installed, user need not have write accessextradirs
- 0+ extra dirs to add; cf. #27151PropertyVetoException
- if something failsIOException
public void close()
public FileSystem getLayer(String name)
name
- layer name (LAYER_SESSION, ...)null
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- The listener to register.public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The listener to remove.