org.xenei.jena.entities.impl
Class ResourceEntityProxy

java.lang.Object
  extended by org.xenei.jena.entities.impl.ResourceEntityProxy
All Implemented Interfaces:
org.apache.commons.proxy.Invoker

public class ResourceEntityProxy
extends Object
implements org.apache.commons.proxy.Invoker

Implements the invoker that the proxy uses. This method intercepts the annotated entity methods as well as the ResourceWrapper.getResource() method.


Constructor Summary
ResourceEntityProxy(EntityManager entityManager, com.hp.hpl.jena.rdf.model.Resource resource, SubjectInfo subjectInfo)
          The constructor
 
Method Summary
 Object invoke(Object proxy, Method m, Object[] args)
          Invokes an method on the proxy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceEntityProxy

public ResourceEntityProxy(EntityManager entityManager,
                           com.hp.hpl.jena.rdf.model.Resource resource,
                           SubjectInfo subjectInfo)
The constructor

Parameters:
entityManager - The entity manager to use.
resource - The resource that is being wrapped
subjectInfo - The subjectInfo for the resource.
Method Detail

invoke

public Object invoke(Object proxy,
                     Method m,
                     Object[] args)
              throws Throwable
Invokes an method on the proxy.

Specified by:
invoke in interface org.apache.commons.proxy.Invoker
Throws:
Throwable


Copyright © 2012 XENEI.com. All Rights Reserved.