org.apache.jetspeed.profiler.rules.impl
Class AbstractProfilingRule

java.lang.Object
  extended byorg.apache.jetspeed.profiler.rules.impl.AbstractProfilingRule
All Implemented Interfaces:
org.apache.jetspeed.profiler.rules.ProfilingRule, Serializable
Direct Known Subclasses:
RoleFallbackProfilingRule, StandardProfilingRule

public abstract class AbstractProfilingRule
extends Object
implements org.apache.jetspeed.profiler.rules.ProfilingRule

ProfilingRuleImpl

Version:
$Id: AbstractProfilingRule.java 188495 2005-04-09 18:48:09Z taylor $
Author:
David Sean Taylor
See Also:
Serialized Form

Field Summary
protected  Collection criteria
           
protected  String id
           
(package private) static Map locators
          Map of profile locators kept around for reuse TODO: evict entries after max size reached
protected  String ojbConcreteClass
           
(package private) static Map resolvers
          Map of resolver rules for criteria.
protected  String title
           
 
Fields inherited from interface org.apache.jetspeed.profiler.rules.ProfilingRule
CCPP_PROPERTY, REQUEST_ATTRIBUTE, REQUEST_PARAMETER, SESSION_ATTRIBUTE, STANDARD, STANDARD_COUNTRY, STANDARD_GROUP, STANDARD_GROUP_ROLE_USER, STANDARD_LANGUAGE, STANDARD_MEDIATYPE, STANDARD_PAGE, STANDARD_ROLE, STANDARD_ROLE_FALLBACK, STANDARD_USER, USER_ATTRIBUTE
 
Constructor Summary
AbstractProfilingRule()
           
 
Method Summary
protected  void addLocatorToCache(String key, org.apache.jetspeed.profiler.ProfileLocator locator)
           
abstract  org.apache.jetspeed.profiler.ProfileLocator apply(org.apache.jetspeed.request.RequestContext context, org.apache.jetspeed.profiler.Profiler service)
           
 String getClassname()
           
 org.apache.jetspeed.profiler.rules.RuleCriterionResolver getDefaultResolver()
           
 String getId()
           
protected  org.apache.jetspeed.profiler.ProfileLocator getLocatorFromCache(String key)
           
 org.apache.jetspeed.profiler.rules.RuleCriterionResolver getResolver(String name)
           
 Collection getRuleCriteria()
           
 String getTitle()
           
 void setClassname(String classname)
           
 void setId(String id)
           
 void setTitle(String title)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

criteria

protected Collection criteria

id

protected String id

title

protected String title

ojbConcreteClass

protected String ojbConcreteClass

locators

static Map locators
Map of profile locators kept around for reuse TODO: evict entries after max size reached


resolvers

static Map resolvers
Map of resolver rules for criteria. The map goes from criterion name to resolver class

Constructor Detail

AbstractProfilingRule

public AbstractProfilingRule()
Method Detail

getLocatorFromCache

protected org.apache.jetspeed.profiler.ProfileLocator getLocatorFromCache(String key)

addLocatorToCache

protected void addLocatorToCache(String key,
                                 org.apache.jetspeed.profiler.ProfileLocator locator)

getResolver

public org.apache.jetspeed.profiler.rules.RuleCriterionResolver getResolver(String name)
Specified by:
getResolver in interface org.apache.jetspeed.profiler.rules.ProfilingRule

getDefaultResolver

public org.apache.jetspeed.profiler.rules.RuleCriterionResolver getDefaultResolver()

apply

public abstract org.apache.jetspeed.profiler.ProfileLocator apply(org.apache.jetspeed.request.RequestContext context,
                                                                  org.apache.jetspeed.profiler.Profiler service)
Specified by:
apply in interface org.apache.jetspeed.profiler.rules.ProfilingRule

getRuleCriteria

public Collection getRuleCriteria()
Specified by:
getRuleCriteria in interface org.apache.jetspeed.profiler.rules.ProfilingRule

getId

public String getId()
Specified by:
getId in interface org.apache.jetspeed.profiler.rules.ProfilingRule

setId

public void setId(String id)
Specified by:
setId in interface org.apache.jetspeed.profiler.rules.ProfilingRule

getTitle

public String getTitle()
Specified by:
getTitle in interface org.apache.jetspeed.profiler.rules.ProfilingRule

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface org.apache.jetspeed.profiler.rules.ProfilingRule

getClassname

public String getClassname()
Specified by:
getClassname in interface org.apache.jetspeed.profiler.rules.ProfilingRule

setClassname

public void setClassname(String classname)
Specified by:
setClassname in interface org.apache.jetspeed.profiler.rules.ProfilingRule

toString

public String toString()


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