removed unused class
This commit is contained in:
parent
9297480ae1
commit
b75a92c843
1 changed files with 0 additions and 25 deletions
|
|
@ -1,25 +0,0 @@
|
|||
/**
|
||||
* Copyright (C) 2009-2010 Scalable Solutions AB <http://scalablesolutions.se>
|
||||
*/
|
||||
|
||||
package akka.spring
|
||||
|
||||
object StringReflect {
|
||||
|
||||
/**
|
||||
* Implicit conversion from String to StringReflect.
|
||||
*/
|
||||
implicit def string2StringReflect(x: String) = new StringReflect(x)
|
||||
}
|
||||
|
||||
/**
|
||||
* Reflection helper class.
|
||||
* @author michaelkober
|
||||
*/
|
||||
class StringReflect(val self: String) {
|
||||
if ((self eq null) || self == "") throw new IllegalArgumentException("Class name can't be null or empty string [" + self + "]")
|
||||
def toClass[T <: AnyRef]: Class[T] = {
|
||||
val clazz = Class.forName(self)
|
||||
clazz.asInstanceOf[Class[T]]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue