|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.sca.contribution.resolver.ClassReference
public class ClassReference
A weak reference to a class, which should be used to register classes with an ArtifactResolver and resolve these classes later. FIXME The core contribution model should not have dependencies on classes and ClassLoaders. This should move to the Java import support module.
Constructor Summary | |
---|---|
ClassReference(java.lang.Class<?> clazz)
Constructs a new ClassReference. |
|
ClassReference(java.lang.String className)
Constructs a new ClassReference. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getClassName()
Get the referenced class name. |
java.lang.Class<?> |
getJavaClass()
Get the referenced class. |
int |
hashCode()
|
boolean |
isUnresolved()
Returns true if the model element is unresolved. |
void |
setUnresolved(boolean unresolved)
Sets whether the model element is unresolved. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassReference(java.lang.Class<?> clazz)
clazz
- The class referencepublic ClassReference(java.lang.String className)
className
- The class nameMethod Detail |
---|
public java.lang.Class<?> getJavaClass()
public java.lang.String getClassName()
public boolean isUnresolved()
Base
isUnresolved
in interface Base
public void setUnresolved(boolean unresolved)
Base
setUnresolved
in interface Base
unresolved
- whether the model element is unresolvedpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |