Package org.osgi.service.component.annotations

Examples of org.osgi.service.component.annotations.Component


  private void applyComponent(final ComponentBean component,
      final Class<?> type) {

    if (Util.hasComponentAnno(type)) {

      final Component anno = type.getAnnotation(Component.class);

      //

      final String name = anno.name();
      final String nameDefault = type.getName();
      component.name = Util.isValidText(name) ? name : nameDefault;

      component.enabled = anno.enabled();

      final String factory = anno.factory();
      component.factory = Util.isValidText(factory) ? factory : null;

      component.immediate = anno.immediate();

      component.policy = anno.configurationPolicy();

      //

      component.implementation.klaz = type.getName();

      component.service.servicefactory = anno.servicefactory();

      //

      applyPropertyKeyValue(component, anno, type);
View Full Code Here


  private void applyComponent(final ComponentBean component,
      final Class<?> type) {

    if (Util.hasComponentAnno(type)) {

      final Component anno = type.getAnnotation(Component.class);

      //

      final String name = anno.name();
      final String nameDefault = type.getName();
      component.name = Util.isValidText(name) ? name : nameDefault;

      component.enabled = anno.enabled();

      final String factory = anno.factory();
      component.factory = Util.isValidText(factory) ? factory : null;

      component.immediate = anno.immediate();

      component.policy = anno.configurationPolicy();

      //

      component.implementation.klaz = type.getName();

      component.service.servicefactory = anno.servicefactory();

      //

      applyPropertyKeyValue(component, anno, type);
View Full Code Here

  private void applyComponent(final ComponentBean component,
      final Class<?> type) {

    if (Util.hasComponentAnno(type)) {

      final Component anno = type.getAnnotation(Component.class);

      //

      final String name = anno.name();
      final String nameDefault = type.getName();
      component.name = Util.isValidText(name) ? name : nameDefault;

      component.enabled = anno.enabled();

      final String factory = anno.factory();
      component.factory = Util.isValidText(factory) ? factory : null;

      component.immediate = anno.immediate();

      component.policy = anno.configurationPolicy();

      //

      component.implementation.klaz = type.getName();

      component.service.servicefactory = anno.servicefactory();

      //

      applyPropertyKeyValue(component, anno, type);
View Full Code Here

  private void applyComponent(final ComponentBean component,
      final Class<?> type) {

    if (Util.hasComponentAnno(type)) {

      final Component anno = type.getAnnotation(Component.class);

      //

      final String name = anno.name();
      final String nameDefault = type.getName();
      component.name = Util.isValidText(name) ? name : nameDefault;

      component.enabled = anno.enabled();

      final String factory = anno.factory();
      component.factory = Util.isValidText(factory) ? factory : null;

      component.immediate = anno.immediate();

      component.policy = anno.configurationPolicy();

      //

      component.implementation.klaz = type.getName();

      component.service.servicefactory = anno.servicefactory();

      //

      applyPropertyKeyValue(component, anno, type);
View Full Code Here

TOP

Related Classes of org.osgi.service.component.annotations.Component

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.