Skip to content

Commit

Permalink
Fix for formatting
Browse files Browse the repository at this point in the history
Signed-off-by: kaido207 <kaido.hiroki@fujitsu.com>
  • Loading branch information
kaido207 committed Nov 1, 2023
1 parent bf93a6f commit 84f3d48
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,12 @@ public class JmsHandlers {
protected static final String PROP_NAME = "name";
protected static final String PROP_DEST_TYPE = "desttype";

@Handler(id = "getPhysicalDestination", input = {
@HandlerInput(name = "name", type = String.class, required = true),
@HandlerInput(name = "type", type = String.class, required = true) }, output = {
@HandlerOutput(name = "destData", type = java.util.Map.class) })
@Handler(id = "getPhysicalDestination",
input = {
@HandlerInput(name = "name", type = String.class, required = true),
@HandlerInput(name = "type", type = String.class, required = true) },
output = {
@HandlerOutput(name = "destData", type = java.util.Map.class) })
public static void getPhysicalDestination(HandlerContext handlerCtx) {
String name = (String) handlerCtx.getInputValue("name");
String type = (String) handlerCtx.getInputValue("type");
Expand All @@ -154,11 +156,13 @@ public static void getPhysicalDestination(HandlerContext handlerCtx) {
handlerCtx.setOutputValue("destData", valueMap);
}

@Handler(id = "getPhysicalDestinationStats", input = {
@HandlerInput(name = "name", type = String.class, required = true),
@HandlerInput(name = "type", type = String.class, required = true),
@HandlerInput(name = "target", type = String.class, required = true) }, output = {
@HandlerOutput(name = "statsData", type = java.util.List.class) })
@Handler(id = "getPhysicalDestinationStats",
input = {
@HandlerInput(name = "name", type = String.class, required = true),
@HandlerInput(name = "type", type = String.class, required = true),
@HandlerInput(name = "target", type = String.class, required = true) },
output = {
@HandlerOutput(name = "statsData", type = java.util.List.class) })
public static void getPhysicalDestinationStats(HandlerContext handlerCtx) {
String name = (String) handlerCtx.getInputValue("name");
String type = (String) handlerCtx.getInputValue("type");
Expand Down Expand Up @@ -186,9 +190,11 @@ public static void getPhysicalDestinationStats(HandlerContext handlerCtx) {
handlerCtx.setOutputValue("statsData", statsList);
}

@Handler(id = "getPhysicalDestinations", input = {
@HandlerInput(name = "selectedRows", type = List.class) }, output = {
@HandlerOutput(name = "result", type = java.util.List.class) })
@Handler(id = "getPhysicalDestinations",
input = {
@HandlerInput(name = "selectedRows", type = List.class) },
output = {
@HandlerOutput(name = "result", type = java.util.List.class) })
public static void getPhysicalDestinations(HandlerContext handlerCtx) {
ObjectName[] objectNames = null;
List result = new ArrayList();
Expand Down Expand Up @@ -227,10 +233,11 @@ public static void getPhysicalDestinations(HandlerContext handlerCtx) {
*
* @param context The HandlerContext.
*/
@Handler(id = "createPhysicalDestination", input = {
@HandlerInput(name = "name", type = String.class, required = true),
@HandlerInput(name = "attributes", type = Map.class, required = true),
@HandlerInput(name = "type", type = String.class) })
@Handler(id = "createPhysicalDestination",
input = {
@HandlerInput(name = "name", type = String.class, required = true),
@HandlerInput(name = "attributes", type = Map.class, required = true),
@HandlerInput(name = "type", type = String.class) })
public static void createPhysicalDestination(HandlerContext handlerCtx) {
try {
final String type = (String) handlerCtx.getInputValue("type");
Expand Down Expand Up @@ -258,10 +265,11 @@ public static void createPhysicalDestination(HandlerContext handlerCtx) {
*
* @param context The HandlerContext.
*/
@Handler(id = "updatePhysicalDestination", input = {
@HandlerInput(name = "name", type = String.class, required = true),
@HandlerInput(name = "attributes", type = Map.class, required = true),
@HandlerInput(name = "type", type = String.class) })
@Handler(id = "updatePhysicalDestination",
input = {
@HandlerInput(name = "name", type = String.class, required = true),
@HandlerInput(name = "attributes", type = Map.class, required = true),
@HandlerInput(name = "type", type = String.class) })
public static void updatePhysicalDestination(HandlerContext handlerCtx) {
try {
final String type = (String) handlerCtx.getInputValue("type");
Expand All @@ -280,8 +288,9 @@ public static void updatePhysicalDestination(HandlerContext handlerCtx) {
}
}

@Handler(id = "deleteJMSDest", input = {
@HandlerInput(name = "selectedRows", type = List.class, required = true) })
@Handler(id = "deleteJMSDest",
input = {
@HandlerInput(name = "selectedRows", type = List.class, required = true) })
public static void deleteJMSDest(HandlerContext handlerCtx) {
// String configName = ((String) handlerCtx.getInputValue("targetName"));
List obj = (List) handlerCtx.getInputValue("selectedRows");
Expand All @@ -305,8 +314,9 @@ public static void deleteJMSDest(HandlerContext handlerCtx) {
*
* @param context The HandlerContext.
*/
@Handler(id = "flushJMSDestination", input = {
@HandlerInput(name = "selectedRows", type = List.class, required = true) })
@Handler(id = "flushJMSDestination",
input = {
@HandlerInput(name = "selectedRows", type = List.class, required = true) })
public static void flushJMSDestination(HandlerContext handlerCtx) {
List<Map> selectedRows = (List) handlerCtx.getInputValue("selectedRows");
try {
Expand All @@ -331,10 +341,11 @@ public static void flushJMSDestination(HandlerContext handlerCtx) {
*
* @param context The HandlerContext.
*/
@Handler(id = "getDefaultPhysicalDestinationValues", input = {
@HandlerInput(name = "orig", type = Map.class) }, output = {
@HandlerOutput(name = "map", type = Map.class)
})
@Handler(id = "getDefaultPhysicalDestinationValues",
input = {
@HandlerInput(name = "orig", type = Map.class) },
output = {
@HandlerOutput(name = "map", type = Map.class) })
public static void getDefaultPhysicalDestinationValues(HandlerContext handlerCtx) {
Map orig = (Map) handlerCtx.getInputValue("orig");
Map map = new HashMap();
Expand All @@ -357,8 +368,9 @@ public static void getDefaultPhysicalDestinationValues(HandlerContext handlerCtx
handlerCtx.setOutputValue("map", map);
}

@Handler(id = "pingJms", input = {
@HandlerInput(name = "poolName", type = String.class, required = true) })
@Handler(id = "pingJms",
input = {
@HandlerInput(name = "poolName", type = String.class, required = true) })
public static void pingJms(HandlerContext handlerCtx) {
try {
String poolName = (String) handlerCtx.getInputValue("poolName");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,14 @@ public class ConsolePluginService {
@Inject
IterableProvider<ConsoleProvider> providers;

/*
* @Inject ModulesRegistry modulesRegistry; for(HK2Module m : modulesRegistry.getModules()) { url =
* m.getClassLoader().getResource(ConsoleProvider.DEFAULT_CONFIG_FILENAME); if(url!=null) ; // TODO: parse url }
*/

/**
* <p>
* Default constructor.
* </p>
*/
public ConsolePluginService() {
}

/**
* <p>
* Initialize the available {@link IntegrationPoint}s.
* </p>
*/
protected synchronized void init() {
if (initialized) {
Expand Down Expand Up @@ -135,9 +126,7 @@ protected synchronized void init() {
}

/**
* <p>
* This method returns a merged Table Of Contents for all found help sets for the given locale.
* </p>
*/
public synchronized TOC getHelpTOC(String locale) {
if (locale == null) {
Expand Down Expand Up @@ -178,9 +167,7 @@ public synchronized TOC getHelpTOC(String locale) {
}

/**
* <p>
* This method inserts the given <code>item</code> into the <code>dest</code> list.
* </p>
*/
private void insertTOCItem(List<TOCItem> dest, TOCItem item, String prefix) {
int idx = dest.indexOf(item);
Expand All @@ -200,9 +187,7 @@ private void insertTOCItem(List<TOCItem> dest, TOCItem item, String prefix) {
}

/**
* <p>
* This method returns a merged Table Of Contents for all found help sets for the given locale.
* </p>
*/
public synchronized Index getHelpIndex(String locale) {
if (locale == null) {
Expand Down Expand Up @@ -243,9 +228,7 @@ public synchronized Index getHelpIndex(String locale) {
}

/**
* <p>
* This method inserts the given <code>item</code> into the <code>dest</code> list.
* </p>
*/
private void insertIndexItem(List<IndexItem> dest, IndexItem item, String prefix) {
int idx = dest.indexOf(item);
Expand Down Expand Up @@ -369,9 +352,7 @@ public static byte[] readFromURL(URL url) throws IOException {
***********************************************************/

/**
* <p>
* This method allows new {@link IntegrationPoint}s to be added to the known {@link IntegrationPoint}s.
* </p>
*/
public void addIntegrationPoints(List<IntegrationPoint> points, String id) {
// Add them all...
Expand All @@ -381,9 +362,7 @@ public void addIntegrationPoints(List<IntegrationPoint> points, String id) {
}

/**
* <p>
* This method allows a new {@link IntegrationPoint} to be added to the known {@link IntegrationPoint}s.
* </p>
*/
public void addIntegrationPoint(IntegrationPoint point, String id) {
// Associate the Provider with this IntegrationPoint so we
Expand Down Expand Up @@ -422,16 +401,12 @@ public ClassLoader getModuleClassLoader(String moduleName) {
}

/**
* <p>
* Flag indicating intialization has already occured.
* </p>
*/
private boolean initialized = false;

/**
* <p>
* This <code>Map</code> contains the {@link IntegrationPoint}s keyed by the <code>type</code> of integration.
* </p>
*/
private MultiMap<String, IntegrationPoint> pointsByType = new MultiMap<String, IntegrationPoint>();

Expand Down

0 comments on commit 84f3d48

Please sign in to comment.