Package org.apache.felix.ipojo.api

Examples of org.apache.felix.ipojo.api.Dependency


    private PrimitiveComponentType createAConsumer() {
        return new PrimitiveComponentType()
                .setBundleContext(context)
                .setClassName(MyComponentImpl.class.getName())
                .addDependency(new Dependency().setField("myFoo"))
                .setValidateMethod("start");
    }
View Full Code Here


    private SingletonComponentType createAConsumer() {
        PrimitiveComponentType type = new SingletonComponentType()
                .setBundleContext(context)
                .setClassName(MyComponentImpl.class.getName())
                .setComponentTypeName("singleton.cons")
                .addDependency(new Dependency().setField("myFoo"))
                .setValidateMethod("start");

        return (SingletonComponentType) type;
    }
View Full Code Here

    private SingletonComponentType createAnOptionalConsumer() {
        PrimitiveComponentType type = new SingletonComponentType()
                .setBundleContext(context)
                .setClassName(MyComponentImpl.class.getName())
                .addDependency(new Dependency().setField("myFoo").setOptional(true))
                .setComponentTypeName("singleton.optional.consumer")
                .setValidateMethod("start");

        return (SingletonComponentType) type;
View Full Code Here

    private PrimitiveComponentType createAConsumer() {
        return new SingletonComponentType()
                .setBundleContext(context)
                .setClassName(MyComponentImpl.class.getName())
                .addDependency(new Dependency().setField("myFoo"))
                .setValidateMethod("start");
    }
View Full Code Here

    private PrimitiveComponentType createAnOptionalConsumer() {
        return new SingletonComponentType()
                .setBundleContext(context)
                .setComponentTypeName("cons.optional")
                .setClassName(MyComponentImpl.class.getName())
                .addDependency(new Dependency().setField("myFoo").setOptional(true))
                .setValidateMethod("start");
    }
View Full Code Here

    private PrimitiveComponentType createAConsumer() {
        return new PrimitiveComponentType()
        .setBundleContext(context)
        .setClassName(org.example.service.impl.MyComponentImpl.class.getName())
        .addDependency(new Dependency().setField("myFoo"))
        .setValidateMethod("start");
    }
View Full Code Here

    private SingletonComponentType createAConsumer() {
        PrimitiveComponentType type =  new SingletonComponentType()
        .setBundleContext(context)
        .setClassName(org.example.service.impl.MyComponentImpl.class.getName())
        .addDependency(new Dependency().setField("myFoo"))
        .setValidateMethod("start");

        return (SingletonComponentType) type;
    }
View Full Code Here

    private SingletonComponentType createAnOptionalConsumer() {
        PrimitiveComponentType type =  new SingletonComponentType()
        .setBundleContext(context)
        .setClassName(org.example.service.impl.MyComponentImpl.class.getName())
        .addDependency(new Dependency().setField("myFoo").setOptional(true))
        .setValidateMethod("start");

        return (SingletonComponentType) type;

    }
View Full Code Here

    private PrimitiveComponentType createAConsumer() {
        return new SingletonComponentType()
        .setBundleContext(context)
        .setClassName(org.example.service.impl.MyComponentImpl.class.getName())
        .addDependency(new Dependency().setField("myFoo"))
        .setValidateMethod("start");
    }
View Full Code Here

    private PrimitiveComponentType createAnOptionalConsumer() {
        return new SingletonComponentType()
        .setBundleContext(context)
        .setClassName(org.example.service.impl.MyComponentImpl.class.getName())
        .addDependency(new Dependency().setField("myFoo").setOptional(true))
        .setValidateMethod("start");
    }
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.api.Dependency

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.