public class RequestsStrategy extends java.lang.Object implements ReleaseStrategy
Modifier and Type | Field and Description |
---|---|
protected int |
count
Number of requests after which the object can be released.
|
Constructor and Description |
---|
RequestsStrategy()
Constructor method for i18n purposes only.
|
RequestsStrategy(int count)
Constructor settings the initial values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canRelease(ManagedObject object)
Checks whether a factory shared object can be released or not.
|
boolean |
equals(RequestsStrategy tocheck)
Checks wether a given
PlugInDef instance is equal to this. |
java.lang.String |
toString()
Overrides method
java.lang.Object.toString . |
public RequestsStrategy() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic RequestsStrategy(int count)
count
- Number of requests after which the object can be releasedpublic boolean canRelease(ManagedObject object)
canRelease
in interface ReleaseStrategy
object
- The shared object representation to be checkedpublic java.lang.String toString()
java.lang.Object.toString
.
toString
in class java.lang.Object
public boolean equals(RequestsStrategy 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.