ValueMetaData clVMD = metaData.getClassLoader(); if (clVMD != null)
protected void addChildren(Set<MetaDataVisitorNode> children) if (classLoader != null && classLoader.getClassLoader() != this) children.add(classLoader); if (constructor != null)
public void setClassLoader(ClassLoaderMetaData classLoaderMetaData) { super.setClassLoader(classLoaderMetaData); addProperty(new AbstractPropertyMetaData(clPropertyName, classLoaderMetaData.getClassLoader())); }
@SuppressWarnings({"unchecked", "deprecation"}) public Object getValue(TypeInfo info, ClassLoader cl) throws Throwable { if (context == null) throw new IllegalStateException("Context has not been set: " + this); Controller controller = context.getController(); ControllerContext lookup = controller.getInstalledContext(name); if (lookup == null || lookup.getTarget() == null) { // possible call for classloader if (info == null && classLoader != null && classLoader.getClassLoader() == this) { return cl; } throw new IllegalArgumentException("Bean not yet installed: " + name); } Object target = lookup.getTarget(); // TODO - add progression here as well? if (info != null && info.getType().isAssignableFrom(target.getClass()) == false) { throw new ClassCastException(target + " is not a " + info); } return target; }
if (classLoaderMetaData != null) ValueMetaData classLoader = classLoaderMetaData.getClassLoader(); if (classLoader instanceof BeanMetaData) ValueMetaData classLoader = deploymentClassLoader.getClassLoader(); if (classLoader instanceof BeanMetaData)
buffer.append(" properties="); JBossObject.list(buffer, properties); if (classLoader != null && classLoader.getClassLoader() != this) buffer.append(" classLoader=").append(classLoader); buffer.append(" constructor=").append(constructor);