|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.entityfs.impl.impl.AbstractChildEntityManager<T>
org.entityfs.impl.impl.NonForgettingChildEntityManagerImpl<T>
public class NonForgettingChildEntityManagerImpl<T>
This is an implementation of the ChildEntityManager
that uses strong references to the entity objects. When using this, entity
objects will never be garbage collected as long as the file system lives.
Constructor Summary | |
---|---|
NonForgettingChildEntityManagerImpl(boolean caseSensitive)
|
Method Summary | |
---|---|
void |
add(String name,
T entity)
Called when a child entity is added (created or moved into the directory). |
boolean |
contains(T entity)
Does this child entity manager contain the supplied entity? |
T |
getEntityOrNull(String name)
Get the named entity or null if it does not exist. |
void |
handleDisappeared(String name,
T entity)
Called whenever it is detected that a child entity has disappeared in an unnatural way. |
void |
remove(String name,
T entity)
This is called when an entity is removed (deleted or moved to another directory). |
String |
toString()
|
Methods inherited from class org.entityfs.impl.impl.AbstractChildEntityManager |
---|
getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NonForgettingChildEntityManagerImpl(boolean caseSensitive)
Method Detail |
---|
public void handleDisappeared(String name, T entity)
ChildEntityManager
name
- The name of the disappeared entity.entity
- The disappeared entity.public void remove(String name, T entity)
ChildEntityManager
name
- The name of the removed entity.entity
- The removed entitypublic void add(String name, T entity)
ChildEntityManager
name
- The entity's name.entity
- The added entity.public T getEntityOrNull(String name)
ChildEntityManager
null
if it does not exist.
name
- The name of the entity.
null
.public boolean contains(T entity)
ChildEntityManager
entity
- The entity.
true
if the entity exists in this child entity manager.public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |