Project JXTA

net.jxta.platform
Interface JxtaApp

All Known Subinterfaces:
Discovery, PeerInfo, Pipe, Resolver, Service

public interface JxtaApp

This interface defines a JXTA peer group application. All JXTA applications need to implement this interface. The Jxta platform is initializing applications via the init method.

Applications are passed the peer group they are created within. From the peergroup object, applications can acccess all the peer group services. Each application will be passed the peergroup they are started in. The initial root peer group is the NetPeerGroup.

Each peer group defines a default application that is started as part the peer group initialization process. The Default application can be a the JXTA Shell if interactive access to the peer group is given or any other JXTA Applications.

Since:
JXTA 1.0
See Also:
PeerGroup, PeerGroupAdvertisement

Method Summary
 void init(PeerGroup group)
          Initialize the application passing it ist peer group handle.
 

Method Detail

init

public void init(PeerGroup group)
          throws PeerGroupException
Initialize the application passing it ist peer group handle.
Parameters:
group - PeerGroup this application is started from
Throws:
PeerGroupException - failure to initialize the peer group application
Since:
JXTA 1.0

Project JXTA