org.apache.jetspeed.om.page.proxy
Class LinkProxy

java.lang.Object
  extended by org.apache.jetspeed.portalsite.view.SiteViewProxy
      extended by org.apache.jetspeed.page.document.proxy.NodeProxy
          extended by org.apache.jetspeed.om.page.proxy.LinkProxy
All Implemented Interfaces:
InvocationHandler

public class LinkProxy
extends NodeProxy
implements InvocationHandler

This class proxies PSML Link instances to create a logical view of site content using the Dynamic Proxy pattern.

Version:
$Id: LinkProxy.java 517121 2007-03-12 07:45:49Z ate $
Author:
Randy Watler

Field Summary
private  org.apache.jetspeed.om.page.Link link
          link - proxy delegate link instance
 
Fields inherited from class org.apache.jetspeed.page.document.proxy.NodeProxy
EQUALS_METHOD, GET_PARENT_METHOD, GET_PATH_METHOD, GET_URL_METHOD, HASH_CODE_METHOD, IS_HIDDEN_METHOD, TO_STRING_METHOD
 
Constructor Summary
private LinkProxy(SiteView view, String locatorName, org.apache.jetspeed.om.folder.Folder parentFolder, org.apache.jetspeed.om.page.Link link)
          LinkProxy - private constructor used by newInstance()
 
Method Summary
 org.apache.jetspeed.om.page.Link getLink()
          getLink - get proxy delegate link instance
 Object invoke(Object proxy, Method m, Object[] args)
          invoke - method invocation dispatch for this proxy, (defaults to invocation of delegate unless method is implemented in this proxy handler or should be hidden/stubbed)
static org.apache.jetspeed.om.page.Link newInstance(SiteView view, String locatorName, org.apache.jetspeed.om.folder.Folder parentFolder, org.apache.jetspeed.om.page.Link link)
          newInstance - creates a new proxy instance that implements the Link interface
 
Methods inherited from class org.apache.jetspeed.page.document.proxy.NodeProxy
aggregateMenuDefinitionLocators, equals, getMenuDefinitionLocator, getMenuDefinitionLocators, getMenuDefinitions, getNodeProxy, getParent, getPath, getUrl, hashCode, isHidden, mergeMenuDefinitionLocators, mergeMenuDefinitionLocators, toString
 
Methods inherited from class org.apache.jetspeed.portalsite.view.SiteViewProxy
getLocatorName, getSiteViewProxy, getView, reflectMethod
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

link

private org.apache.jetspeed.om.page.Link link
link - proxy delegate link instance

Constructor Detail

LinkProxy

private LinkProxy(SiteView view,
                  String locatorName,
                  org.apache.jetspeed.om.folder.Folder parentFolder,
                  org.apache.jetspeed.om.page.Link link)
LinkProxy - private constructor used by newInstance()

Parameters:
view - site view owner of this proxy
locatorName - name of profile locator associated with the proxy delegate
parentFolder - view parent proxy folder
link - proxy delegate
Method Detail

newInstance

public static org.apache.jetspeed.om.page.Link newInstance(SiteView view,
                                                           String locatorName,
                                                           org.apache.jetspeed.om.folder.Folder parentFolder,
                                                           org.apache.jetspeed.om.page.Link link)
newInstance - creates a new proxy instance that implements the Link interface

Parameters:
view - site view owner of this proxy
locatorName - name of profile locator associated with the proxy delegate
parentFolder - view parent proxy folder
link - proxy delegate

invoke

public Object invoke(Object proxy,
                     Method m,
                     Object[] args)
              throws Throwable
invoke - method invocation dispatch for this proxy, (defaults to invocation of delegate unless method is implemented in this proxy handler or should be hidden/stubbed)

Specified by:
invoke in interface InvocationHandler
Parameters:
proxy - instance invoked against
method - Link interface method invoked
args - method arguments
Throws:
Throwable

getLink

public org.apache.jetspeed.om.page.Link getLink()
getLink - get proxy delegate link instance

Returns:
delegate link


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.