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:
java.lang.reflect.InvocationHandler

public class LinkProxy
extends NodeProxy
implements java.lang.reflect.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
 
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
 
Method Summary
 Link getLink()
          getLink - get proxy delegate link instance
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method m, java.lang.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 Link newInstance(SiteView view, java.lang.String locatorName, Folder parentFolder, 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
 

Method Detail

newInstance

public static Link newInstance(SiteView view,
                               java.lang.String locatorName,
                               Folder parentFolder,
                               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 java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method m,
                               java.lang.Object[] args)
                        throws java.lang.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 java.lang.reflect.InvocationHandler
Parameters:
proxy - instance invoked against
method - Link interface method invoked
args - method arguments
Throws:
java.lang.Throwable

getLink

public Link getLink()
getLink - get proxy delegate link instance

Returns:
delegate link


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