Skip to content

Commit 188e3a7

Browse files
committed
[anno] [removed useless classes]
1 parent 9e5b355 commit 188e3a7

6 files changed

Lines changed: 9 additions & 164 deletions

File tree

router-annotation/src/main/java/com/ljsw/router/facade/IUiRouterLoader.java

Lines changed: 0 additions & 18 deletions
This file was deleted.

router-annotation/src/main/java/com/ljsw/router/facade/UiRouterMapperUtils.java

Lines changed: 0 additions & 37 deletions
This file was deleted.

router-annotation/src/main/java/com/ljsw/router/facade/annotation/Router.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
@Target({ElementType.TYPE})
1616
@Retention(RetentionPolicy.CLASS)
1717
public @interface Router {
18+
/**
19+
* will removed, it is too heavy and confusing
20+
* @return the interface class annotated with Router
21+
*/
22+
@Deprecated
1823
Class classPath();
1924
String host();
2025
String group() default "default";

sharecomponent/src/main/java/com/mrzhang/share/applike/ShareApplike.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
import com.mrzhang.component.componentlib.applicationlike.IApplicationLike;
44
import com.mrzhang.component.componentlib.router.ui.IComponentRouter;
55
import com.mrzhang.component.componentlib.router.ui.UIRouter;
6-
import com.mrzhang.share.compouirouter.DemoUiRouter;
7-
import com.mrzhang.share.compouirouter.ShareUIRouter;
6+
import com.mrzhang.share.compouirouter.ShareUiRouter;
87

98
/**
109
* Created by mrzhang on 2017/6/15.
@@ -14,7 +13,7 @@ public class ShareApplike implements IApplicationLike {
1413

1514
UIRouter uiRouter = UIRouter.getInstance();
1615
// ShareUIRouter shareUIRouter = ShareUIRouter.getInstance();
17-
IComponentRouter demoUiRouter = UIRouter.fetch(DemoUiRouter.class);
16+
IComponentRouter demoUiRouter = UIRouter.fetch(ShareUiRouter.class);
1817

1918
@Override
2019
public void onCreate() {

sharecomponent/src/main/java/com/mrzhang/share/compouirouter/ShareUIRouter.java

Lines changed: 0 additions & 104 deletions
This file was deleted.

sharecomponent/src/main/java/com/mrzhang/share/compouirouter/DemoUiRouter.java renamed to sharecomponent/src/main/java/com/mrzhang/share/compouirouter/ShareUiRouter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
* <p><b>Description:</b> TODO </p>
1111
* Created by leobert on 2017/9/25.
1212
*/
13-
@Router(classPath = DemoUiRouter.class,host = "shareComponent",group = "share")
14-
public interface DemoUiRouter extends IComponentRouter {
13+
@Router(classPath = ShareUiRouter.class,host = "shareComponent",group = "share")
14+
public interface ShareUiRouter extends IComponentRouter {
1515
}

0 commit comments

Comments
 (0)