com.sun.sgs.kernel
Interface ComponentRegistry

All Superinterfaces:
Iterable<Object>

public interface ComponentRegistry
extends Iterable<Object>

This is a general registry interface used to provide access to a collection of components by type. It is used by the kernel during startup to configure system components and Services.


Method Summary
<T> T
getComponent(Class<T> type)
          Returns a component from the registry, matched based on the given type.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getComponent

<T> T getComponent(Class<T> type)
Returns a component from the registry, matched based on the given type. If there are no matches, or there is more than one possible match, then an exception is thrown.

Type Parameters:
T - the type of the component
Parameters:
type - the Class of the requested component
Returns:
the requested component
Throws:
MissingResourceException - if the requested component is not available, or if there is more than one matching component

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved