org.apache.jetspeed.om.page.proxy
Class LinkProxy
java.lang.Object
org.apache.jetspeed.portalsite.view.SiteViewProxy
org.apache.jetspeed.page.document.proxy.NodeProxy
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
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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 proxylocatorName
- name of profile locator associated
with the proxy delegateparentFolder
- view parent proxy folderlink
- 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 againstmethod
- Link interface method invokedargs
- 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.