Package ognl
Class EvaluationPool
- java.lang.Object
-
- ognl.EvaluationPool
-
public final class EvaluationPool extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description EvaluationPool()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Evaluationcreate(SimpleNode node, java.lang.Object source)Returns an Evaluation that contains the node, source and whether it is a set operation.Evaluationcreate(SimpleNode node, java.lang.Object source, boolean setOperation)Returns an Evaluation that contains the node, source and whether it is a set operation.intgetCreatedCount()Deprecated.since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collectionintgetRecoveredCount()Deprecated.since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collectionintgetRecycledCount()Deprecated.since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collectionintgetSize()Deprecated.since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collection
-
-
-
Method Detail
-
create
public Evaluation create(SimpleNode node, java.lang.Object source)
Returns an Evaluation that contains the node, source and whether it is a set operation. If there are no Evaluation objects in the pool one is created and returned.- Parameters:
node- a SimpleNode for an Evaluation to be created.source- a source Object for an Evaluation to be created.- Returns:
- an Evaluation based on the parameters.
-
create
public Evaluation create(SimpleNode node, java.lang.Object source, boolean setOperation)
Returns an Evaluation that contains the node, source and whether it is a set operation.- Parameters:
node- a SimpleNode for an Evaluation to be created.source- a source Object for an Evaluation to be created.setOperation- true to identify the Evaluation to be created as a set operation, false to identify it as a get operation.- Returns:
- an Evaluation based on the parameters.
-
getSize
@Deprecated public int getSize()
Deprecated.since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collectionReturns the number of items in the pool- Returns:
- the size of the Evaluation pool (always 0).
-
getCreatedCount
@Deprecated public int getCreatedCount()
Deprecated.since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collectionReturns the number of items this pool has created since it's construction.- Returns:
- the creation count for the Evaluation pool (always 0).
-
getRecoveredCount
@Deprecated public int getRecoveredCount()
Deprecated.since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collectionReturns the number of items this pool has recovered from the pool since its construction.- Returns:
- the recovered count for the Evaluation pool (always 0).
-
getRecycledCount
@Deprecated public int getRecycledCount()
Deprecated.since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collectionReturns the number of items this pool has recycled since it's construction.- Returns:
- the recycled count for the Evaluation pool (always 0).
-
-