JBoss Modular Service Kernel API 1.0.0.Beta4-SNAPSHOT

org.jboss.msc.value
Class LookupClassValue

java.lang.Object
  extended by org.jboss.msc.value.LookupClassValue
All Implemented Interfaces:
Value<Class<?>>

public final class LookupClassValue
extends Object
implements Value<Class<?>>

A value which looks up a class by name from a classloader.

Author:
David M. Lloyd

Constructor Summary
LookupClassValue(String className, Value<? extends ClassLoader> classLoaderValue)
          Construct a new instance.
 
Method Summary
 Class<?> getValue()
          Get the actual value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupClassValue

public LookupClassValue(String className,
                        Value<? extends ClassLoader> classLoaderValue)
Construct a new instance.

Parameters:
className - the class name
classLoaderValue - the class loader to use
Method Detail

getValue

public Class<?> getValue()
                  throws IllegalStateException
Get the actual value.

Specified by:
getValue in interface Value<Class<?>>
Returns:
the actual value
Throws:
IllegalStateException - if the value is time-sensitive and the current state does not allow retrieval.

JBoss Modular Service Kernel API 1.0.0.Beta4-SNAPSHOT

Copyright © 2010 JBoss, a division of Red Hat, Inc.