JBoss ClassPool Parent POM 1.0.0.GA

org.jboss.classpool.base
Class CtClassCacheFactory

java.lang.Object
  extended by org.jboss.classpool.base.CtClassCacheFactory

public class CtClassCacheFactory
extends Object

if -Dorg.jboss.classpool.policy is not set, no caching will be used in the classpools. It can be set to the name of any org.jboss.util.CachePolicy implementation with a default constructor. Two CachePolicy implementations supported out of the box with extra properties are

Version:
$Revision: 1.1 $
Author:
Kabir Khan

Field Summary
static int DEFAULT_LRU_POLICY_MAX
           
static int DEFAULT_LRU_POLICY_MIN
           
static int DEFAULT_TIMED_POLICY_LIFETIME
           
static int DEFAULT_TIMED_POLICY_RESOLUTION
           
static String LRU_POLICY_MAX
           
static String LRU_POLICY_MIN
           
static String POLICY_CLASS
           
static String TIMED_POLICY_LIFETIME
           
static String TIMED_POLICY_RESOLUTION
           
 
Constructor Summary
CtClassCacheFactory()
           
 
Method Summary
 CtClassCache createCache()
           
static CtClassCacheFactory createFromProperties()
           
static CtClassCacheFactory createFromProperties(Properties properties)
           
 int getLifetime()
          Get the lifetime
 int getMax()
          Get the max
 int getMin()
          Get the min
 Class<? extends org.jboss.util.CachePolicy> getPolicyClass()
          Get the policyClass
 int getResolution()
          Get the resolution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POLICY_CLASS

public static final String POLICY_CLASS
See Also:
Constant Field Values

TIMED_POLICY_LIFETIME

public static final String TIMED_POLICY_LIFETIME
See Also:
Constant Field Values

TIMED_POLICY_RESOLUTION

public static final String TIMED_POLICY_RESOLUTION
See Also:
Constant Field Values

LRU_POLICY_MIN

public static final String LRU_POLICY_MIN
See Also:
Constant Field Values

LRU_POLICY_MAX

public static final String LRU_POLICY_MAX
See Also:
Constant Field Values

DEFAULT_TIMED_POLICY_LIFETIME

public static final int DEFAULT_TIMED_POLICY_LIFETIME
See Also:
Constant Field Values

DEFAULT_TIMED_POLICY_RESOLUTION

public static final int DEFAULT_TIMED_POLICY_RESOLUTION
See Also:
Constant Field Values

DEFAULT_LRU_POLICY_MIN

public static final int DEFAULT_LRU_POLICY_MIN
See Also:
Constant Field Values

DEFAULT_LRU_POLICY_MAX

public static final int DEFAULT_LRU_POLICY_MAX
See Also:
Constant Field Values
Constructor Detail

CtClassCacheFactory

public CtClassCacheFactory()
Method Detail

createFromProperties

public static CtClassCacheFactory createFromProperties()

createFromProperties

public static CtClassCacheFactory createFromProperties(Properties properties)

createCache

public CtClassCache createCache()

getPolicyClass

public Class<? extends org.jboss.util.CachePolicy> getPolicyClass()
Get the policyClass

Returns:
the policyClass

getLifetime

public int getLifetime()
Get the lifetime

Returns:
the lifetime

getResolution

public int getResolution()
Get the resolution

Returns:
the resolution

getMin

public int getMin()
Get the min

Returns:
the min

getMax

public int getMax()
Get the max

Returns:
the max

JBoss ClassPool Parent POM 1.0.0.GA

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.