org.apache.jetspeed.portalsite.view
Class SiteViewProxy

java.lang.Object
  extended by org.apache.jetspeed.portalsite.view.SiteViewProxy
Direct Known Subclasses:
NodeProxy

public abstract class SiteViewProxy
extends Object

This class is the base class for all site content proxy implementations.

Version:
$Id: SiteViewProxy.java 516448 2007-03-09 16:25:47Z ate $
Author:
Randy Watler

Field Summary
private  String locatorName
          locatorName - name of profile locator name associated with the derived delegate of this proxy in the site view
private  SiteView view
          view - site view this proxy is part of
 
Constructor Summary
protected SiteViewProxy(SiteView view, String locatorName)
          SiteViewProxy - constructor
 
Method Summary
 String getLocatorName()
          getLocatorName - return profile locator name associated with the derived delegate of this proxy in the site view
static SiteViewProxy getSiteViewProxy(Object proxy)
          getSiteViewProxy - utility method to access SiteViewProxy handler from a proxy instance
 SiteView getView()
          getView - return site view for this proxy
protected static Method reflectMethod(Class methodClass, String methodName, Class[] methodArgs)
          reflectMethod - trap method reflection exceptions utility function
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

view

private SiteView view
view - site view this proxy is part of


locatorName

private String locatorName
locatorName - name of profile locator name associated with the derived delegate of this proxy in the site view

Constructor Detail

SiteViewProxy

protected SiteViewProxy(SiteView view,
                        String locatorName)
SiteViewProxy - constructor

Parameters:
view - site view owner of this proxy
locatorName - profile locator name associated with the derived delegate of this proxy in the site view
Method Detail

getView

public SiteView getView()
getView - return site view for this proxy

Returns:
site view

getLocatorName

public String getLocatorName()
getLocatorName - return profile locator name associated with the derived delegate of this proxy in the site view

Returns:
profile locator name

reflectMethod

protected static Method reflectMethod(Class methodClass,
                                      String methodName,
                                      Class[] methodArgs)
reflectMethod - trap method reflection exceptions utility function

Parameters:
methodClass - class or interface
methodName - method name
methodArgs - array of type, class, or interface parameter types

getSiteViewProxy

public static SiteViewProxy getSiteViewProxy(Object proxy)
getSiteViewProxy - utility method to access SiteViewProxy handler from a proxy instance

Parameters:
proxy - proxy instance
Returns:
site view invocation handler instance


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