Package ognl
Class EvaluationPool
java.lang.Object
ognl.EvaluationPool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(SimpleNode node, Object source) Returns an Evaluation that contains the node, source and whether it is a set operation.create(SimpleNode node, Object source, boolean setOperation) Returns an Evaluation that contains the node, source and whether it is a set operation.intDeprecated.since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collectionintDeprecated.since 3.4.6, forRemoval = true, object-pooling now relies on the jvm garbage collectionintDeprecated.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
-
Constructor Details
-
EvaluationPool
public EvaluationPool()
-
-
Method Details
-
create
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
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.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.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.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.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).
-