Package org.impalaframework.service

Examples of org.impalaframework.service.ContributionEndpoint


  protected final void processContributions(Collection<String> contributions) {
    for (String beanName : contributions) {

      Object bean = beanFactory.getBean(beanName);

      ContributionEndpoint endPoint = getContributionEndPoint(beanName, bean);

      //if contribution endpoint exists corresponding with bean name, then we add
      //to the contribution map, and register the bean
      if (endPoint != null) {
        contributionMap.put(bean, endPoint);
View Full Code Here


      }
    }
  }

  protected ContributionEndpoint getContributionEndPoint(String beanName, Object bean) {
    ContributionEndpoint endPoint = ModuleContributionUtils.findContributionEndPoint(beanFactory, beanName);
    return endPoint;
  }
View Full Code Here

    Set<String> beanNames = contributions.keySet();
    processContributions(beanNames);
  }

  protected ContributionEndpoint getContributionEndPoint(String beanName, Object bean) {
    ContributionEndpoint endPoint = ModuleContributionUtils.findContributionEndPoint(getBeanFactory(), beanName);

    if (endPoint == null) {
      String contributionClassNames = contributions.get(beanName);
      checkContributionClasses(bean, beanName, contributionClassNames);
     
View Full Code Here

  public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {

    String moduleName = moduleName();
   
    //only if there is a contribution end point corresponding with bean name do we register the service
    ContributionEndpoint endPoint = ModuleContributionUtils.findContributionEndPoint(beanFactory, beanName);
    if (endPoint != null) {     
      logger.info("Contributing bean " + beanName + " from module " + moduleName);
     
      if (serviceRegistry != null) {
        serviceRegistry.addService(beanName, moduleName, bean, beanClassLoader);
View Full Code Here

  }

  public void postProcessBeforeDestruction(Object bean, String beanName) throws BeansException {
 
    //remove bean if end point exists corresponding with bean name
    ContributionEndpoint endPoint = ModuleContributionUtils.findContributionEndPoint(beanFactory, beanName);
    if (endPoint != null) {
      if (serviceRegistry != null) {
        serviceRegistry.remove(bean);
      } else {
        logger.warn("Could not remove bean " + beanName + " from service registry as this is null");
View Full Code Here

*/
public abstract class ModuleContributionUtils {

  static ContributionEndpoint findContributionEndPoint(BeanFactory beanFactory, String beanName) {

    ContributionEndpoint factoryBean = null;
    if (beanFactory instanceof HierarchicalBeanFactory) {

      HierarchicalBeanFactory hierarchicalBeanFactory = (HierarchicalBeanFactory) beanFactory;
      BeanFactory parentBeanFactory = hierarchicalBeanFactory.getParentBeanFactory();

View Full Code Here

    Set<String> beanNames = contributions.keySet();
    processContributions(beanNames);
  }

  protected ContributionEndpoint getContributionEndPoint(String beanName, Object bean) {
    ContributionEndpoint endPoint = ModuleContributionUtils.findContributionEndPoint(getBeanFactory(), beanName);

    if (endPoint == null) {
      String contributionClassNames = contributions.get(beanName);
      checkContributionClasses(bean, beanName, contributionClassNames);
     
View Full Code Here

  public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {

    String moduleName = moduleName();
   
    //only if there is a contribution end point corresponding with bean name do we register the service
    ContributionEndpoint endPoint = ModuleContributionUtils.findContributionEndPoint(beanFactory, beanName);
    if (endPoint != null) {     
      logger.info("Contributing bean " + beanName + " from module " + moduleName);
     
      if (serviceRegistry != null) {
        serviceRegistry.addService(beanName, moduleName, bean, beanClassLoader);
View Full Code Here

  }

  public void postProcessBeforeDestruction(Object bean, String beanName) throws BeansException {
 
    //remove bean if end point exists corresponding with bean name
    ContributionEndpoint endPoint = ModuleContributionUtils.findContributionEndPoint(beanFactory, beanName);
    if (endPoint != null) {
      if (serviceRegistry != null) {
        serviceRegistry.remove(bean);
      } else {
        logger.warn("Could not remove bean " + beanName + " from service registry as this is null");
View Full Code Here

*/
public abstract class ModuleContributionUtils {

  static ContributionEndpoint findContributionEndPoint(BeanFactory beanFactory, String beanName) {

    ContributionEndpoint factoryBean = null;
    if (beanFactory instanceof HierarchicalBeanFactory) {

      HierarchicalBeanFactory hierarchicalBeanFactory = (HierarchicalBeanFactory) beanFactory;
      BeanFactory parentBeanFactory = hierarchicalBeanFactory.getParentBeanFactory();

View Full Code Here

TOP

Related Classes of org.impalaframework.service.ContributionEndpoint

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.