Forge - Addon Container 2.0.0.Alpha3

org.jboss.forge.container.impl
Class ServiceRegistryImpl

java.lang.Object
  extended by org.jboss.forge.container.impl.ServiceRegistryImpl
All Implemented Interfaces:
ServiceRegistry

public class ServiceRegistryImpl
extends Object
implements ServiceRegistry


Constructor Summary
ServiceRegistryImpl(LockManager lock, AddonImpl addon, javax.enterprise.inject.spi.BeanManager manager, ContainerServiceExtension extension)
           
 
Method Summary
<T> void
addService(Class<T> clazz)
           
<T> ExportedInstance<T>
getExportedInstance(Class<T> clazz)
           
<T> ExportedInstance<T>
getExportedInstance(String clazz)
           
<T> Set<ExportedInstance<T>>
getExportedInstances(Class<T> requestedType)
           
<T> Set<ExportedInstance<T>>
getExportedInstances(String clazz)
           
 Set<Class<?>> getServices()
           
 boolean hasService(Class<?> clazz)
           
 boolean hasService(String clazz)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceRegistryImpl

public ServiceRegistryImpl(LockManager lock,
                           AddonImpl addon,
                           javax.enterprise.inject.spi.BeanManager manager,
                           ContainerServiceExtension extension)
Method Detail

addService

public <T> void addService(Class<T> clazz)

getExportedInstance

public <T> ExportedInstance<T> getExportedInstance(String clazz)
Specified by:
getExportedInstance in interface ServiceRegistry

getExportedInstance

public <T> ExportedInstance<T> getExportedInstance(Class<T> clazz)
Specified by:
getExportedInstance in interface ServiceRegistry

getServices

public Set<Class<?>> getServices()
Specified by:
getServices in interface ServiceRegistry

hasService

public boolean hasService(String clazz)
Specified by:
hasService in interface ServiceRegistry

hasService

public boolean hasService(Class<?> clazz)
Specified by:
hasService in interface ServiceRegistry

getExportedInstances

public <T> Set<ExportedInstance<T>> getExportedInstances(String clazz)
Specified by:
getExportedInstances in interface ServiceRegistry

getExportedInstances

public <T> Set<ExportedInstance<T>> getExportedInstances(Class<T> requestedType)
Specified by:
getExportedInstances in interface ServiceRegistry

toString

public String toString()
Overrides:
toString in class Object

Forge - Addon Container 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.