|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.view.ViewFactorySupport
public abstract class ViewFactorySupport
Abstract base class for view factories that do not make re-useable views and that do not share view resources with expression nodes.
Constructor Summary | |
---|---|
ViewFactorySupport()
|
Method Summary | |
---|---|
boolean |
canProvideCapability(ViewCapability viewCapability)
Returns true if the view factory can make views that provide a view resource with the given capability. |
boolean |
canReuse(View view)
Determines if the given view could be used instead of creating a new view, requires the view factory to compare view type, parameters and other capabilities provided. |
void |
setProvideCapability(ViewCapability viewCapability,
ViewResourceCallback resourceCallback)
Indicates to the view factory to provide the view resource indicated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.espertech.esper.view.ViewFactory |
---|
attach, getEventType, makeView, setViewParameters |
Constructor Detail |
---|
public ViewFactorySupport()
Method Detail |
---|
public boolean canProvideCapability(ViewCapability viewCapability)
ViewFactory
canProvideCapability
in interface ViewFactory
viewCapability
- is the view resource needed
public void setProvideCapability(ViewCapability viewCapability, ViewResourceCallback resourceCallback)
ViewFactory
setProvideCapability
in interface ViewFactory
viewCapability
- is the required resource descriptorresourceCallback
- is the callback to use to supply the resource neededpublic boolean canReuse(View view)
ViewFactory
canReuse
in interface ViewFactory
view
- is the candidate view to compare to
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |