if ( componentManagerFactory == null ) throw new ComponentLookupException( "Unsupported instantiation strategy: " + instantiationStrategy, role, roleHint, throw new ComponentLookupException( "Undefined lifecycle handler: " + descriptor.getLifecycleHandler(), role, roleHint,
throw new ComponentLookupException( "Unable to lookup component '" + componentManager.getRole() + "', it could not be created.", componentManager.getRole(), componentManager.getRoleHint(), componentManager.getRealm(), e ); throw new ComponentLookupException( "Unable to lookup component '" + componentManager.getRole() + "', it could not be started.", componentManager.getRole(), componentManager.getRoleHint(), componentManager.getRealm(), e );
throw new ComponentLookupException("ComponentRegistry is not active", role, roleHint ); if ( descriptor == null ) throw new ComponentLookupException( "Component descriptor cannot be found in the component repository", role,
protected SyndFeed getFeed(Context context, Request request, String channelKey, Integer from, Integer count, Map<String, String> params) throws IOException, ComponentLookupException { FeedSource src = feeds.get(channelKey); if (src != null) { return src.getFeed(from, count, params); } throw new ComponentLookupException("Feed with key '" + channelKey + "' not found.", "FeedSource", channelKey); }
public <T> T lookup( final Class<T> type, final String role, final String hint ) throws ComponentLookupException { try { return locate( role, type, hint ).iterator().next().getValue(); } catch ( final RuntimeException e ) { throw new ComponentLookupException( e, null != role ? role : type.getName(), hint ); } }
public <T> T lookup( final Class<T> type, final String role, final String hint ) throws ComponentLookupException { try { return locate( role, type, hint ).iterator().next().getValue(); } catch ( final RuntimeException e ) { throw new ComponentLookupException( e, null != type ? type.getName() : role, hint ); } }
public ComponentManager createComponentManager( ComponentDescriptor descriptor, String role, String roleHint, ClassRealm realm ) throws ComponentLookupException { ComponentManager componentManager; try { componentManager = container.getComponentManagerManager().createComponentManager( descriptor, container, role, roleHint ); } catch ( UndefinedComponentManagerException e ) { String message = "Cannot create component manager for " + descriptor.getRole() + " [" + descriptor.getRoleHint() + "], so we cannot provide a component instance."; throw new ComponentLookupException( message, role, roleHint, realm, e ); } catch ( UndefinedLifecycleHandlerException e ) { String message = "Cannot create component manager for " + descriptor.getRole() + " [" + descriptor.getRoleHint() + "], so we cannot provide a component instance."; throw new ComponentLookupException( message, role, roleHint, realm, e ); } return componentManager; } }
+ " [" + roleHint + "]" + " (lookup realm: " + realm + ")."; throw new ComponentLookupException( message, componentRole, roleHint, realm ); throw new ComponentLookupException( "Unable to lookup component '" + componentRole + "', it could not be created.", componentRole, roleHint, realm, e ); throw new ComponentLookupException( "Unable to lookup component '" + componentRole + "', it could not be started.", componentRole, roleHint, realm, e );
public void deploy() throws ComponentLookupException, ConnectionException, AuthenticationException, TransferFailedException, ResourceDoesNotExistException, AuthorizationException { Wagon wagon; try { wagon = (Wagon) TestContainer.getInstance().lookup( Wagon.ROLE, protocol ); } catch ( Exception e ) { throw new ComponentLookupException( e.getMessage(), Wagon.ROLE, protocol ); } Repository repository = new Repository(); repository.setUrl( repositoryUrl ); wagon.connect( repository, RequestFacade.getWagonAuthenticationInfo() ); wagon.put( fileToDeploy, artifactPath ); wagon.disconnect(); }
+ consoleOutput ); case 7: throw new ComponentLookupException( "Process exit status was: " + status + "Process output:\n" + consoleOutput, Wagon.ROLE, protocol ); default: