|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.impl.agent.services.light.RepositorySrv
This class provides a simple implementation of an object repository.
The implementation does not offer any persistency. The objects are stored in memory.
MoRepSrvIf
, Serialized FormConstructor Summary | |
RepositorySrv()
Default constructor. |
Method Summary | |
boolean |
contains(java.lang.Object object)
Checks if a managed object is already stored in the Object Repository. |
boolean |
contains(ObjectName name)
Checks if a managed object is already stored in the Object Repository. |
static java.lang.String |
getClassVersion()
Returns the version of this class. |
java.lang.String |
getDomain()
Gets the domain name associated with the Object Repository. |
java.lang.Integer |
getNbElements()
Returns the number of elements stored in the Object Repository. |
java.util.Vector |
getObject(ObjectName name,
QueryExp query)
Get handles on managed objects controlled by the Object Repository. |
boolean |
isPersistent()
Indicates whether or not the Object Repository offers persistency or not. |
boolean |
isQuerySrv()
Indicates whether or not the Object Repository supports filtering or not. |
void |
register(java.lang.Object object,
ObjectName name)
Registers a named object into the Object Repository. |
void |
registerDB(java.lang.Object object,
ObjectName name)
Registers a named object with persistency into the Object Repository. |
java.lang.Object |
retrieve(ObjectName name)
Retrieves the managed object from the Object Repository. |
void |
setConfig(java.util.Vector params)
The method does not perform anything for the current implementation of the repository. |
void |
setDomain(java.lang.String domain)
Sets the domain name associated with the Object Repository. |
void |
unregister(java.lang.Object object)
Removes a managed object from the Object Repository. |
void |
unregister(ObjectName name)
Removes a managed object from the Object Repository. |
void |
update(java.lang.Object object,
ObjectName name)
Updates the managed object in the Object Repository. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RepositorySrv()
Method Detail |
public void setConfig(java.util.Vector params)
MoRepSrvIf
interface
definition.public boolean isQuerySrv()
public boolean isPersistent()
public boolean contains(ObjectName name)
name
- name of the managed object to find.public java.lang.Object retrieve(ObjectName name)
name
- name of the managed object to retrieve.public boolean contains(java.lang.Object object)
object
- object to find.public void registerDB(java.lang.Object object, ObjectName name) throws InstanceAlreadyExistException
NOTE: This service does not support persistency.
object
- object to be added to the repository.name
- logical name of the object.public void register(java.lang.Object object, ObjectName name) throws InstanceAlreadyExistException
object
- object to be added to the repository.name
- logical name of the object.public void update(java.lang.Object object, ObjectName name) throws InstanceNotFoundException
object
- the new object.name
- name of the managed object.public void unregister(ObjectName name) throws InstanceNotFoundException
name
- name of the managed object.public void unregister(java.lang.Object object) throws InstanceNotFoundException
object
- managed object to remove from the Object Repositorypublic java.util.Vector getObject(ObjectName name, QueryExp query)
name
- name of the managed object.query
- query to apply when selecting objects.public static java.lang.String getClassVersion()
public java.lang.Integer getNbElements()
public java.lang.String getDomain()
public void setDomain(java.lang.String domain)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |