Package com.vaadin.flow.templatemodel
Class TemplateModelProxyHandler
java.lang.Object
com.vaadin.flow.templatemodel.TemplateModelProxyHandler
- All Implemented Interfaces:
Serializable
Deprecated.
Invocation handler for
TemplateModel proxy objects.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.Base type used for interface proxy types.protected static interfaceDeprecated.Gives access to the state node of a proxy instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TcreateModelProxy(StateNode stateNode, BeanModelType<T> modelType) Deprecated.Creates a proxy object for the givenmodelTypetype for the given state node.static BeanModelType<?>getModelTypeForProxy(Object proxy) Deprecated.Gets the model type that a proxy instance is bound to.static StateNodegetStateNodeForProxy(Object proxy) Deprecated.Gets the state node that a proxy is bound to.Deprecated.Processes a method invocation on a Byte buddy proxy instance and returns the result.static booleanDeprecated.Checks if the given object is a proxy created by this class.
-
Method Details
-
intercept
@RuntimeType public Object intercept(@This Object target, @Origin Method method, @AllArguments Object[] args) Deprecated.Processes a method invocation on a Byte buddy proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.- Parameters:
target- the proxy instancemethod- theMethodinstance corresponding to the proxied method invoked on the proxy instance.args- an array of objects containing the values of the arguments passed in the method invocation on the proxy instance.- Returns:
- the value to return from the method invocation on the proxy instance.
-
createModelProxy
Deprecated.Creates a proxy object for the givenmodelTypetype for the given state node.- Type Parameters:
T- the proxy type- Parameters:
stateNode- the state node, notnullmodelType- the type of the model, notnull- Returns:
- a proxy object, not
null
-
getStateNodeForProxy
Deprecated.Gets the state node that a proxy is bound to.- Parameters:
proxy- the template model proxy- Returns:
- the state node of the proxy
-
getModelTypeForProxy
Deprecated.Gets the model type that a proxy instance is bound to.- Parameters:
proxy- the template model proxy- Returns:
- the model type of the proxy
-
isProxy
Deprecated.Checks if the given object is a proxy created by this class.- Parameters:
proxy- the object to check- Returns:
trueif the given object is a proxy object,falseotherwise
-
LitTemplateinstead. Read more details from the Vaadin blog.