Skip to content

Commit

Permalink
Make the Xml config split to an extension, stage 05 - move the DAOs
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraZizka committed Jun 21, 2014
1 parent d49334d commit 6362ef9
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.jboss.windup.config.GraphRewrite;

import org.jboss.windup.config.condition.GraphCondition;
import org.jboss.windup.graph.dao.XmlResourceDao;
import org.jboss.windup.rules.apps.xml.dao.XmlResourceDao;
import org.jboss.windup.graph.model.resource.XmlResourceModel;
import org.ocpsoft.rewrite.context.EvaluationContext;
import org.w3c.dom.Document;
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.jboss.windup.graph.dao;
package org.jboss.windup.rules.apps.ejb.dao;

import org.jboss.windup.graph.dao.BaseDao;
import org.jboss.windup.graph.model.EnvironmentReferenceModel;

public interface EnvironmentReferenceDao extends BaseDao<EnvironmentReferenceModel> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.jboss.windup.graph.dao;
package org.jboss.windup.rules.apps.ejb.dao;

import org.jboss.windup.graph.dao.BaseDao;
import org.jboss.windup.graph.model.JNDIReferenceModel;

public interface JNDIReferenceDao extends BaseDao<JNDIReferenceModel> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package org.jboss.windup.graph.dao.impl;
package org.jboss.windup.rules.apps.ejb.dao.impl;

import javax.inject.Singleton;

import org.apache.commons.lang.StringUtils;
import org.jboss.windup.graph.dao.EnvironmentReferenceDao;
import org.jboss.windup.graph.dao.impl.BaseDaoImpl;
import org.jboss.windup.rules.apps.ejb.dao.EnvironmentReferenceDao;
import org.jboss.windup.graph.model.EnvironmentReferenceModel;

@Singleton
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package org.jboss.windup.graph.dao.impl;
package org.jboss.windup.rules.apps.ejb.dao.impl;

import javax.inject.Singleton;
import org.jboss.windup.graph.dao.impl.BaseDaoImpl;

import org.jboss.windup.graph.dao.JNDIReferenceDao;
import org.jboss.windup.rules.apps.ejb.dao.JNDIReferenceDao;
import org.jboss.windup.graph.model.JNDIReferenceModel;

@Singleton
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.jboss.windup.graph.dao;
package org.jboss.windup.rules.apps.web.dao;

import org.jboss.windup.graph.dao.BaseDao;
import org.jboss.windup.rules.apps.web.model.WebConfigurationFacetModel;
import org.jboss.windup.graph.model.resource.XmlResourceModel;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
package org.jboss.windup.graph.dao.impl;
package org.jboss.windup.rules.apps.web.dao.impl;

import java.util.Iterator;

import javax.inject.Singleton;

import org.jboss.windup.graph.dao.WebConfigurationDao;
import org.jboss.windup.rules.apps.web.dao.WebConfigurationDao;
import org.jboss.windup.rules.apps.web.model.WebConfigurationFacetModel;
import org.jboss.windup.graph.model.resource.XmlResourceModel;

import com.thinkaurelius.titan.core.attribute.Text;
import com.tinkerpop.blueprints.Vertex;
import com.tinkerpop.gremlin.java.GremlinPipeline;
import org.jboss.windup.graph.dao.impl.BaseDaoImpl;
import org.jboss.windup.rules.apps.web.dao.WebConfigurationDao;

@Singleton
public class WebConfigurationDaoImpl extends BaseDaoImpl<WebConfigurationFacetModel> implements WebConfigurationDao
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.jboss.windup.graph.dao;
package org.jboss.windup.rules.apps.maven.dao;

import org.jboss.windup.graph.dao.BaseDao;
import org.jboss.windup.rules.apps.maven.model.MavenFacetModel;
import org.jboss.windup.graph.model.resource.XmlResourceModel;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.jboss.windup.graph.dao.impl;
package org.jboss.windup.rules.apps.maven.dao.impl;

import java.util.Iterator;

import javax.inject.Singleton;

import org.jboss.windup.graph.dao.MavenFacetDao;
import org.jboss.windup.rules.apps.maven.dao.MavenFacetDao;
import org.jboss.windup.rules.apps.maven.model.MavenFacetModel;
import org.jboss.windup.graph.model.resource.XmlResourceModel;
import org.slf4j.Logger;
Expand All @@ -13,6 +13,7 @@
import com.thinkaurelius.titan.core.attribute.Text;
import com.tinkerpop.blueprints.Vertex;
import com.tinkerpop.gremlin.java.GremlinPipeline;
import org.jboss.windup.graph.dao.impl.BaseDaoImpl;

@Singleton
public class MavenFacetDaoImpl extends BaseDaoImpl<MavenFacetModel> implements MavenFacetDao {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.jboss.windup.graph.dao;
package org.jboss.windup.rules.apps.xml.dao;

import java.util.Iterator;
import org.jboss.windup.graph.dao.BaseDao;

import org.jboss.windup.graph.model.meta.xml.DoctypeMetaModel;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.jboss.windup.graph.dao;
package org.jboss.windup.rules.apps.xml.dao;

import org.jboss.windup.graph.dao.BaseDao;
import org.jboss.windup.graph.model.meta.xml.NamespaceMetaModel;

public interface NamespaceDao extends BaseDao<NamespaceMetaModel> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.jboss.windup.graph.dao;
package org.jboss.windup.rules.apps.xml.dao;

import org.jboss.windup.graph.dao.BaseDao;
import org.jboss.windup.graph.model.resource.ResourceModel;
import org.jboss.windup.graph.model.resource.XmlResourceModel;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package org.jboss.windup.graph.dao.impl;
package org.jboss.windup.rules.apps.xml.dao.impl;

import java.util.Iterator;

import javax.inject.Singleton;

import org.apache.commons.lang.StringUtils;
import org.jboss.windup.graph.dao.DoctypeDao;
import org.jboss.windup.rules.apps.xml.dao.DoctypeDao;
import org.jboss.windup.graph.model.meta.xml.DoctypeMetaModel;

import com.google.common.collect.Iterables;
import com.tinkerpop.frames.FramedGraphQuery;
import com.tinkerpop.gremlin.java.GremlinPipeline;
import org.jboss.windup.graph.dao.impl.BaseDaoImpl;

@Singleton
public class DoctypeDaoImpl extends BaseDaoImpl<DoctypeMetaModel> implements DoctypeDao {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package org.jboss.windup.graph.dao.impl;
package org.jboss.windup.rules.apps.xml.dao.impl;

import javax.inject.Singleton;

import org.jboss.windup.graph.dao.NamespaceDao;
import org.jboss.windup.rules.apps.xml.dao.NamespaceDao;
import org.jboss.windup.graph.model.meta.xml.NamespaceMetaModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.thinkaurelius.titan.core.attribute.Text;
import org.jboss.windup.graph.dao.impl.BaseDaoImpl;

@Singleton
public class NamespaceDaoImpl extends BaseDaoImpl<NamespaceMetaModel> implements NamespaceDao {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.jboss.windup.graph.dao.impl;
package org.jboss.windup.rules.apps.xml.dao.impl;

import java.util.Collections;
import java.util.Iterator;
Expand All @@ -8,15 +8,16 @@
import javax.inject.Inject;
import javax.inject.Singleton;

import org.jboss.windup.graph.dao.NamespaceDao;
import org.jboss.windup.graph.dao.XmlResourceDao;
import org.jboss.windup.rules.apps.xml.dao.NamespaceDao;
import org.jboss.windup.rules.apps.xml.dao.XmlResourceDao;
import org.jboss.windup.graph.model.meta.xml.NamespaceMetaModel;
import org.jboss.windup.graph.model.resource.ResourceModel;
import org.jboss.windup.graph.model.resource.XmlResourceModel;

import com.google.common.collect.Iterables;
import com.tinkerpop.blueprints.Vertex;
import com.tinkerpop.gremlin.java.GremlinPipeline;
import org.jboss.windup.graph.dao.impl.BaseDaoImpl;

@Singleton
public class XmlResourceDaoImpl extends BaseDaoImpl<XmlResourceModel> implements XmlResourceDao {
Expand Down

0 comments on commit 6362ef9

Please sign in to comment.