Search in sources :

Example 16 with ComponentDefinitionRegistryImpl

use of org.apache.aries.blueprint.parser.ComponentDefinitionRegistryImpl in project aries by apache.

the class BeanLoadingTest method testLoadSimpleBean.

public void testLoadSimpleBean() throws Exception {
    ComponentDefinitionRegistryImpl registry = parse("/test-bean-classes.xml");
    Repository repository = new TestBlueprintContainer(registry).getRepository();
    Object obj = repository.create("simpleBean");
    assertNotNull(obj);
    assertTrue(obj instanceof SimpleBean);
}
Also used : Repository(org.apache.aries.blueprint.di.Repository) SimpleBean(org.apache.aries.blueprint.pojos.SimpleBean) ComponentDefinitionRegistryImpl(org.apache.aries.blueprint.parser.ComponentDefinitionRegistryImpl)

Aggregations

ComponentDefinitionRegistryImpl (org.apache.aries.blueprint.parser.ComponentDefinitionRegistryImpl)16 Repository (org.apache.aries.blueprint.di.Repository)12 BlueprintRepository (org.apache.aries.blueprint.container.BlueprintRepository)8 MyObject (org.apache.aries.blueprint.pojos.PojoGenerics2.MyObject)6 HashMap (java.util.HashMap)4 BigInteger (java.math.BigInteger)3 Map (java.util.Map)3 URI (java.net.URI)2 ArrayList (java.util.ArrayList)2 ComponentDefinitionRegistry (org.apache.aries.blueprint.ComponentDefinitionRegistry)2 NamespaceHandlerSet (org.apache.aries.blueprint.parser.NamespaceHandlerSet)2 Parser (org.apache.aries.blueprint.parser.Parser)2 BeanD (org.apache.aries.blueprint.pojos.BeanD)2 PojoA (org.apache.aries.blueprint.pojos.PojoA)2 PojoB (org.apache.aries.blueprint.pojos.PojoB)2 SimpleBean (org.apache.aries.blueprint.pojos.SimpleBean)2 ComponentDefinitionException (org.osgi.service.blueprint.container.ComponentDefinitionException)2 URL (java.net.URL)1 Calendar (java.util.Calendar)1 Collection (java.util.Collection)1