public class ServiceFactory extends Object
Constructor and Description |
---|
ServiceFactory() |
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-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.