org.jboss.osgi.spi.framework
Class AbstractInstanceProvider

java.lang.Object
  extended by org.jboss.osgi.spi.framework.AbstractInstanceProvider
All Implemented Interfaces:
NamedInstanceProvider

public abstract class AbstractInstanceProvider
extends java.lang.Object
implements NamedInstanceProvider

Provide a named instance from the configuration.

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

Constructor Summary
AbstractInstanceProvider()
           
 
Method Summary
<T> T
getInstance(java.lang.String name, java.lang.Class<T> expectedType)
          Get a named instance for a given type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.osgi.spi.framework.NamedInstanceProvider
getInstance
 

Constructor Detail

AbstractInstanceProvider

public AbstractInstanceProvider()
Method Detail

getInstance

public <T> T getInstance(java.lang.String name,
                         java.lang.Class<T> expectedType)
Description copied from interface: NamedInstanceProvider
Get a named instance for a given type

Specified by:
getInstance in interface NamedInstanceProvider
Type Parameters:
T - exact attribute type
Parameters:
name - the attribute name
expectedType - the expected type
Returns:
attribute


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.