org.hippoecm.hst.service
Class ServiceFactory
java.lang.Object
org.hippoecm.hst.service.ServiceFactory
public class ServiceFactory
- extends Object
Factory util class to create lightweight JCR Node mapped POJO.
- Version:
- $Id: ServiceFactory.java 17317 2009-04-17 09:26:10Z aschrijvers $
Method Summary |
static
|
create(javax.jcr.Node node,
Class... proxyInterfacesOrDelegateeClass)
Create and returns a lightweight JCR Node mapped POJO. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceFactory
public ServiceFactory()
create
public static <T> T create(javax.jcr.Node node,
Class... proxyInterfacesOrDelegateeClass)
throws Exception
- Create and returns a lightweight JCR Node mapped POJO.
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.
- Type Parameters:
T
- - Parameters:
node
- JCR NodeproxyInterfacesOrDelegateeClass
- interfaces should implement or delegatee class which may implement interface(s).
- Returns:
- proxy object or delegatee object
- Throws:
Exception
Copyright © 2008-2012 Hippo. All Rights Reserved.