-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
104 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...ava/com/github/linyuzai/concept/sample/plugin/v2/prop/SamplePropertiesArrayExtractor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.github.linyuzai.concept.sample.plugin.v2.prop; | ||
|
||
import com.github.linyuzai.plugin.core.context.PluginContext; | ||
import com.github.linyuzai.plugin.core.handle.extract.PropertiesExtractor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.Arrays; | ||
import java.util.Properties; | ||
|
||
@Slf4j | ||
@Component | ||
public class SamplePropertiesArrayExtractor extends PropertiesExtractor<Properties[]> { | ||
|
||
@Override | ||
public void onExtract(Properties[] plugins, PluginContext context) { | ||
log.info("Properties Array => {}", Arrays.toString(plugins)); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...ain/java/com/github/linyuzai/concept/sample/plugin/v2/prop/SamplePropertiesExtractor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.github.linyuzai.concept.sample.plugin.v2.prop; | ||
|
||
import com.github.linyuzai.plugin.core.context.PluginContext; | ||
import com.github.linyuzai.plugin.core.handle.extract.PropertiesExtractor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.Properties; | ||
|
||
@Slf4j | ||
@Component | ||
public class SamplePropertiesExtractor extends PropertiesExtractor<Properties> { | ||
|
||
@Override | ||
public void onExtract(Properties plugin, PluginContext context) { | ||
log.info("Properties Object => {}", plugin); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...java/com/github/linyuzai/concept/sample/plugin/v2/prop/SamplePropertiesListExtractor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.github.linyuzai.concept.sample.plugin.v2.prop; | ||
|
||
import com.github.linyuzai.plugin.core.context.PluginContext; | ||
import com.github.linyuzai.plugin.core.handle.extract.PropertiesExtractor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.List; | ||
import java.util.Properties; | ||
|
||
@Slf4j | ||
@Component | ||
public class SamplePropertiesListExtractor extends PropertiesExtractor<List<Properties>> { | ||
|
||
@Override | ||
public void onExtract(List<Properties> plugins, PluginContext context) { | ||
log.info("Properties List => {}", plugins); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
.../java/com/github/linyuzai/concept/sample/plugin/v2/prop/SamplePropertiesMapExtractor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.github.linyuzai.concept.sample.plugin.v2.prop; | ||
|
||
import com.github.linyuzai.plugin.core.context.PluginContext; | ||
import com.github.linyuzai.plugin.core.handle.extract.PropertiesExtractor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.Map; | ||
import java.util.Properties; | ||
|
||
@Slf4j | ||
@Component | ||
public class SamplePropertiesMapExtractor extends PropertiesExtractor<Map<Object, Properties>> { | ||
|
||
@Override | ||
public void onExtract(Map<Object, Properties> plugins, PluginContext context) { | ||
log.info("Properties Map => {}", plugins); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
.../java/com/github/linyuzai/concept/sample/plugin/v2/prop/SamplePropertiesSetExtractor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.github.linyuzai.concept.sample.plugin.v2.prop; | ||
|
||
import com.github.linyuzai.plugin.core.context.PluginContext; | ||
import com.github.linyuzai.plugin.core.handle.extract.PropertiesExtractor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.Properties; | ||
import java.util.Set; | ||
|
||
@Slf4j | ||
@Component | ||
public class SamplePropertiesSetExtractor extends PropertiesExtractor<Set<Properties>> { | ||
|
||
@Override | ||
public void onExtract(Set<Properties> plugins, PluginContext context) { | ||
log.info("Properties Set => {}", plugins); | ||
} | ||
} |