public class ServiceFactory extends Object
Constructor and Description |
---|
ServiceFactory() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
create(javax.jcr.Node node,
Class... proxyInterfacesOrDelegateeClass)
Create and returns a lightweight JCR Node mapped POJO.
|
public static <T> T create(javax.jcr.Node node, Class... proxyInterfacesOrDelegateeClass) throws Exception
If the proxyInterfacesOrDelegateeClass
argument is array of interfaces, then
this method will create a proxy instance implementing those interfaces after setting
a underlying Service
object for the proxy.
If the proxyInterfacesOrDelegateeClass
argument is one-length array and
its own element is an instantiable delegatee class, then this method will instantiate the class after setting
a underlying Service
object.
T
- node
- JCR NodeproxyInterfacesOrDelegateeClass
- interfaces should implement or delegatee class which may implement interface(s).Exception
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.