|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InhabitantStore
Contract abstracting the storage of inhabitants into a backing store (which is usually the habitat in most situations).
Method Summary | |
---|---|
void |
add(Inhabitant<?> i)
Adds the given inhabitant to the backing store (usually the habitat) |
void |
addIndex(Inhabitant<?> i,
String typeName,
String name)
Adds the given inhabitant index to the backing store (usually the habitat) |
boolean |
remove(Inhabitant<?> inhabitant)
Removes an inhabitant |
boolean |
removeIndex(String index,
Object serviceOrInhabitant)
Removes an Inhabitant index for a specific service or inhabitant |
boolean |
removeIndex(String index,
String name)
Removes a named Inhabitant index for a specific contract and name |
Method Detail |
---|
void add(Inhabitant<?> i)
void addIndex(Inhabitant<?> i, String typeName, String name)
boolean remove(Inhabitant<?> inhabitant)
inhabitant
- inhabitant to be removed
boolean removeIndex(String index, String name)
index
- the contract namename
- the instance name, optionally provided
boolean removeIndex(String index, Object serviceOrInhabitant)
index
- the contract nameserviceOrInhabitant
- the service instance, or inhabitant instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |