Package org.skyscreamer.yoga.metadata

Examples of org.skyscreamer.yoga.metadata.DefaultMetaDataRegistry


   * selector resolver and/or CoreSelector implementations. This would be the
   * place to do it, since we have complex dependencies for those objects, and
   * we need those objects set up before other setters are called.
   */
  protected void init() {
    _metaDataRegistry = new DefaultMetaDataRegistry();
      _selectorResolver = new SelectorResolver();
        _selectorResolver.getBaseSelector().setEntityConfigurationRegistry( new DefaultEntityConfigurationRegistry() );
        _metaDataRegistry.setCoreSelector( this._selectorResolver.getBaseSelector() );
        _metaDataRegistry.setRootMetaDataUrl( "/metadata/" );
  }
View Full Code Here


    {
        String prefixUrl = "/metadata/";
        String fileExtension = "test";
        Album signOfTheTimes = DataGenerator.signOfTheTimes();

        DefaultMetaDataRegistry service = new DefaultMetaDataRegistry();
        service.setRootMetaDataUrl( prefixUrl );
        service.setCoreSelector( getCoreSelector() );

        Map<String,Class<?>> typeMappings = new HashMap<String, Class<?>>();
        typeMappings.put( "album", Album.class );
        service.setTypeMappings( typeMappings );

        MetadataLinkListener metadataLinkListener = new MetadataLinkListener();
        metadataLinkListener.setMetaDataRegistry( service );

        ResultTraverser traverser = new ResultTraverser();
View Full Code Here

TOP

Related Classes of org.skyscreamer.yoga.metadata.DefaultMetaDataRegistry

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.