Forge - Addon Container 2.0.0.Alpha3

org.jboss.forge.container.impl
Class NullServiceRegistry

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

@Typed
public class NullServiceRegistry
extends Object
implements ServiceRegistry

Used when an addon does not provide services.

Author:
Lincoln Baxter, III

Constructor Summary
NullServiceRegistry()
           
 
Method Summary
<T> ExportedInstance<T>
getExportedInstance(Class<T> serviceType)
           
<T> ExportedInstance<T>
getExportedInstance(String serviceType)
           
<T> Set<ExportedInstance<T>>
getExportedInstances(Class<T> serviceType)
           
 Set<ExportedInstance<Object>> getExportedInstances(String typeName)
           
 Set<Class<?>> getServices()
           
 boolean hasService(Class<?> serviceType)
           
 boolean hasService(String clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullServiceRegistry

public NullServiceRegistry()
Method Detail

getExportedInstance

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

getExportedInstance

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

getExportedInstances

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

getServices

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

hasService

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

hasService

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

getExportedInstances

public Set<ExportedInstance<Object>> getExportedInstances(String typeName)
Specified by:
getExportedInstances in interface ServiceRegistry

Forge - Addon Container 2.0.0.Alpha3

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