Skip to content

Commit 5f4b383

Browse files
author
jy
committed
fix the configuration.xml doc
1 parent 6931ad9 commit 5f4b383

File tree

4 files changed

+48
-4
lines changed

4 files changed

+48
-4
lines changed

src/site/es/xdoc/configuration.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,15 +1495,22 @@ public class GenericTypeHandler<E extends MyObject> extends BaseTypeHandler<E> {
14951495
</p>
14961496
<source><![CDATA[// ExampleObjectFactory.java
14971497
public class ExampleObjectFactory extends DefaultObjectFactory {
1498+
@Override
14981499
public Object create(Class type) {
14991500
return super.create(type);
15001501
}
1501-
public Object create(Class type, List<Class> constructorArgTypes, List<Object> constructorArgs) {
1502+
1503+
@Override
1504+
public <T> T create(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArgs) {
15021505
return super.create(type, constructorArgTypes, constructorArgs);
15031506
}
1507+
1508+
@Override
15041509
public void setProperties(Properties properties) {
15051510
super.setProperties(properties);
15061511
}
1512+
1513+
@Override
15071514
public <T> boolean isCollection(Class<T> type) {
15081515
return Collection.class.isAssignableFrom(type);
15091516
}
@@ -1552,12 +1559,16 @@ public class ExampleObjectFactory extends DefaultObjectFactory {
15521559
args = {MappedStatement.class,Object.class})})
15531560
public class ExamplePlugin implements Interceptor {
15541561
private Properties properties = new Properties();
1562+
1563+
@Override
15551564
public Object intercept(Invocation invocation) throws Throwable {
15561565
// implement pre processing if need
15571566
Object returnObject = invocation.proceed();
15581567
// implement post processing if need
15591568
return returnObject;
15601569
}
1570+
1571+
@Override
15611572
public void setProperties(Properties properties) {
15621573
this.properties = properties;
15631574
}

src/site/ja/xdoc/configuration.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1527,15 +1527,22 @@ public class GenericTypeHandler<E extends MyObject> extends BaseTypeHandler<E> {
15271527
</p>
15281528
<source><![CDATA[// ExampleObjectFactory.java
15291529
public class ExampleObjectFactory extends DefaultObjectFactory {
1530+
@Override
15301531
public Object create(Class type) {
15311532
return super.create(type);
15321533
}
1533-
public Object create(Class type, List<Class> constructorArgTypes, List<Object> constructorArgs) {
1534+
1535+
@Override
1536+
public <T> T create(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArgs) {
15341537
return super.create(type, constructorArgTypes, constructorArgs);
15351538
}
1539+
1540+
@Override
15361541
public void setProperties(Properties properties) {
15371542
super.setProperties(properties);
15381543
}
1544+
1545+
@Override
15391546
public <T> boolean isCollection(Class<T> type) {
15401547
return Collection.class.isAssignableFrom(type);
15411548
}}
@@ -1595,12 +1602,16 @@ public class ExampleObjectFactory extends DefaultObjectFactory {
15951602
args = {MappedStatement.class,Object.class})})
15961603
public class ExamplePlugin implements Interceptor {
15971604
private Properties properties = new Properties();
1605+
1606+
@Override
15981607
public Object intercept(Invocation invocation) throws Throwable {
15991608
// implement pre processing if need
16001609
Object returnObject = invocation.proceed();
16011610
// implement post processing if need
16021611
return returnObject;
16031612
}
1613+
1614+
@Override
16041615
public void setProperties(Properties properties) {
16051616
this.properties = properties;
16061617
}

src/site/ko/xdoc/configuration.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,15 +1457,22 @@ public class GenericTypeHandler<E extends MyObject> extends BaseTypeHandler<E> {
14571457
예를들면:</p>
14581458
<source><![CDATA[// ExampleObjectFactory.java
14591459
public class ExampleObjectFactory extends DefaultObjectFactory {
1460+
@Override
14601461
public Object create(Class type) {
14611462
return super.create(type);
14621463
}
1463-
public Object create(Class type, List<Class> constructorArgTypes, List<Object> constructorArgs) {
1464+
1465+
@Override
1466+
public <T> T create(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArgs) {
14641467
return super.create(type, constructorArgTypes, constructorArgs);
14651468
}
1469+
1470+
@Override
14661471
public void setProperties(Properties properties) {
14671472
super.setProperties(properties);
14681473
}
1474+
1475+
@Override
14691476
public <T> boolean isCollection(Class<T> type) {
14701477
return Collection.class.isAssignableFrom(type);
14711478
}}
@@ -1518,12 +1525,16 @@ public class ExampleObjectFactory extends DefaultObjectFactory {
15181525
args = {MappedStatement.class,Object.class})})
15191526
public class ExamplePlugin implements Interceptor {
15201527
private Properties properties = new Properties();
1528+
1529+
@Override
15211530
public Object intercept(Invocation invocation) throws Throwable {
15221531
// implement pre processing if need
15231532
Object returnObject = invocation.proceed();
15241533
// implement post processing if need
15251534
return returnObject;
15261535
}
1536+
1537+
@Override
15271538
public void setProperties(Properties properties) {
15281539
this.properties = properties;
15291540
}

src/site/zh/xdoc/configuration.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,15 +1499,22 @@ public class GenericTypeHandler<E extends MyObject> extends BaseTypeHandler<E> {
14991499
如果想覆盖对象工厂的默认行为,可以通过创建自己的对象工厂来实现。比如:</p>
15001500
<source><![CDATA[// ExampleObjectFactory.java
15011501
public class ExampleObjectFactory extends DefaultObjectFactory {
1502+
@Override
15021503
public Object create(Class type) {
15031504
return super.create(type);
15041505
}
1505-
public Object create(Class type, List<Class> constructorArgTypes, List<Object> constructorArgs) {
1506+
1507+
@Override
1508+
public <T> T create(Class<T> type, List<Class<?>> constructorArgTypes, List<Object> constructorArgs) {
15061509
return super.create(type, constructorArgTypes, constructorArgs);
15071510
}
1511+
1512+
@Override
15081513
public void setProperties(Properties properties) {
15091514
super.setProperties(properties);
15101515
}
1516+
1517+
@Override
15111518
public <T> boolean isCollection(Class<T> type) {
15121519
return Collection.class.isAssignableFrom(type);
15131520
}}
@@ -1559,12 +1566,16 @@ public class ExampleObjectFactory extends DefaultObjectFactory {
15591566
args = {MappedStatement.class,Object.class})})
15601567
public class ExamplePlugin implements Interceptor {
15611568
private Properties properties = new Properties();
1569+
1570+
@Override
15621571
public Object intercept(Invocation invocation) throws Throwable {
15631572
// implement pre processing if need
15641573
Object returnObject = invocation.proceed();
15651574
// implement post processing if need
15661575
return returnObject;
15671576
}
1577+
1578+
@Override
15681579
public void setProperties(Properties properties) {
15691580
this.properties = properties;
15701581
}

0 commit comments

Comments
 (0)