/* */ public void describeVisit(MetaDataVisitor vistor)
/* */ {
/* */ try
/* */ {
/* 178 */ KernelControllerContext context = vistor.getControllerContext();
/* */ CallbackItem callback;
/* 180 */ if (this.property != null)
/* */ {
/* 182 */ if (this.propertyInfo == null)
/* */ {
/* 184 */ ClassLoader cl = Configurator.getClassLoader(context.getBeanMetaData());
/* 185 */ this.propertyInfo = Configurator.resolveProperty(this.log.isTraceEnabled(), context.getBeanInfo(), cl, this.property, this.signature);
/* */ }
/* 187 */ callback = CallbackCreatorUtil.createCallback(context, this.propertyInfo, this.whenRequired, this.dependentState, this.cardinality);
/* */ }
/* */ else
/* */ {
/* */ CallbackItem callback;
/* 189 */ if (this.methodName != null)
/* */ {
/* 191 */ if (this.methodInfo == null)
/* 192 */ this.methodInfo = Configurator.findMethodInfo(getClassInfo(context), this.methodName, new String[] { this.signature });
/* 193 */ callback = CallbackCreatorUtil.createCallback(context, this.methodInfo, this.whenRequired, this.dependentState, this.cardinality);
/* */ }
/* */ else {
/* 196 */ throw new IllegalArgumentException("Illegal usage - not property or method:" + this);
/* */ }
/* */ }
/* */ CallbackItem callback;
/* 199 */ addCallback(vistor, callback);
/* */
/* 202 */ if (this.cardinality != null)
/* */ {
/* 204 */ vistor.addDependency(new CallbackDependencyItem(context.getName(), (Class)callback.getIDependOn(), this.whenRequired, this.dependentState, this.cardinality));
/* */ }
/* */ }
/* */ catch (Throwable t)
/* */ {
/* 209 */ throw new Error(t);