public class ManagedObject
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
classname
The fully qualified class name of the shared object.
|
java.lang.String |
id
The factory-unique identifier for the shared object.
|
java.util.Date |
lastRequest
When the shared object was acquired from the factory the last time.
|
java.lang.Object |
object
The shared object itself.
|
int |
releaseCount
Number of times the shared object was released by the manager.
|
int |
requestCount
Number of times the shared object was acquired from the factory.
|
ReleaseStrategy |
strategy
The strategy for the release of the shared object.
|
Constructor and Description |
---|
ManagedObject()
Constructor method for i18n purposes only.
|
ManagedObject(java.lang.Object object,
java.lang.String id,
java.lang.String classname,
ReleaseStrategy strategy,
java.util.Date lastUsage,
int usageCount,
int releaseCount)
Constructor settings the initial values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(ManagedObject tocheck)
Checks wether a given
PlugInDef instance is equal to this. |
java.lang.String |
toString()
Overrides method
java.lang.Object.toString . |
public java.lang.Object object
public java.lang.String id
public java.lang.String classname
public ReleaseStrategy strategy
public java.util.Date lastRequest
public int requestCount
public int releaseCount
public ManagedObject() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic ManagedObject(java.lang.Object object, java.lang.String id, java.lang.String classname, ReleaseStrategy strategy, java.util.Date lastUsage, int usageCount, int releaseCount)
object
- The shared object itselfid
- The factory-unique identifier for the shared objectclassname
- The fully qualified class name of the shared objectstrategy
- The strategy for the release of the shared objectlastUsage
- When the shared object was acquired from the factory the last timeusageCount
- Number of times the shared object was acquired from the factoryreleaseCount
- Number of times the shared object was released by the managerpublic java.lang.String toString()
java.lang.Object.toString
.
toString
in class java.lang.Object
public boolean equals(ManagedObject tocheck)
PlugInDef
instance is equal to this.
tocheck
- The instance to be comparedPlugInDef
instance to check for equalityCopyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.