public void accept(PicoVisitor visitor) { super.accept(visitor); if (parameters != null) { for (int i = 0; i < parameters.length; i++) { parameters[i].accept(visitor); } } }
/** * Constructs a new ComponentAdapter for the given key and implementation. * @param componentKey the search key for this implementation * @param componentImplementation the concrete implementation * @param monitor the component monitor used by this ComponentAdapter * @throws AssignabilityRegistrationException if the key is a type and the implementation cannot be assigned to. */ protected AbstractComponentAdapter(Object componentKey, Class componentImplementation, ComponentMonitor monitor) throws AssignabilityRegistrationException { super(monitor); if (componentImplementation == null) { throw new NullPointerException("componentImplementation"); } this.componentKey = componentKey; this.componentImplementation = componentImplementation; checkTypeCompatibility(); }
/** * @return Returns the ComponentAdapter's class name and the component's key. * @see java.lang.Object#toString() */ public String toString() { return getClass().getName() + "[" + getComponentKey() + "]"; }
public void accept(PicoVisitor visitor) { super.accept(visitor); if (parameters != null) { for (int i = 0; i < parameters.length; i++) { parameters[i].accept(visitor); } } }