org.apache.webbeans.portable.events
Class ExtensionLoader

java.lang.Object
  extended by org.apache.webbeans.portable.events.ExtensionLoader

public class ExtensionLoader
extends Object

Loads META-INF/services/javax.enterprise.inject.spi.Extension services.

Version:
$Rev: 1182780 $ $Date: 2011-10-13 13:11:03 +0200 (Do, 13 Okt 2011) $

Constructor Summary
ExtensionLoader(WebBeansContext webBeansContext)
          Creates a new loader instance.
 
Method Summary
 void addExtension(javax.enterprise.inject.spi.Extension ext)
          Add a CDI Extension to our internal list.
 void clear()
          Clear service list.
<T> T
getBeanInstance(javax.enterprise.inject.spi.Bean<T> bean)
          Returns service bean instance.
static ExtensionLoader getInstance()
          Deprecated. 
 void loadExtensionServices()
          Load extension services.
 void loadExtensionServices(ClassLoader classLoader)
          Load extension services.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionLoader

public ExtensionLoader(WebBeansContext webBeansContext)
Creates a new loader instance.

Parameters:
webBeansContext -
Method Detail

getInstance

@Deprecated
public static ExtensionLoader getInstance()
Deprecated. 

Returns singleton ExtensionLoader instance.

Returns:
singleton instance

loadExtensionServices

public void loadExtensionServices()
Load extension services.


loadExtensionServices

public void loadExtensionServices(ClassLoader classLoader)
Load extension services.

Parameters:
classLoader -

getBeanInstance

public <T> T getBeanInstance(javax.enterprise.inject.spi.Bean<T> bean)
Returns service bean instance.

Parameters:
bean - service bean
Returns:
service bean instance

addExtension

public void addExtension(javax.enterprise.inject.spi.Extension ext)
Add a CDI Extension to our internal list.

Parameters:
ext - Extension to add

clear

public void clear()
Clear service list. TODO since this doesn't remove the beans from the BeanManager it's unlikely to allow you to call loadExtensionServices again



Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.