jason.core
Interface Door

All Known Implementing Classes:
PathDoor

public interface Door

Created Thu May 9 09:52:36 2002

A door is a way for integrating easily new services without configuring the jason configuration file. This is tipically a directory that can contains news service loaded at starting. However, user can integrate more service loading type with this interface. It will have to specify a valid class in the jason.xml file.

See Also:
DoorContext, PathDoor

Method Summary
 Service[] getServices()
           
 void init(DoorContext context)
          This is call at the beginning of the Door using by the Domain container.
 boolean isUpdatable()
           
 void update()
          Run again the door for signaling new service
 boolean writeService(java.lang.String name, byte[] service)
          Write a service. the byte array is the .jas format.
 

Method Detail

init

public void init(DoorContext context)
          throws DoorException
This is call at the beginning of the Door using by the Domain container. The location is normally a value from the jason.xml file. This is a location for service in any format

Parameters:
context - location for services
Throws:
DoorException - exception for bad location value

update

public void update()
Run again the door for signaling new service


getServices

public Service[] getServices()
Returns:
All available services

isUpdatable

public boolean isUpdatable()
Returns:
true if this door can be called at runtime for updating a service

writeService

public boolean writeService(java.lang.String name,
                            byte[] service)
Write a service. the byte array is the .jas format.

Returns:
false if the service can't be written