Spring Data Key-Value

org.springframework.data.keyvalue.riak.util
Class RiakClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.springframework.data.keyvalue.riak.util.RiakClassLoader

public class RiakClassLoader
extends ClassLoader

Author:
J. Brisbin

Field Summary
protected  Set<String> buckets
           
protected  String defaultBucket
           
protected  org.apache.commons.logging.Log log
           
protected  RiakTemplate riakTemplate
           
 
Constructor Summary
RiakClassLoader(ClassLoader classLoader, RiakTemplate riakTemplate)
           
RiakClassLoader(RiakTemplate riakTemplate)
           
 
Method Summary
protected  Class<?> findClass(String s)
           
 Set<String> getBuckets()
           
 String getDefaultBucket()
           
 RiakTemplate getRiakTemplate()
           
protected  void init(RiakTemplate riakTemplate)
           
protected  void loadBucketsFromClassPath()
           
 void setBuckets(Set<String> buckets)
           
 void setDefaultBucket(String defaultBucket)
           
 void setRiakTemplate(RiakTemplate riakTemplate)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log

buckets

protected Set<String> buckets

riakTemplate

protected RiakTemplate riakTemplate

defaultBucket

protected String defaultBucket
Constructor Detail

RiakClassLoader

public RiakClassLoader(ClassLoader classLoader,
                       RiakTemplate riakTemplate)

RiakClassLoader

public RiakClassLoader(RiakTemplate riakTemplate)
Method Detail

getBuckets

public Set<String> getBuckets()

setBuckets

public void setBuckets(Set<String> buckets)

getRiakTemplate

public RiakTemplate getRiakTemplate()

setRiakTemplate

public void setRiakTemplate(RiakTemplate riakTemplate)

getDefaultBucket

public String getDefaultBucket()

setDefaultBucket

public void setDefaultBucket(String defaultBucket)

findClass

protected Class<?> findClass(String s)
                      throws ClassNotFoundException
Overrides:
findClass in class ClassLoader
Throws:
ClassNotFoundException

loadBucketsFromClassPath

protected void loadBucketsFromClassPath()

init

protected void init(RiakTemplate riakTemplate)

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.