Package com.dooapp.gaedo.finders.root

Examples of com.dooapp.gaedo.finders.root.ReflectionBackedInformerFactory


  public void reloadWith(AbstractBluePrintsBackedFinderService<?, DataType, ?> service) {
    super.reloadWith(service);
    InformerFactory informerFactory = service.getInformerFactory();
    if (informerFactory instanceof ProxyBackedInformerFactory) {
      ProxyBackedInformerFactory initialProxy = (ProxyBackedInformerFactory) informerFactory;
      ReflectionBackedInformerFactory initialReflective = initialProxy.getReflectiveInformerFactory();
     
      FieldInformerLocator initialLocator = initialReflective.getFieldLocator();
      // nothing has been loaded yet
      if(initialLocator instanceof CumulativeFieldInformerLocator) {
        ReflectionBackedInformerFactory usedReflective = new ReflectionBackedInformerFactory(
                new DelegatingInformerLocator(initialLocator, createLocator(initialLocator)),
                initialReflective.getPropertyProvider()
                );
       
        ProxyBackedInformerFactory usedProxy = new ProxyBackedInformerFactory(usedReflective);
View Full Code Here


  public void reloadWith(AbstractBluePrintsBackedFinderService<?, DataType, ?> service) {
    super.reloadWith(service);
    InformerFactory informerFactory = service.getInformerFactory();
    if (informerFactory instanceof ProxyBackedInformerFactory) {
      ProxyBackedInformerFactory initialProxy = (ProxyBackedInformerFactory) informerFactory;
      ReflectionBackedInformerFactory initialReflective = initialProxy.getReflectiveInformerFactory();
     
      FieldInformerLocator initialLocator = initialReflective.getFieldLocator();
      // nothing has been loaded yet
      if(initialLocator instanceof CumulativeFieldInformerLocator) {
        ReflectionBackedInformerFactory usedReflective = new ReflectionBackedInformerFactory(
                new DelegatingInformerLocator(initialLocator, createLocator(initialLocator)),
                initialReflective.getPropertyProvider()
                );
       
        ProxyBackedInformerFactory usedProxy = new ProxyBackedInformerFactory(usedReflective);
View Full Code Here

    configuration.add(new BasicFieldInformerLocator());
    configuration.add(new ServiceBackedFieldLocator(serviceRepository));
  }

  public static ProxyBackedInformerFactory build(FieldInformerLocator locator, PropertyProvider provider) {
    ReflectionBackedInformerFactory reflectiveFactory = new ReflectionBackedInformerFactory(
        locator, provider);
    return new ProxyBackedInformerFactory(reflectiveFactory);
  }
View Full Code Here

   * @param locator
   * @return
   */
  @Provides
  public ProxyBackedInformerFactory getInformerFactory(FieldInformerLocator locator, PropertyProvider provider) {
    ReflectionBackedInformerFactory reflectiveFactory = new ReflectionBackedInformerFactory(
        locator, provider);
    ProxyBackedInformerFactory proxyInformerFactory = new ProxyBackedInformerFactory(
        reflectiveFactory);
    return proxyInformerFactory;
  }
View Full Code Here

  public void reloadWith(AbstractBluePrintsBackedFinderService<?, DataType, ?> service) {
    super.reloadWith(service);
    InformerFactory informerFactory = service.getInformerFactory();
    if (informerFactory instanceof ProxyBackedInformerFactory) {
      ProxyBackedInformerFactory initialProxy = (ProxyBackedInformerFactory) informerFactory;
      ReflectionBackedInformerFactory initialReflective = initialProxy.getReflectiveInformerFactory();
     
      FieldInformerLocator initialLocator = initialReflective.getFieldLocator();
      // nothing has been loaded yet
      if(initialLocator instanceof CumulativeFieldInformerLocator) {
        ReflectionBackedInformerFactory usedReflective = new ReflectionBackedInformerFactory(
                new DelegatingInformerLocator(initialLocator, createLocator(initialLocator)),
                initialReflective.getPropertyProvider()
                );
       
        ProxyBackedInformerFactory usedProxy = new ProxyBackedInformerFactory(usedReflective);
View Full Code Here

  public void reloadWith(AbstractBluePrintsBackedFinderService<?, DataType, ?> service) {
    super.reloadWith(service);
    InformerFactory informerFactory = service.getInformerFactory();
    if (informerFactory instanceof ProxyBackedInformerFactory) {
      ProxyBackedInformerFactory initialProxy = (ProxyBackedInformerFactory) informerFactory;
      ReflectionBackedInformerFactory initialReflective = initialProxy.getReflectiveInformerFactory();
     
      FieldInformerLocator initialLocator = initialReflective.getFieldLocator();
      // nothing has been loaded yet
      if(initialLocator instanceof CumulativeFieldInformerLocator) {
        ReflectionBackedInformerFactory usedReflective = new ReflectionBackedInformerFactory(
                new DelegatingInformerLocator(initialLocator, createLocator(initialLocator)),
                initialReflective.getPropertyProvider()
                );
       
        ProxyBackedInformerFactory usedProxy = new ProxyBackedInformerFactory(usedReflective);
View Full Code Here

  public void reloadWith(AbstractBluePrintsBackedFinderService<?, DataType, ?> service) {
    super.reloadWith(service);
    InformerFactory informerFactory = service.getInformerFactory();
    if (informerFactory instanceof ProxyBackedInformerFactory) {
      ProxyBackedInformerFactory initialProxy = (ProxyBackedInformerFactory) informerFactory;
      ReflectionBackedInformerFactory initialReflective = initialProxy.getReflectiveInformerFactory();
     
      FieldInformerLocator initialLocator = initialReflective.getFieldLocator();
      // nothing has been loaded yet
      if(initialLocator instanceof CumulativeFieldInformerLocator) {
        ReflectionBackedInformerFactory usedReflective = new ReflectionBackedInformerFactory(
                new DelegatingInformerLocator(initialLocator, createLocator(initialLocator)),
                initialReflective.getPropertyProvider()
                );
       
        ProxyBackedInformerFactory usedProxy = new ProxyBackedInformerFactory(usedReflective);
View Full Code Here

TOP

Related Classes of com.dooapp.gaedo.finders.root.ReflectionBackedInformerFactory

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.