|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jason.core.PathDoor
Created Thu May 9 09:58:17 2002
This is the default door for a domain. This is a way to integrate easily services from a directory. So, user needn't to declare its services in the jason.xml file and it works like a set of plugIns.
Door
Field Summary | |
static java.lang.String |
JAS_EXT_FILE
|
Constructor Summary | |
PathDoor()
|
Method Summary | |
Service[] |
getServices()
|
void |
init(DoorContext context)
This is called at the beginning of the Door using by the Domain container. |
boolean |
isUpdatable()
This door can be dynamically called for updating or loading services |
void |
notifyFile(java.io.File f)
|
void |
update()
Run again the door for signaling new service |
boolean |
writeService(java.lang.String name,
byte[] service)
Store the service for the name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String JAS_EXT_FILE
Constructor Detail |
public PathDoor()
Method Detail |
public void init(DoorContext context) throws DoorException
init
in interface Door
context
- location for services
DoorException
- exception for bad location valuepublic void update()
Door
update
in interface Door
public void notifyFile(java.io.File f)
notifyFile
in interface JasManagerListener
public Service[] getServices()
getServices
in interface Door
public boolean isUpdatable()
isUpdatable
in interface Door
true
if this door can be called at runtime for updating a servicepublic boolean writeService(java.lang.String name, byte[] service)
writeService
in interface Door
false
if the service can't be written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |