org.codehaus.plexus.component.manager
Class KeepAliveSingletonComponentManager

java.lang.Object
  extended by org.codehaus.plexus.component.manager.AbstractComponentManager
      extended by org.codehaus.plexus.component.manager.KeepAliveSingletonComponentManager
All Implemented Interfaces:
Cloneable, ComponentManager

public class KeepAliveSingletonComponentManager
extends AbstractComponentManager

This ensures a component is only used as a singleton, and is only shutdown when the container shuts down.

Version:
$Id: KeepAliveSingletonComponentManager.java 6064 2007-03-13 12:39:55Z trygvis $
Author:
Bert van Brakel

Field Summary
 
Fields inherited from class org.codehaus.plexus.component.manager.AbstractComponentManager
componentContextRealms, componentDescriptor, container
 
Fields inherited from interface org.codehaus.plexus.component.manager.ComponentManager
ROLE
 
Constructor Summary
KeepAliveSingletonComponentManager()
           
 
Method Summary
 void dispose()
           
 Object getComponent(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
           
 void release(Object component)
           
 
Methods inherited from class org.codehaus.plexus.component.manager.AbstractComponentManager
connected, copy, createComponentInstance, createComponentInstance, decrementConnectionCount, endComponentLifecycle, getComponent, getComponentDescriptor, getConnections, getContainer, getId, getLifecycleHandler, getLogger, incrementConnectionCount, initialize, resume, setup, startComponentLifecycle, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeepAliveSingletonComponentManager

public KeepAliveSingletonComponentManager()
Method Detail

release

public void release(Object component)

dispose

public void dispose()
             throws org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
Throws:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException

getComponent

public Object getComponent(org.codehaus.plexus.classworlds.realm.ClassRealm realm)
                    throws ComponentInstantiationException,
                           org.codehaus.plexus.component.repository.exception.ComponentLifecycleException
Throws:
ComponentInstantiationException
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException


Copyright © 2001-2010 Codehaus. All Rights Reserved.