public void dispose() { try { componentRegistry.dispose(); boolean needToDisposeRealm = false; try { containerRealm.setParentRealm( null ); if ( needToDisposeRealm ) { classWorld.disposeRealm( containerRealm.getId() ); } } catch ( NoSuchRealmException e ) { getLogger().debug( "Failed to dispose realm." ); } } finally { lookupRealm.set( null ); } }
public Logger get() { return getLogger(); }
protected void disposeAllComponents() { // copy the list so we don't get concurrent modification exceptions during disposal Collection collection = new ArrayList( componentManagerManager.getComponentManagers().values() ); for ( Iterator iter = collection.iterator(); iter.hasNext(); ) { try { ( (ComponentManager) iter.next() ).dispose(); } catch ( Exception e ) { getLogger().error( "Error while disposing component manager. Continuing with the rest", e ); } } componentManagerManager.getComponentManagers().clear(); }
getLogger().debug( "Missing container configuration: " + configurationPath );
getLogger().warn( realm.toString(), e );
getLogger().debug( "Created component realm: " + id );
context.getContainer().getConfiguration().getChild( "load-on-start" ).getChildren( "component" ); context.getContainer().getLogger().debug( "Found " + loadOnStartComponents.length + " components to load on start" ); context.getContainer().getLogger().info( "Loading on start all components with [role]: " + "[" + role + "]" ); context.getContainer().getLogger().info( "Loading on start [role,roleHint]: " + "[" + role + "," + roleHint + "]" );
public void release( Object component ) throws ComponentLifecycleException { if ( component == null ) { return; } ComponentManager componentManager = componentManagerManager.findComponentManagerByComponentInstance( component ); if ( componentManager == null ) { if ( parentContainer != null ) { parentContainer.release( component ); } else { // This needs to be tracked down but the user doesn't need to see this getLogger().debug( "Component manager not found for returned component. Ignored. component=" + component ); } } else { componentManager.release( component ); if ( componentManager.getConnections() <= 0 ) { componentManagerManager.unassociateComponentWithComponentManager( component ); } } }
&& !orig.getRealmId().equals( componentDescriptor.getRealmId() ) ) if ( container.getLogger().isDebugEnabled() ) container.getLogger().debug( "Duplicate component found, merging:" + "\n Original: " + orig.getRealmId() + ": " + orig.getRole() + " [" + orig.getRoleHint() + "] impl=" if ( container.getLogger().isDebugEnabled() ) container.getLogger().debug( "Duplicate component found, not replacing:" + "\n Original: " + orig.getRealmId() + ": " + orig.getRole() + " [" + orig.getRoleHint()
getLogger().debug( "Failed to dispose realm for exiting container: " + getName(), e );