protected void startComponentLifecycle(Object component, ClassRealm realm) throws ComponentLifecycleException { try { componentManager.start(component); } catch (PhaseExecutionException e) { throw new ComponentLifecycleException("Error starting component", e); } }
protected void endComponentLifecycle( Object component ) throws ComponentLifecycleException { ClassRealm contextRealm = componentContextRealms.remove( component ); if ( contextRealm == null ) { contextRealm = container.getLookupRealm( component ); } try { getLifecycleHandler().end( component, this, contextRealm ); } catch ( PhaseExecutionException e ) { throw new ComponentLifecycleException( "Error ending component lifecycle", e ); } }
throw new ComponentLifecycleException("Error constructing component " + descriptor.getHumanReadableKey(), e); } catch (LinkageError e) { throw new ComponentLifecycleException("Error constructing component " + descriptor.getHumanReadableKey(), e); } finally { Thread.currentThread().setContextClassLoader(oldClassLoader);
protected void startComponentLifecycle( Object component, ClassRealm realm ) throws ComponentLifecycleException { try { componentManager.getLifecycleHandler().start( component, componentManager, realm ); } catch ( PhaseExecutionException e ) { throw new ComponentLifecycleException( "Error starting component", e ); } }
protected void startComponentLifecycle(Object component, ClassRealm realm) throws ComponentLifecycleException { try { componentManager.getLifecycleHandler().start(component, componentManager, realm); } catch (PhaseExecutionException e) { throw new ComponentLifecycleException("Error starting component", e); } }
protected void endComponentLifecycle( Object component ) throws ComponentLifecycleException { ClassRealm contextRealm = (ClassRealm) componentContextRealms.remove( component ); if ( contextRealm == null ) { contextRealm = container.getLookupRealm( component ); } try { getLifecycleHandler().end( component, this, contextRealm ); } catch ( PhaseExecutionException e ) { throw new ComponentLifecycleException( "Error ending component lifecycle", e ); } }
throw new ComponentLifecycleException("Error constructing component " + descriptor.getHumanReadableKey(), e); } finally { Thread.currentThread().setContextClassLoader(oldClassLoader);