-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor to make app keys an input to ClassSource_Factory
- Loading branch information
1 parent
68ae73a
commit e4520af
Showing
20 changed files
with
326 additions
and
290 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
50 changes: 0 additions & 50 deletions
50
dev/com.ibm.ws.anno/src/com/ibm/wsspi/anno/service/AnnotationService_KeyService.java
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
dev/com.ibm.ws.anno/src/com/ibm/wsspi/anno/service/AppKey.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,39 @@ | ||
package com.ibm.wsspi.anno.service; | ||
|
||
public class AppKey { | ||
private final String deploymentName; | ||
|
||
public AppKey(String deploymentName) { | ||
this.deploymentName = deploymentName; | ||
} | ||
|
||
public String getDeploymentName() { | ||
return deploymentName; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
if (deploymentName == null) { | ||
return 0; | ||
} | ||
|
||
return deploymentName.hashCode(); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
if (this == obj) | ||
return true; | ||
if (obj == null) | ||
return false; | ||
if (getClass() != obj.getClass()) | ||
return false; | ||
AppKey other = (AppKey) obj; | ||
|
||
if (deploymentName == null) { | ||
return other.getDeploymentName() == null; | ||
} | ||
|
||
return deploymentName.equals(other.getDeploymentName()); | ||
} | ||
} |
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
Oops, something went wrong.