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:
- 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 264961 2005-08-31 07:42:59Z rwatler $
- 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.portalsite.view.SiteViewProxy |
|
|
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 |
link
private org.apache.jetspeed.om.page.Link link
- link - proxy delegate link instance
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 proxylocatorName - name of profile locator associated
with the proxy delegateparentFolder - view parent proxy folderlink - proxy delegate
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 proxylocatorName - name of profile locator associated
with the proxy delegateparentFolder - view parent proxy folderlink - 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 againstargs - method arguments
- Throws:
Throwable
getLink
public org.apache.jetspeed.om.page.Link getLink()
- getLink - get proxy delegate link instance
- Returns:
- delegate link
Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.