Package org.jboss.seam.wiki.core.search.metamodel

Examples of org.jboss.seam.wiki.core.search.metamodel.SearchRegistry


        public Object getAsObject(FacesContext arg0,
                                  UIComponent arg1,
                                  String arg2) throws ConverterException {
            if (arg2 == null) return null;
            SearchRegistry searchRegistry = (SearchRegistry)Component.getInstance(SearchRegistry.class);
            return searchRegistry.getSearchableEntitiesByName().get(arg2);
        }
View Full Code Here


    private SearchableEntity selectedIndexedEntity;

    @Factory("indexedEntities")
    public void loadIndexedEntities() throws Exception {

        SearchRegistry registry = (SearchRegistry)Component.getInstance(SearchRegistry.class);
        indexedEntities = registry.getSearchableEntities();

        EntityManager em = (EntityManager) Component.getInstance("entityManager");

        for (SearchableEntity indexedEntity : indexedEntities) {
            DirectoryProvider dirProvider = ((FullTextSession)em.getDelegate()).getSearchFactory().getDirectoryProviders(indexedEntity.getClazz())[0];
View Full Code Here

TOP

Related Classes of org.jboss.seam.wiki.core.search.metamodel.SearchRegistry

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.