org.jboss.osgi.spi.framework
Interface NamedInstanceProvider

All Known Subinterfaces:
OSGiBootstrapProvider
All Known Implementing Classes:
MicrocontainerBootstrapProvider, PropertiesBootstrapProvider

public interface NamedInstanceProvider

Provide a named instance from the configuration.

Author:
ales.justin@jboss.com, thomas.diesler@jboss.com

Method Summary
 java.lang.Object getInstance(java.lang.String name)
          Get a named instance
<T> T
getInstance(java.lang.String name, java.lang.Class<T> expectedType)
          Get a named instance for a given type
 

Method Detail

getInstance

java.lang.Object getInstance(java.lang.String name)
Get a named instance

Parameters:
name - the attribute name
Returns:
attribute

getInstance

<T> T getInstance(java.lang.String name,
                  java.lang.Class<T> expectedType)
Get a named instance for a given type

Type Parameters:
T - exact attribute type
Parameters:
name - the attribute name
expectedType - the expected type
Returns:
attribute


Copyright © 2009. All Rights Reserved.