org.apache.polygene.api.structure.Application.descriptor()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(106)

本文整理了Java中org.apache.polygene.api.structure.Application.descriptor()方法的一些代码示例,展示了Application.descriptor()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.descriptor()方法的具体详情如下:
包路径:org.apache.polygene.api.structure.Application
类名称:Application
方法名:descriptor

Application.descriptor介绍

暂无

代码示例

代码示例来源:origin: apache/attic-polygene-java

public ServiceFactoryBean( Application anApplication, String aServiceId )
  throws IllegalArgumentException
{
  notNull( anApplication, "Argument [anApplication] must not be [null]." );
  notNull( aServiceId, "Argument [aServiceId] must not be [null]." );
  ServiceLocator serviceLocator = new ServiceLocator( aServiceId );
  anApplication.descriptor().accept( serviceLocator );
  serviceReference = serviceLocator.locateService( anApplication );
  if( serviceReference == null )
  {
    throw new IllegalArgumentException( "Polygene service with id [" + aServiceId + "] is not found." );
  }
}

代码示例来源:origin: org.apache.polygene.libraries/org.apache.polygene.library.jmx

throws Exception
application.descriptor().accept( new HierarchicalVisitorAdapter<Object, Object, Exception>()

代码示例来源:origin: apache/attic-polygene-java

throws Exception
application.descriptor().accept( new HierarchicalVisitorAdapter<Object, Object, Exception>()

代码示例来源:origin: apache/attic-polygene-java

public Graph serialize( Application app )
{
  Graph graph = new GraphImpl();
  SerializerContext context = new SerializerContext( graph );
  ApplicationVisitor applicationVisitor = new ApplicationVisitor( context );
  app.descriptor().accept( applicationVisitor );
  return graph;
}

代码示例来源:origin: apache/attic-polygene-java

final List<CompositeDescriptorInfo> valueDescriptors = new ArrayList<>();
final Deque<Object> currentPath = new ArrayDeque<>();
_app.descriptor().accept(
  new HierarchicalVisitorAdapter<Object, Object, RuntimeException>()

代码示例来源:origin: apache/attic-polygene-java

this._state.usedClassesPKs().get().put(
  stringToCompositeDescriptor( ValueDescriptor.class,
                 this._app.descriptor(),
                 descriptorTextualFormat ),
  (int) pk );

代码示例来源:origin: apache/attic-polygene-java

return context.module().layer().instance().application().descriptor();

代码示例来源:origin: apache/attic-polygene-java

ApplicationDescriptor model = app.descriptor();
model.accept( new HierarchicalVisitorAdapter<Object, Object, RuntimeException>()

相关文章