repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
OpenLiberty/open-liberty
dev/com.ibm.ws.security.mp.jwt_fat_tck/fat/src/org/eclipse/microprofile/jwt/tck/container/jaxrs/ClaimValueInjectionEndpoint.java
ClaimValueInjectionEndpoint.verifyInjectedOptionalCustomMissing
@GET @Path("/verifyInjectedOptionalCustomMissing") @Produces(MediaType.APPLICATION_JSON) public JsonObject verifyInjectedOptionalCustomMissing() { boolean pass = false; String msg; // custom-missing Optional<Long> customValue = custom.getValue(); if(customValue == nul...
java
@GET @Path("/verifyInjectedOptionalCustomMissing") @Produces(MediaType.APPLICATION_JSON) public JsonObject verifyInjectedOptionalCustomMissing() { boolean pass = false; String msg; // custom-missing Optional<Long> customValue = custom.getValue(); if(customValue == nul...
[ "@", "GET", "@", "Path", "(", "\"/verifyInjectedOptionalCustomMissing\"", ")", "@", "Produces", "(", "MediaType", ".", "APPLICATION_JSON", ")", "public", "JsonObject", "verifyInjectedOptionalCustomMissing", "(", ")", "{", "boolean", "pass", "=", "false", ";", "Strin...
Verify that values exist and that types match the corresponding Claims enum @return a series of pass/fail statements regarding the check for each injected claim
[ "Verify", "that", "values", "exist", "and", "that", "types", "match", "the", "corresponding", "Claims", "enum" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.mp.jwt_fat_tck/fat/src/org/eclipse/microprofile/jwt/tck/container/jaxrs/ClaimValueInjectionEndpoint.java#L249-L272
train
OpenLiberty/open-liberty
dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/PersonAccount.java
PersonAccount.addExtendedProperty
public static void addExtendedProperty(String propName, String dataType, boolean multiValued, Object defaultValue) { if (dataType == null || "null".equalsIgnoreCase(dataType)) return; if (extendedPropertiesDataType.containsKey(propName)) { Tr.warning(tc, WIMMessageKey.DUPLICATE_...
java
public static void addExtendedProperty(String propName, String dataType, boolean multiValued, Object defaultValue) { if (dataType == null || "null".equalsIgnoreCase(dataType)) return; if (extendedPropertiesDataType.containsKey(propName)) { Tr.warning(tc, WIMMessageKey.DUPLICATE_...
[ "public", "static", "void", "addExtendedProperty", "(", "String", "propName", ",", "String", "dataType", ",", "boolean", "multiValued", ",", "Object", "defaultValue", ")", "{", "if", "(", "dataType", "==", "null", "||", "\"null\"", ".", "equalsIgnoreCase", "(", ...
Allows for an extended property, or a property not pre-defined as part of this PersonAccount entity type, to be added to the PersonAccount entity @param propName: name of property <ul><li>allowed object is a {@link String}</li></ul> @param dataType: Java type of property <ul><li>allowed object is a {@link String}</li>...
[ "Allows", "for", "an", "extended", "property", "or", "a", "property", "not", "pre", "-", "defined", "as", "part", "of", "this", "PersonAccount", "entity", "type", "to", "be", "added", "to", "the", "PersonAccount", "entity" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.security.wim.base/src/com/ibm/wsspi/security/wim/model/PersonAccount.java#L3239-L3258
train
OpenLiberty/open-liberty
dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java
ModelBuilder.depluralize
private static String depluralize(String s) { if (s.endsWith("ies")) { return s.substring(0, s.length() - 3) + 'y'; } if (s.endsWith("s")) { return s.substring(0, s.length() - 1); } return s; }
java
private static String depluralize(String s) { if (s.endsWith("ies")) { return s.substring(0, s.length() - 3) + 'y'; } if (s.endsWith("s")) { return s.substring(0, s.length() - 1); } return s; }
[ "private", "static", "String", "depluralize", "(", "String", "s", ")", "{", "if", "(", "s", ".", "endsWith", "(", "\"ies\"", ")", ")", "{", "return", "s", ".", "substring", "(", "0", ",", "s", ".", "length", "(", ")", "-", "3", ")", "+", "'", "...
Convert a string like "abcs" to "abc".
[ "Convert", "a", "string", "like", "abcs", "to", "abc", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java#L296-L304
train
OpenLiberty/open-liberty
dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java
ModelBuilder.hyphenatedToCamelCase
private static String hyphenatedToCamelCase(String s) { Matcher m = Pattern.compile("(?:^|-)([a-z])").matcher(s); StringBuilder b = new StringBuilder(); int last = 0; for (; m.find(); last = m.end()) { b.append(s, last, m.start()).append(Character.toUpperCase(m.group(1).charA...
java
private static String hyphenatedToCamelCase(String s) { Matcher m = Pattern.compile("(?:^|-)([a-z])").matcher(s); StringBuilder b = new StringBuilder(); int last = 0; for (; m.find(); last = m.end()) { b.append(s, last, m.start()).append(Character.toUpperCase(m.group(1).charA...
[ "private", "static", "String", "hyphenatedToCamelCase", "(", "String", "s", ")", "{", "Matcher", "m", "=", "Pattern", ".", "compile", "(", "\"(?:^|-)([a-z])\"", ")", ".", "matcher", "(", "s", ")", ";", "StringBuilder", "b", "=", "new", "StringBuilder", "(", ...
Convert a string like "abc-def-ghi" to "AbcDefGhi".
[ "Convert", "a", "string", "like", "abc", "-", "def", "-", "ghi", "to", "AbcDefGhi", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java#L309-L317
train
OpenLiberty/open-liberty
dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java
ModelBuilder.upperCaseFirstChar
private static String upperCaseFirstChar(String s) { return Character.toUpperCase(s.charAt(0)) + s.substring(1); }
java
private static String upperCaseFirstChar(String s) { return Character.toUpperCase(s.charAt(0)) + s.substring(1); }
[ "private", "static", "String", "upperCaseFirstChar", "(", "String", "s", ")", "{", "return", "Character", ".", "toUpperCase", "(", "s", ".", "charAt", "(", "0", ")", ")", "+", "s", ".", "substring", "(", "1", ")", ";", "}" ]
Convert a string like "abcDef" to "AbcDef".
[ "Convert", "a", "string", "like", "abcDef", "to", "AbcDef", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java#L322-L324
train
OpenLiberty/open-liberty
dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java
ModelBuilder.getAnnotationClassValues
private static List<TypeMirror> getAnnotationClassValues(Element member, Annotation annotation, String annotationMemberName) { for (AnnotationMirror annotationMirror : member.getAnnotationMirrors()) { if (((TypeElement) annotationMirror.getAnnotationType().asElement()).getQualifiedName().contentEqua...
java
private static List<TypeMirror> getAnnotationClassValues(Element member, Annotation annotation, String annotationMemberName) { for (AnnotationMirror annotationMirror : member.getAnnotationMirrors()) { if (((TypeElement) annotationMirror.getAnnotationType().asElement()).getQualifiedName().contentEqua...
[ "private", "static", "List", "<", "TypeMirror", ">", "getAnnotationClassValues", "(", "Element", "member", ",", "Annotation", "annotation", ",", "String", "annotationMemberName", ")", "{", "for", "(", "AnnotationMirror", "annotationMirror", ":", "member", ".", "getA...
Return a List of TypeMirror for an annotation on a member. This is a workaround for JDK-6519115, which causes MirroredTypeException to be thrown rather than MirroredTypesException.
[ "Return", "a", "List", "of", "TypeMirror", "for", "an", "annotation", "on", "a", "member", ".", "This", "is", "a", "workaround", "for", "JDK", "-", "6519115", "which", "causes", "MirroredTypeException", "to", "be", "thrown", "rather", "than", "MirroredTypesExc...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.javaee.ddmetadata/src/com/ibm/ws/javaee/ddmetadata/processor/ModelBuilder.java#L338-L357
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/cdi/view/ViewScopeBeanHolder.java
ViewScopeBeanHolder.getContextualStorage
public ViewScopeContextualStorage getContextualStorage( BeanManager beanManager, String viewScopeId) { ViewScopeContextualStorage contextualStorage = storageMap.get(viewScopeId); if (contextualStorage == null) { synchronized (this) { ...
java
public ViewScopeContextualStorage getContextualStorage( BeanManager beanManager, String viewScopeId) { ViewScopeContextualStorage contextualStorage = storageMap.get(viewScopeId); if (contextualStorage == null) { synchronized (this) { ...
[ "public", "ViewScopeContextualStorage", "getContextualStorage", "(", "BeanManager", "beanManager", ",", "String", "viewScopeId", ")", "{", "ViewScopeContextualStorage", "contextualStorage", "=", "storageMap", ".", "get", "(", "viewScopeId", ")", ";", "if", "(", "context...
This method will return the ViewScopeContextualStorage or create a new one if no one is yet assigned to the current windowId. @param beanManager we need the CDI {@link BeanManager} for serialisation. @param windowId the windowId for the current browser tab or window.
[ "This", "method", "will", "return", "the", "ViewScopeContextualStorage", "or", "create", "a", "new", "one", "if", "no", "one", "is", "yet", "assigned", "to", "the", "current", "windowId", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/cdi/view/ViewScopeBeanHolder.java#L81-L98
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/ProviderRegistry.java
ProviderRegistry.setProvider
public AuthConfigProvider setProvider(ProviderService providerService) { AuthConfigProvider authConfigProvider = null; if (providerService != null) { authConfigProvider = providerService.getAuthConfigProvider(this); registerConfigProvider(authConfigProvider, null, null, null); ...
java
public AuthConfigProvider setProvider(ProviderService providerService) { AuthConfigProvider authConfigProvider = null; if (providerService != null) { authConfigProvider = providerService.getAuthConfigProvider(this); registerConfigProvider(authConfigProvider, null, null, null); ...
[ "public", "AuthConfigProvider", "setProvider", "(", "ProviderService", "providerService", ")", "{", "AuthConfigProvider", "authConfigProvider", "=", "null", ";", "if", "(", "providerService", "!=", "null", ")", "{", "authConfigProvider", "=", "providerService", ".", "...
Called when a Liberty user defined feature provider is set or unset @param providerService the provider if set, null if unset
[ "Called", "when", "a", "Liberty", "user", "defined", "feature", "provider", "is", "set", "or", "unset" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/ProviderRegistry.java#L398-L407
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/SingletonActivationStrategy.java
SingletonActivationStrategy.doActivation
protected BeanO doActivation(EJBThreadData threadData, ContainerTx tx, BeanId beanId, boolean takeInvocationRef) throws RemoteException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "doActivation", ...
java
protected BeanO doActivation(EJBThreadData threadData, ContainerTx tx, BeanId beanId, boolean takeInvocationRef) throws RemoteException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.entry(tc, "doActivation", ...
[ "protected", "BeanO", "doActivation", "(", "EJBThreadData", "threadData", ",", "ContainerTx", "tx", ",", "BeanId", "beanId", ",", "boolean", "takeInvocationRef", ")", "throws", "RemoteException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")"...
Internal method used by subclasses to activate a bean
[ "Internal", "method", "used", "by", "subclasses", "to", "activate", "a", "bean" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/activator/SingletonActivationStrategy.java#L47-L152
train
OpenLiberty/open-liberty
dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/impl/BatchKernelImpl.java
BatchKernelImpl.startPartition
@Override public Entry<BatchPartitionWorkUnit, Future<?>> startPartition(PartitionPlanConfig partitionPlanConfig, Step step, PartitionReplyQueue partitionReplyQueue, ...
java
@Override public Entry<BatchPartitionWorkUnit, Future<?>> startPartition(PartitionPlanConfig partitionPlanConfig, Step step, PartitionReplyQueue partitionReplyQueue, ...
[ "@", "Override", "public", "Entry", "<", "BatchPartitionWorkUnit", ",", "Future", "<", "?", ">", ">", "startPartition", "(", "PartitionPlanConfig", "partitionPlanConfig", ",", "Step", "step", ",", "PartitionReplyQueue", "partitionReplyQueue", ",", "boolean", "isRemote...
Create the BatchPartitionWorkUnit and start the sub-job partition thread. @return A Map Entry with BatchPartitionWorkUnit as key and a Future WorkUnit as value
[ "Create", "the", "BatchPartitionWorkUnit", "and", "start", "the", "sub", "-", "job", "partition", "thread", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.jbatch.container/src/com/ibm/jbatch/container/impl/BatchKernelImpl.java#L677-L690
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java
JFAPCommunicator.setConversation
protected void setConversation(Conversation conversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setConversation", conversation); con = conversation; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setConversa...
java
protected void setConversation(Conversation conversation) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setConversation", conversation); con = conversation; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setConversa...
[ "protected", "void", "setConversation", "(", "Conversation", "conversation", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", ...
Sets the Conversation object @param conversation
[ "Sets", "the", "Conversation", "object" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java#L152-L157
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java
JFAPCommunicator.jfapExchange
protected CommsByteBuffer jfapExchange(CommsByteBuffer buffer, int sendSegmentType, int priority, boolean canPoolOnReceive) throws SIConnectionDroppedException, SIConnectionLostException ...
java
protected CommsByteBuffer jfapExchange(CommsByteBuffer buffer, int sendSegmentType, int priority, boolean canPoolOnReceive) throws SIConnectionDroppedException, SIConnectionLostException ...
[ "protected", "CommsByteBuffer", "jfapExchange", "(", "CommsByteBuffer", "buffer", ",", "int", "sendSegmentType", ",", "int", "priority", ",", "boolean", "canPoolOnReceive", ")", "throws", "SIConnectionDroppedException", ",", "SIConnectionLostException", "{", "if", "(", ...
Wraps the JFAP Channel exchange method to allow tracing, retrieval of Unique request numbers and setting of message priority. @param buffer @param sendSegmentType @param priority @param canPoolOnReceive @return CommsByteBuffer @throws SIConnectionDroppedException @throws SIConnectionLostException
[ "Wraps", "the", "JFAP", "Channel", "exchange", "method", "to", "allow", "tracing", "retrieval", "of", "Unique", "request", "numbers", "and", "setting", "of", "message", "priority", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java#L222-L284
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java
JFAPCommunicator.jfapSend
protected void jfapSend(CommsByteBuffer buffer, int sendSegType, int priority, boolean canPoolOnReceive, ThrottlingPolicy throttlingPolicy) throws SIConnectionDroppedException, SIConnectionLost...
java
protected void jfapSend(CommsByteBuffer buffer, int sendSegType, int priority, boolean canPoolOnReceive, ThrottlingPolicy throttlingPolicy) throws SIConnectionDroppedException, SIConnectionLost...
[ "protected", "void", "jfapSend", "(", "CommsByteBuffer", "buffer", ",", "int", "sendSegType", ",", "int", "priority", ",", "boolean", "canPoolOnReceive", ",", "ThrottlingPolicy", "throttlingPolicy", ")", "throws", "SIConnectionDroppedException", ",", "SIConnectionLostExce...
Wraps the JFAP Channel send method to allow tracing, retrieval of Unique request numbers and setting of message priority. @param sendSegType @param priority @param canPoolOnReceive @throws SIConnectionDroppedException @throws SIConnectionLostException
[ "Wraps", "the", "JFAP", "Channel", "send", "method", "to", "allow", "tracing", "retrieval", "of", "Unique", "request", "numbers", "and", "setting", "of", "message", "priority", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java#L297-L341
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java
JFAPCommunicator.getClientCapabilities
private short getClientCapabilities() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getClientCapabilities"); short capabilities = CommsConstants.CAPABILITIES_DEFAULT; // Allow the use of a runtime property to alter the capability that we req...
java
private short getClientCapabilities() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getClientCapabilities"); short capabilities = CommsConstants.CAPABILITIES_DEFAULT; // Allow the use of a runtime property to alter the capability that we req...
[ "private", "short", "getClientCapabilities", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getClientCapabilities\"", ...
Works out the capabilities that will be sent to the peer as part of the initial handshake. This also takes into account any overrides from the SIB properties file. @return Returns the capabilities.
[ "Works", "out", "the", "capabilities", "that", "will", "be", "sent", "to", "the", "peer", "as", "part", "of", "the", "initial", "handshake", ".", "This", "also", "takes", "into", "account", "any", "overrides", "from", "the", "SIB", "properties", "file", "....
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java#L903-L960
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java
JFAPCommunicator.defaultChecker
public void defaultChecker(CommsByteBuffer buffer, short exceptionCode) throws SIErrorException { if (exceptionCode != CommsConstants.SI_NO_EXCEPTION) { throw new SIErrorException(buffer.getException(con)); } }
java
public void defaultChecker(CommsByteBuffer buffer, short exceptionCode) throws SIErrorException { if (exceptionCode != CommsConstants.SI_NO_EXCEPTION) { throw new SIErrorException(buffer.getException(con)); } }
[ "public", "void", "defaultChecker", "(", "CommsByteBuffer", "buffer", ",", "short", "exceptionCode", ")", "throws", "SIErrorException", "{", "if", "(", "exceptionCode", "!=", "CommsConstants", ".", "SI_NO_EXCEPTION", ")", "{", "throw", "new", "SIErrorException", "("...
The default checker. Should always be called last after all the checkers. @param buffer @param exceptionCode @throws SIErrorException if the exception code is <strong>not</strong> the enumerated value for "throw no exception".
[ "The", "default", "checker", ".", "Should", "always", "be", "called", "last", "after", "all", "the", "checkers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java#L1415-L1422
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java
JFAPCommunicator.invalidateConnection
protected void invalidateConnection(boolean notifyPeer, Throwable throwable, String debugReason) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "invalidateConnection", new Object[]{new Boolean(notifyPeer), ...
java
protected void invalidateConnection(boolean notifyPeer, Throwable throwable, String debugReason) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "invalidateConnection", new Object[]{new Boolean(notifyPeer), ...
[ "protected", "void", "invalidateConnection", "(", "boolean", "notifyPeer", ",", "Throwable", "throwable", ",", "String", "debugReason", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")",...
Utility method to invalidate Connection. Parameters passed to ConnectionInterface.invalidate @param notifyPeer @param throwable @param debugReason
[ "Utility", "method", "to", "invalidate", "Connection", ".", "Parameters", "passed", "to", "ConnectionInterface", ".", "invalidate" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/common/JFAPCommunicator.java#L1430-L1444
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java
SibRaMessagingEngineConnection.createListener
SibRaListener createListener(final SIDestinationAddress destination, MessageEndpointFactory messageEndpointFactory) throws ResourceException { final String methodName = "createListener"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(th...
java
SibRaListener createListener(final SIDestinationAddress destination, MessageEndpointFactory messageEndpointFactory) throws ResourceException { final String methodName = "createListener"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(th...
[ "SibRaListener", "createListener", "(", "final", "SIDestinationAddress", "destination", ",", "MessageEndpointFactory", "messageEndpointFactory", ")", "throws", "ResourceException", "{", "final", "String", "methodName", "=", "\"createListener\"", ";", "if", "(", "TraceCompon...
Creates a new listener to the given destination. @param destination the destination to listen to @return a listener @throws ResourceException if the creation fails
[ "Creates", "a", "new", "listener", "to", "the", "given", "destination", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java#L661-L686
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java
SibRaMessagingEngineConnection.createDispatcher
SibRaDispatcher createDispatcher(final AbstractConsumerSession session, final Reliability unrecoveredReliability, final int maxFailedDeliveries, final int sequentialFailureThreshold) throws...
java
SibRaDispatcher createDispatcher(final AbstractConsumerSession session, final Reliability unrecoveredReliability, final int maxFailedDeliveries, final int sequentialFailureThreshold) throws...
[ "SibRaDispatcher", "createDispatcher", "(", "final", "AbstractConsumerSession", "session", ",", "final", "Reliability", "unrecoveredReliability", ",", "final", "int", "maxFailedDeliveries", ",", "final", "int", "sequentialFailureThreshold", ")", "throws", "ResourceException",...
Gets a dispatcher for the given session and messages. @param session the session locking the messages @return the dispatcher @throws ResourceException if a dispatcher could not be created
[ "Gets", "a", "dispatcher", "for", "the", "given", "session", "and", "messages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java#L697-L770
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java
SibRaMessagingEngineConnection.closeDispatcher
void closeDispatcher(final SibRaDispatcher dispatcher) { final String methodName = "closeDispatcher"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } dispatcher.close(); _dispatcherCount.decrementAndGet()...
java
void closeDispatcher(final SibRaDispatcher dispatcher) { final String methodName = "closeDispatcher"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } dispatcher.close(); _dispatcherCount.decrementAndGet()...
[ "void", "closeDispatcher", "(", "final", "SibRaDispatcher", "dispatcher", ")", "{", "final", "String", "methodName", "=", "\"closeDispatcher\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")",...
Closes the given dispatcher. @param dispatcher the dispatcher to close.
[ "Closes", "the", "given", "dispatcher", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java#L778-L798
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java
SibRaMessagingEngineConnection.close
void close() { final String methodName = "close"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } close(false); if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.exit...
java
void close() { final String methodName = "close"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } close(false); if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.exit...
[ "void", "close", "(", ")", "{", "final", "String", "methodName", "=", "\"close\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", ...
Closes the connection and any associated listeners and dispatchers
[ "Closes", "the", "connection", "and", "any", "associated", "listeners", "and", "dispatchers" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java#L803-L814
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java
SibRaMessagingEngineConnection.close
void close(boolean alreadyClosed) { final String methodName = "close"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, alreadyClosed); } _closed = true; /* * 238811: * Stop all of the list...
java
void close(boolean alreadyClosed) { final String methodName = "close"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName, alreadyClosed); } _closed = true; /* * 238811: * Stop all of the list...
[ "void", "close", "(", "boolean", "alreadyClosed", ")", "{", "final", "String", "methodName", "=", "\"close\"", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "...
Closes this connection and any associated listeners and dispatchers.
[ "Closes", "this", "connection", "and", "any", "associated", "listeners", "and", "dispatchers", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java#L819-L915
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java
SibRaMessagingEngineConnection.createConnection
SICoreConnection createConnection(SICoreConnectionFactory factory, String name, String password, Map properties, String busName) throws SIException, SIErrorException, Exception { final String methodName = "createConnection"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntry...
java
SICoreConnection createConnection(SICoreConnectionFactory factory, String name, String password, Map properties, String busName) throws SIException, SIErrorException, Exception { final String methodName = "createConnection"; if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntry...
[ "SICoreConnection", "createConnection", "(", "SICoreConnectionFactory", "factory", ",", "String", "name", ",", "String", "password", ",", "Map", "properties", ",", "String", "busName", ")", "throws", "SIException", ",", "SIErrorException", ",", "Exception", "{", "fi...
Creates this connection using either the Auth Alias supplied or, if the property is set the WAS server subject. @param factory The SICoreConnectionFactory used to make the connection. @param name The userid to use for secure connections @param password The password to use for secure connections @param properties The M...
[ "Creates", "this", "connection", "using", "either", "the", "Auth", "Alias", "supplied", "or", "if", "the", "property", "is", "set", "the", "WAS", "server", "subject", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaMessagingEngineConnection.java#L991-L1012
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.ready.service/src/com/ibm/ws/security/ready/internal/SecurityReadyServiceImpl.java
SecurityReadyServiceImpl.getUnavailableServices
private String getUnavailableServices() { StringBuilder missingServices = new StringBuilder(); if (tokenService.getReference() == null) { missingServices.append("tokenService, "); } if (tokenManager.getReference() == null) { missingServices.append("tokenManager, "...
java
private String getUnavailableServices() { StringBuilder missingServices = new StringBuilder(); if (tokenService.getReference() == null) { missingServices.append("tokenService, "); } if (tokenManager.getReference() == null) { missingServices.append("tokenManager, "...
[ "private", "String", "getUnavailableServices", "(", ")", "{", "StringBuilder", "missingServices", "=", "new", "StringBuilder", "(", ")", ";", "if", "(", "tokenService", ".", "getReference", "(", ")", "==", "null", ")", "{", "missingServices", ".", "append", "(...
Construct a String that lists all of the missing services. This is very useful for debugging. @return {@code null} if all services are present, or a non-empty String if any are missing
[ "Construct", "a", "String", "that", "lists", "all", "of", "the", "missing", "services", ".", "This", "is", "very", "useful", "for", "debugging", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.ready.service/src/com/ibm/ws/security/ready/internal/SecurityReadyServiceImpl.java#L174-L201
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.ready.service/src/com/ibm/ws/security/ready/internal/SecurityReadyServiceImpl.java
SecurityReadyServiceImpl.updateSecurityReadyState
private void updateSecurityReadyState() { if (!activated) { return; } String unavailableServices = getUnavailableServices(); if (unavailableServices == null) { Tr.info(tc, "SECURITY_SERVICE_READY"); securityReady = true; Dictionary<String...
java
private void updateSecurityReadyState() { if (!activated) { return; } String unavailableServices = getUnavailableServices(); if (unavailableServices == null) { Tr.info(tc, "SECURITY_SERVICE_READY"); securityReady = true; Dictionary<String...
[ "private", "void", "updateSecurityReadyState", "(", ")", "{", "if", "(", "!", "activated", ")", "{", "return", ";", "}", "String", "unavailableServices", "=", "getUnavailableServices", "(", ")", ";", "if", "(", "unavailableServices", "==", "null", ")", "{", ...
Security is ready when all of these required services have been registered.
[ "Security", "is", "ready", "when", "all", "of", "these", "required", "services", "have", "been", "registered", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.ready.service/src/com/ibm/ws/security/ready/internal/SecurityReadyServiceImpl.java#L206-L229
train
OpenLiberty/open-liberty
dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ServerXMLConfiguration.java
ServerXMLConfiguration.parseDirectoryFiles
private void parseDirectoryFiles(WsResource directory, ServerConfiguration configuration) throws ConfigParserException, ConfigValidationException { if (directory != null) { File[] defaultFiles = getChildXMLFiles(directory); if (defaultFiles == null) return; A...
java
private void parseDirectoryFiles(WsResource directory, ServerConfiguration configuration) throws ConfigParserException, ConfigValidationException { if (directory != null) { File[] defaultFiles = getChildXMLFiles(directory); if (defaultFiles == null) return; A...
[ "private", "void", "parseDirectoryFiles", "(", "WsResource", "directory", ",", "ServerConfiguration", "configuration", ")", "throws", "ConfigParserException", ",", "ConfigValidationException", "{", "if", "(", "directory", "!=", "null", ")", "{", "File", "[", "]", "d...
Parse all of the config files in a directory in platform insensitive alphabetical order
[ "Parse", "all", "of", "the", "config", "files", "in", "a", "directory", "in", "platform", "insensitive", "alphabetical", "order" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.config/src/com/ibm/ws/config/xml/internal/ServerXMLConfiguration.java#L345-L383
train
OpenLiberty/open-liberty
dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/VirtualHost.java
VirtualHost.findContext
public ServletContext findContext(String path) { WebGroup g = (WebGroup) requestMapper.map(path); if (g != null) return g.getContext(); else return null; }
java
public ServletContext findContext(String path) { WebGroup g = (WebGroup) requestMapper.map(path); if (g != null) return g.getContext(); else return null; }
[ "public", "ServletContext", "findContext", "(", "String", "path", ")", "{", "WebGroup", "g", "=", "(", "WebGroup", ")", "requestMapper", ".", "map", "(", "path", ")", ";", "if", "(", "g", "!=", "null", ")", "return", "g", ".", "getContext", "(", ")", ...
Method findContext. @param path @return ServletContext
[ "Method", "findContext", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/ws/webcontainer/VirtualHost.java#L197-L203
train
OpenLiberty/open-liberty
dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/SingleFileClient.java
SingleFileClient.addWlpInformation
private void addWlpInformation(Asset asset) { WlpInformation wlpInfo = asset.getWlpInformation(); if (wlpInfo == null) { wlpInfo = new WlpInformation(); asset.setWlpInformation(wlpInfo); } if (wlpInfo.getAppliesToFilterInfo() == null) { wlpInfo.setAppl...
java
private void addWlpInformation(Asset asset) { WlpInformation wlpInfo = asset.getWlpInformation(); if (wlpInfo == null) { wlpInfo = new WlpInformation(); asset.setWlpInformation(wlpInfo); } if (wlpInfo.getAppliesToFilterInfo() == null) { wlpInfo.setAppl...
[ "private", "void", "addWlpInformation", "(", "Asset", "asset", ")", "{", "WlpInformation", "wlpInfo", "=", "asset", ".", "getWlpInformation", "(", ")", ";", "if", "(", "wlpInfo", "==", "null", ")", "{", "wlpInfo", "=", "new", "WlpInformation", "(", ")", ";...
For historic reasons, when an asset is read back from the repository the wlpInformation and ATFI should always be present. This method does that.
[ "For", "historic", "reasons", "when", "an", "asset", "is", "read", "back", "from", "the", "repository", "the", "wlpInformation", "and", "ATFI", "should", "always", "be", "present", ".", "This", "method", "does", "that", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository/src/com/ibm/ws/repository/transport/client/SingleFileClient.java#L215-L224
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/JFapChannelInbound.java
JFapChannelInbound.getDiscriminator
public Discriminator getDiscriminator() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getDiscriminator"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getDiscriminator", discriminator); return discriminator; }
java
public Discriminator getDiscriminator() { if (tc.isEntryEnabled()) SibTr.entry(this, tc, "getDiscriminator"); if (tc.isEntryEnabled()) SibTr.exit(this, tc, "getDiscriminator", discriminator); return discriminator; }
[ "public", "Discriminator", "getDiscriminator", "(", ")", "{", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "this", ",", "tc", ",", "\"getDiscriminator\"", ")", ";", "if", "(", "tc", ".", "isEntryEnabled", "(", ")", ...
Returns the discriminator for this channel.
[ "Returns", "the", "discriminator", "for", "this", "channel", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/jfapchannel/server/impl/JFapChannelInbound.java#L68-L74
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java
ServerAsyncResult.getResult
private Object getResult() throws InterruptedException, ExecutionException { if (ivCancelled) { // F743-11774 if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.exit(tc, "getResult: throwing CancellationException"); } throw new CancellationE...
java
private Object getResult() throws InterruptedException, ExecutionException { if (ivCancelled) { // F743-11774 if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.exit(tc, "getResult: throwing CancellationException"); } throw new CancellationE...
[ "private", "Object", "getResult", "(", ")", "throws", "InterruptedException", ",", "ExecutionException", "{", "if", "(", "ivCancelled", ")", "{", "// F743-11774", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled",...
This get method returns the result of the async method call. This method must not be called unless ivGate indicates that results are available. @return - the result object @throws InterruptedException - if the thread is interrupted while waiting @throws CancellationException - if the async method was canceled success...
[ "This", "get", "method", "returns", "the", "result", "of", "the", "async", "method", "call", ".", "This", "method", "must", "not", "be", "called", "unless", "ivGate", "indicates", "that", "results", "are", "available", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java#L217-L248
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java
ServerAsyncResult.getResult
private Object getResult(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { if (ivCancelled) { // F743-11774 if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.exit(tc, "getResult: throwing CancellationException"); ...
java
private Object getResult(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { if (ivCancelled) { // F743-11774 if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { Tr.exit(tc, "getResult: throwing CancellationException"); ...
[ "private", "Object", "getResult", "(", "long", "timeout", ",", "TimeUnit", "unit", ")", "throws", "InterruptedException", ",", "ExecutionException", ",", "TimeoutException", "{", "if", "(", "ivCancelled", ")", "{", "// F743-11774", "if", "(", "TraceComponent", "."...
This get method returns the result of the asynch method call. This method must not be called unless ivGate indicates that results are available. @param timeout - the timeout value @param unit - the time unit for the timeout value (e.g. milliseconds, seconds, etc.) @return - the result object @throws InterruptedExcep...
[ "This", "get", "method", "returns", "the", "result", "of", "the", "asynch", "method", "call", ".", "This", "method", "must", "not", "be", "called", "unless", "ivGate", "indicates", "that", "results", "are", "available", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java#L264-L303
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java
ServerAsyncResult.isCancelled
@Override public boolean isCancelled() { //F743-609CodRev - read volatile variable only once boolean cancelled = ivCancelled; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "isCancelled: " + cancelled + " Future object: " + this); } ...
java
@Override public boolean isCancelled() { //F743-609CodRev - read volatile variable only once boolean cancelled = ivCancelled; if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "isCancelled: " + cancelled + " Future object: " + this); } ...
[ "@", "Override", "public", "boolean", "isCancelled", "(", ")", "{", "//F743-609CodRev - read volatile variable only once", "boolean", "cancelled", "=", "ivCancelled", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnab...
This method allows clients to check the Future object to see if the asynch method was canceled before it got a chance to execute.
[ "This", "method", "allows", "clients", "to", "check", "the", "Future", "object", "to", "see", "if", "the", "asynch", "method", "was", "canceled", "before", "it", "got", "a", "chance", "to", "execute", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java#L373-L384
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java
ServerAsyncResult.setResult
void setResult(Future<?> theFuture) { // d650178 if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "setResult: " + Util.identity(theFuture) + " Future object: " + this); } // set result, we are done ivFuture = theFuture; done(); // F743...
java
void setResult(Future<?> theFuture) { // d650178 if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "setResult: " + Util.identity(theFuture) + " Future object: " + this); } // set result, we are done ivFuture = theFuture; done(); // F743...
[ "void", "setResult", "(", "Future", "<", "?", ">", "theFuture", ")", "{", "// d650178", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"set...
did not throw an exception.
[ "did", "not", "throw", "an", "exception", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java#L413-L422
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java
ServerAsyncResult.setException
void setException(Throwable theException) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "setException - Future object: " + this, theException); } // set exception, we are done ivException = theException; done(); // F743-11774 ...
java
void setException(Throwable theException) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "setException - Future object: " + this, theException); } // set exception, we are done ivException = theException; done(); // F743-11774 ...
[ "void", "setException", "(", "Throwable", "theException", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "{", "Tr", ".", "debug", "(", "tc", ",", "\"setException - Future object: \...
The async method ended with an exception
[ "The", "async", "method", "ended", "with", "an", "exception" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java#L425-L434
train
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/validator/LongRangeValidator.java
LongRangeValidator.saveState
public Object saveState(FacesContext context) { if (!initialStateMarked()) { Object values[] = new Object[2]; values[0] = _maximum; values[1] = _minimum; return values; } return null; }
java
public Object saveState(FacesContext context) { if (!initialStateMarked()) { Object values[] = new Object[2]; values[0] = _maximum; values[1] = _minimum; return values; } return null; }
[ "public", "Object", "saveState", "(", "FacesContext", "context", ")", "{", "if", "(", "!", "initialStateMarked", "(", ")", ")", "{", "Object", "values", "[", "]", "=", "new", "Object", "[", "2", "]", ";", "values", "[", "0", "]", "=", "_maximum", ";"...
RESTORE & SAVE STATE
[ "RESTORE", "&", "SAVE", "STATE" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/validator/LongRangeValidator.java#L194-L204
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security.common/src/com/ibm/ws/messaging/security/Authentication.java
Authentication.logout
public void logout(Subject subject) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "logout"); } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.exit(tc, CLASS_NAME + "logout"); } }
java
public void logout(Subject subject) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "logout"); } if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.exit(tc, CLASS_NAME + "logout"); } }
[ "public", "void", "logout", "(", "Subject", "subject", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "CLASS_NAME", "+", "\"logout...
Logout method is used only for auditing purpose @param subject Subject which needs to be logged out
[ "Logout", "method", "is", "used", "only", "for", "auditing", "purpose" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security.common/src/com/ibm/ws/messaging/security/Authentication.java#L191-L198
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.security.common/src/com/ibm/ws/messaging/security/Authentication.java
Authentication.setMessagingAuthenticationService
public void setMessagingAuthenticationService( MessagingAuthenticationService messagingAuthenticationService) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "setMessagingAuthenticationService", messagingAuthenticationService); } this.messagingAuthentic...
java
public void setMessagingAuthenticationService( MessagingAuthenticationService messagingAuthenticationService) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, CLASS_NAME + "setMessagingAuthenticationService", messagingAuthenticationService); } this.messagingAuthentic...
[ "public", "void", "setMessagingAuthenticationService", "(", "MessagingAuthenticationService", "messagingAuthenticationService", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ...
Set the MessagingAuthenticationService @param messagingAuthenticationService
[ "Set", "the", "MessagingAuthenticationService" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security.common/src/com/ibm/ws/messaging/security/Authentication.java#L205-L215
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java
AbstractProviderResolver.deactivate
public void deactivate(ComponentContext cc) throws IOException { ConfigProviderResolver.setInstance(null); shutdown(); scheduledExecutorServiceRef.deactivate(cc); }
java
public void deactivate(ComponentContext cc) throws IOException { ConfigProviderResolver.setInstance(null); shutdown(); scheduledExecutorServiceRef.deactivate(cc); }
[ "public", "void", "deactivate", "(", "ComponentContext", "cc", ")", "throws", "IOException", "{", "ConfigProviderResolver", ".", "setInstance", "(", "null", ")", ";", "shutdown", "(", ")", ";", "scheduledExecutorServiceRef", ".", "deactivate", "(", "cc", ")", ";...
Deactivate a context and set the instance to null @param cc
[ "Deactivate", "a", "context", "and", "set", "the", "instance", "to", "null" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java#L90-L94
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java
AbstractProviderResolver.shutdown
public void shutdown() { synchronized (configCache) { Set<ClassLoader> allClassLoaders = new HashSet<>(); allClassLoaders.addAll(configCache.keySet()); //create a copy of the keys so that we avoid a ConcurrentModificationException for (ClassLoader classLoader : allClassLoader...
java
public void shutdown() { synchronized (configCache) { Set<ClassLoader> allClassLoaders = new HashSet<>(); allClassLoaders.addAll(configCache.keySet()); //create a copy of the keys so that we avoid a ConcurrentModificationException for (ClassLoader classLoader : allClassLoader...
[ "public", "void", "shutdown", "(", ")", "{", "synchronized", "(", "configCache", ")", "{", "Set", "<", "ClassLoader", ">", "allClassLoaders", "=", "new", "HashSet", "<>", "(", ")", ";", "allClassLoaders", ".", "addAll", "(", "configCache", ".", "keySet", "...
Close down all the configs
[ "Close", "down", "all", "the", "configs" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java#L144-L155
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java
AbstractProviderResolver.close
private void close(ClassLoader classLoader) { synchronized (configCache) { ConfigWrapper config = configCache.remove(classLoader); if (config != null) { Set<String> applicationNames = config.getApplications(); for (String app : applicationNames) { ...
java
private void close(ClassLoader classLoader) { synchronized (configCache) { ConfigWrapper config = configCache.remove(classLoader); if (config != null) { Set<String> applicationNames = config.getApplications(); for (String app : applicationNames) { ...
[ "private", "void", "close", "(", "ClassLoader", "classLoader", ")", "{", "synchronized", "(", "configCache", ")", "{", "ConfigWrapper", "config", "=", "configCache", ".", "remove", "(", "classLoader", ")", ";", "if", "(", "config", "!=", "null", ")", "{", ...
Completely close a config for a given classloader
[ "Completely", "close", "a", "config", "for", "a", "given", "classloader" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java#L187-L199
train
OpenLiberty/open-liberty
dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java
AbstractProviderResolver.closeConfig
private void closeConfig(Config config) { if (config instanceof WebSphereConfig) { try { ((WebSphereConfig) config).close(); } catch (IOException e) { throw new ConfigException(Tr.formatMessage(tc, "could.not.close.CWMCG0004E", e)); } }...
java
private void closeConfig(Config config) { if (config instanceof WebSphereConfig) { try { ((WebSphereConfig) config).close(); } catch (IOException e) { throw new ConfigException(Tr.formatMessage(tc, "could.not.close.CWMCG0004E", e)); } }...
[ "private", "void", "closeConfig", "(", "Config", "config", ")", "{", "if", "(", "config", "instanceof", "WebSphereConfig", ")", "{", "try", "{", "(", "(", "WebSphereConfig", ")", "config", ")", ".", "close", "(", ")", ";", "}", "catch", "(", "IOException...
Close a given config, if it's a WebSphereConfig
[ "Close", "a", "given", "config", "if", "it", "s", "a", "WebSphereConfig" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java#L204-L212
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java
JmsJcaConnectionImpl.getSICoreConnection
@Override public SICoreConnection getSICoreConnection() throws IllegalStateException { if (connectionClosed) { throw new IllegalStateException(NLS.getFormattedMessage( ("ILLEGAL_STATE_CWSJR1086"), ...
java
@Override public SICoreConnection getSICoreConnection() throws IllegalStateException { if (connectionClosed) { throw new IllegalStateException(NLS.getFormattedMessage( ("ILLEGAL_STATE_CWSJR1086"), ...
[ "@", "Override", "public", "SICoreConnection", "getSICoreConnection", "(", ")", "throws", "IllegalStateException", "{", "if", "(", "connectionClosed", ")", "{", "throw", "new", "IllegalStateException", "(", "NLS", ".", "getFormattedMessage", "(", "(", "\"ILLEGAL_STATE...
Returns the core connection created for, and associated with, this connection. @return the core connection @throws IllegalStateException if this connection has been closed
[ "Returns", "the", "core", "connection", "created", "for", "and", "associated", "with", "this", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java#L503-L513
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java
JmsJcaConnectionImpl.close
@Override synchronized public void close() throws SIConnectionLostException, SIIncorrectCallException, SIResourceException, SIErrorException, SIConnectionDroppedException, SIConnectionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEna...
java
@Override synchronized public void close() throws SIConnectionLostException, SIIncorrectCallException, SIResourceException, SIErrorException, SIConnectionDroppedException, SIConnectionUnavailableException { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEna...
[ "@", "Override", "synchronized", "public", "void", "close", "(", ")", "throws", "SIConnectionLostException", ",", "SIIncorrectCallException", ",", "SIResourceException", ",", "SIErrorException", ",", "SIConnectionDroppedException", ",", "SIConnectionUnavailableException", "{"...
Closes this connection, its associated core connection and any sessions created from it. Used in Outbound Diagram 8 @throws SIErrorException if the associated core connection failed to close @throws SIResourceException if the associated core connection failed to close @throws SIIncorrectCallException if the associate...
[ "Closes", "this", "connection", "its", "associated", "core", "connection", "and", "any", "sessions", "created", "from", "it", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java#L530-L566
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java
JmsJcaConnectionImpl.isRunningInWAS
private static boolean isRunningInWAS() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(TRACE, "isRunningInWAS"); } if (inWAS == null) { inWAS = Boolean.TRUE; } if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntry...
java
private static boolean isRunningInWAS() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(TRACE, "isRunningInWAS"); } if (inWAS == null) { inWAS = Boolean.TRUE; } if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntry...
[ "private", "static", "boolean", "isRunningInWAS", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "TRACE", ",", "\"isRunningInWAS\"", ")",...
Returns true if running in WAS. The check is to see if com.ibm.tx.jta.Transaction.TransactionManagerFactory is on the classpath. @return if running in WAS
[ "Returns", "true", "if", "running", "in", "WAS", ".", "The", "check", "is", "to", "see", "if", "com", ".", "ibm", ".", "tx", ".", "jta", ".", "Transaction", ".", "TransactionManagerFactory", "is", "on", "the", "classpath", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java#L629-L642
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java
JmsJcaConnectionImpl.getCurrentUOWCoord
private static final Object getCurrentUOWCoord() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(TRACE, "getCurrentUOWCoord"); } Object currentUOW = null; if (isRunningInWAS()) { currentUOW = EmbeddableTransactionManagerFactory...
java
private static final Object getCurrentUOWCoord() { if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) { SibTr.entry(TRACE, "getCurrentUOWCoord"); } Object currentUOW = null; if (isRunningInWAS()) { currentUOW = EmbeddableTransactionManagerFactory...
[ "private", "static", "final", "Object", "getCurrentUOWCoord", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "TRACE", ",", "\"getCurrentU...
This method uses reflection to try and obtain the current UOW, if we are not inside WAS null is returned. @return The current UOW
[ "This", "method", "uses", "reflection", "to", "try", "and", "obtain", "the", "current", "UOW", "if", "we", "are", "not", "inside", "WAS", "null", "is", "returned", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java#L650-L664
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ClassLoadingServiceImpl.java
ClassLoadingServiceImpl.listenForLibraryChanges
private PostCreateAction listenForLibraryChanges(final String libid) { return new PostCreateAction() { @Override public void invoke(AppClassLoader acl) { listenForLibraryChanges(libid, acl); } }; }
java
private PostCreateAction listenForLibraryChanges(final String libid) { return new PostCreateAction() { @Override public void invoke(AppClassLoader acl) { listenForLibraryChanges(libid, acl); } }; }
[ "private", "PostCreateAction", "listenForLibraryChanges", "(", "final", "String", "libid", ")", "{", "return", "new", "PostCreateAction", "(", ")", "{", "@", "Override", "public", "void", "invoke", "(", "AppClassLoader", "acl", ")", "{", "listenForLibraryChanges", ...
create an action that will create a listener when invoked
[ "create", "an", "action", "that", "will", "create", "a", "listener", "when", "invoked" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ClassLoadingServiceImpl.java#L498-L505
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ClassLoadingServiceImpl.java
ClassLoadingServiceImpl.listenForLibraryChanges
private void listenForLibraryChanges(String libid, AppClassLoader acl) { // ensure this loader is removed from the canonical store when the library is updated new WeakLibraryListener(libid, acl.getKey().getId(), acl, bundleContext) { @Override protected void update() { ...
java
private void listenForLibraryChanges(String libid, AppClassLoader acl) { // ensure this loader is removed from the canonical store when the library is updated new WeakLibraryListener(libid, acl.getKey().getId(), acl, bundleContext) { @Override protected void update() { ...
[ "private", "void", "listenForLibraryChanges", "(", "String", "libid", ",", "AppClassLoader", "acl", ")", "{", "// ensure this loader is removed from the canonical store when the library is updated", "new", "WeakLibraryListener", "(", "libid", ",", "acl", ".", "getKey", "(", ...
create a listener to remove a loader from the canonical store on library update
[ "create", "a", "listener", "to", "remove", "a", "loader", "from", "the", "canonical", "store", "on", "library", "update" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ClassLoadingServiceImpl.java#L508-L519
train
OpenLiberty/open-liberty
dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/adapter/BundleEventAdapter.java
BundleEventAdapter.getTopic
private String getTopic(BundleEvent bundleEvent) { StringBuilder topic = new StringBuilder(BUNDLE_EVENT_TOPIC_PREFIX); switch (bundleEvent.getType()) { case BundleEvent.INSTALLED: topic.append("INSTALLED"); break; case BundleEvent.STARTED: ...
java
private String getTopic(BundleEvent bundleEvent) { StringBuilder topic = new StringBuilder(BUNDLE_EVENT_TOPIC_PREFIX); switch (bundleEvent.getType()) { case BundleEvent.INSTALLED: topic.append("INSTALLED"); break; case BundleEvent.STARTED: ...
[ "private", "String", "getTopic", "(", "BundleEvent", "bundleEvent", ")", "{", "StringBuilder", "topic", "=", "new", "StringBuilder", "(", "BUNDLE_EVENT_TOPIC_PREFIX", ")", ";", "switch", "(", "bundleEvent", ".", "getType", "(", ")", ")", "{", "case", "BundleEven...
Determine the appropriate topic to use for the Bundle Event. @param bundleEvent the bundle event that is being adapted @return the topic or null if the event is not supported
[ "Determine", "the", "appropriate", "topic", "to", "use", "for", "the", "Bundle", "Event", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/adapter/BundleEventAdapter.java#L93-L123
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java
PmiModuleConfig.submoduleMembers
public PmiDataInfo[] submoduleMembers(String submoduleName, int level) { if (submoduleName == null) return listLevelData(level); ArrayList returnData = new ArrayList(); // special case for category boolean inCategory = false; if (submoduleName.startsWith("ejb.")) ...
java
public PmiDataInfo[] submoduleMembers(String submoduleName, int level) { if (submoduleName == null) return listLevelData(level); ArrayList returnData = new ArrayList(); // special case for category boolean inCategory = false; if (submoduleName.startsWith("ejb.")) ...
[ "public", "PmiDataInfo", "[", "]", "submoduleMembers", "(", "String", "submoduleName", ",", "int", "level", ")", "{", "if", "(", "submoduleName", "==", "null", ")", "return", "listLevelData", "(", "level", ")", ";", "ArrayList", "returnData", "=", "new", "Ar...
Returns an array of PmiDataInfo for the given submoduleName and level.
[ "Returns", "an", "array", "of", "PmiDataInfo", "for", "the", "given", "submoduleName", "and", "level", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java#L172-L199
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java
PmiModuleConfig.listLevelData
public PmiDataInfo[] listLevelData(int level) { ArrayList levelData = new ArrayList(); Iterator allData = perfData.values().iterator(); while (allData.hasNext()) { PmiDataInfo dataInfo = (PmiDataInfo) allData.next(); if (dataInfo.getLevel() <= level) { le...
java
public PmiDataInfo[] listLevelData(int level) { ArrayList levelData = new ArrayList(); Iterator allData = perfData.values().iterator(); while (allData.hasNext()) { PmiDataInfo dataInfo = (PmiDataInfo) allData.next(); if (dataInfo.getLevel() <= level) { le...
[ "public", "PmiDataInfo", "[", "]", "listLevelData", "(", "int", "level", ")", "{", "ArrayList", "levelData", "=", "new", "ArrayList", "(", ")", ";", "Iterator", "allData", "=", "perfData", ".", "values", "(", ")", ".", "iterator", "(", ")", ";", "while",...
Returns the statistic with level equal to or lower than 'level'
[ "Returns", "the", "statistic", "with", "level", "equal", "to", "or", "lower", "than", "level" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java#L222-L239
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java
PmiModuleConfig.listMyLevelData
public PmiDataInfo[] listMyLevelData(int level) { ArrayList levelData = new ArrayList(); Iterator allData = perfData.values().iterator(); while (allData.hasNext()) { PmiDataInfo dataInfo = (PmiDataInfo) allData.next(); if (dataInfo.getLevel() == level) { l...
java
public PmiDataInfo[] listMyLevelData(int level) { ArrayList levelData = new ArrayList(); Iterator allData = perfData.values().iterator(); while (allData.hasNext()) { PmiDataInfo dataInfo = (PmiDataInfo) allData.next(); if (dataInfo.getLevel() == level) { l...
[ "public", "PmiDataInfo", "[", "]", "listMyLevelData", "(", "int", "level", ")", "{", "ArrayList", "levelData", "=", "new", "ArrayList", "(", ")", ";", "Iterator", "allData", "=", "perfData", ".", "values", "(", ")", ".", "iterator", "(", ")", ";", "while...
Returns the statistic with level equal to 'level'
[ "Returns", "the", "statistic", "with", "level", "equal", "to", "level" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java#L244-L255
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java
PmiModuleConfig.listStatisticsWithDependents
public int[] listStatisticsWithDependents() { if (dependList == null) { ArrayList list = new ArrayList(); Iterator allData = perfData.values().iterator(); while (allData.hasNext()) { PmiDataInfo dataInfo = (PmiDataInfo) allData.next(); if (data...
java
public int[] listStatisticsWithDependents() { if (dependList == null) { ArrayList list = new ArrayList(); Iterator allData = perfData.values().iterator(); while (allData.hasNext()) { PmiDataInfo dataInfo = (PmiDataInfo) allData.next(); if (data...
[ "public", "int", "[", "]", "listStatisticsWithDependents", "(", ")", "{", "if", "(", "dependList", "==", "null", ")", "{", "ArrayList", "list", "=", "new", "ArrayList", "(", ")", ";", "Iterator", "allData", "=", "perfData", ".", "values", "(", ")", ".", ...
Returns String representation of this object
[ "Returns", "String", "representation", "of", "this", "object" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java#L293-L310
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/env/was/Cache.java
Cache.scheduleEvictionTask
private void scheduleEvictionTask(long timeoutInMilliSeconds) { EvictionTask evictionTask = new EvictionTask(); // Before creating new Timers, which create new Threads, we // must ensure that we are not using any application classloader // as the current thread's context classloader. O...
java
private void scheduleEvictionTask(long timeoutInMilliSeconds) { EvictionTask evictionTask = new EvictionTask(); // Before creating new Timers, which create new Threads, we // must ensure that we are not using any application classloader // as the current thread's context classloader. O...
[ "private", "void", "scheduleEvictionTask", "(", "long", "timeoutInMilliSeconds", ")", "{", "EvictionTask", "evictionTask", "=", "new", "EvictionTask", "(", ")", ";", "// Before creating new Timers, which create new Threads, we", "// must ensure that we are not using any application...
Creates a timer and schedules the eviction task based on the timeout in milliseconds @param timeoutInMilliSeconds the time to be used in milliseconds for the eviction task
[ "Creates", "a", "timer", "and", "schedules", "the", "eviction", "task", "based", "on", "the", "timeout", "in", "milliseconds" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/env/was/Cache.java#L149-L168
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/env/was/Cache.java
Cache.update
public synchronized Object update(String key, Object value) { // evict until size < maxSize while (isEvictionRequired() && entryLimit > 0 && entryLimit < Integer.MAX_VALUE) { evictStaleEntries(); } CacheEntry oldEntry = null; CacheEntry curEntry = new CacheEntry(valu...
java
public synchronized Object update(String key, Object value) { // evict until size < maxSize while (isEvictionRequired() && entryLimit > 0 && entryLimit < Integer.MAX_VALUE) { evictStaleEntries(); } CacheEntry oldEntry = null; CacheEntry curEntry = new CacheEntry(valu...
[ "public", "synchronized", "Object", "update", "(", "String", "key", ",", "Object", "value", ")", "{", "// evict until size < maxSize", "while", "(", "isEvictionRequired", "(", ")", "&&", "entryLimit", ">", "0", "&&", "entryLimit", "<", "Integer", ".", "MAX_VALUE...
Update the value into the Cache using the specified key, but do not change the table level of the cache. If the key is not in any table, add it to the primaryTable @param key the key of the entry to be inserted @param value the value of the entry to be inserted @return the previous value associated with key, or null i...
[ "Update", "the", "value", "into", "the", "Cache", "using", "the", "specified", "key", "but", "do", "not", "change", "the", "table", "level", "of", "the", "cache", ".", "If", "the", "key", "is", "not", "in", "any", "table", "add", "it", "to", "the", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/env/was/Cache.java#L257-L276
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/env/was/Cache.java
Cache.clearAllEntries
public synchronized void clearAllEntries() { tertiaryTable.putAll(primaryTable); tertiaryTable.putAll(secondaryTable); primaryTable.clear(); secondaryTable.clear(); evictStaleEntries(); }
java
public synchronized void clearAllEntries() { tertiaryTable.putAll(primaryTable); tertiaryTable.putAll(secondaryTable); primaryTable.clear(); secondaryTable.clear(); evictStaleEntries(); }
[ "public", "synchronized", "void", "clearAllEntries", "(", ")", "{", "tertiaryTable", ".", "putAll", "(", "primaryTable", ")", ";", "tertiaryTable", ".", "putAll", "(", "secondaryTable", ")", ";", "primaryTable", ".", "clear", "(", ")", ";", "secondaryTable", "...
Purge all entries from the Cache. Semantically, this should behave the same as the expiration of all entries from the cache.
[ "Purge", "all", "entries", "from", "the", "Cache", ".", "Semantically", "this", "should", "behave", "the", "same", "as", "the", "expiration", "of", "all", "entries", "from", "the", "cache", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/env/was/Cache.java#L338-L347
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/BDAFactory.java
BDAFactory.createBDA
public static WebSphereBeanDeploymentArchive createBDA(WebSphereCDIDeployment deployment, ExtensionArchive extensionArchive, CDIRuntime cdiRuntime) throws CDIException { Set<String> additionalC...
java
public static WebSphereBeanDeploymentArchive createBDA(WebSphereCDIDeployment deployment, ExtensionArchive extensionArchive, CDIRuntime cdiRuntime) throws CDIException { Set<String> additionalC...
[ "public", "static", "WebSphereBeanDeploymentArchive", "createBDA", "(", "WebSphereCDIDeployment", "deployment", ",", "ExtensionArchive", "extensionArchive", ",", "CDIRuntime", "cdiRuntime", ")", "throws", "CDIException", "{", "Set", "<", "String", ">", "additionalClasses", ...
only for extensions
[ "only", "for", "extensions" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/BDAFactory.java#L71-L94
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java
WrapperManager.setWrapperCacheSize
public void setWrapperCacheSize(int cacheSize) { wrapperCache.setCachePreferredMaxSize(cacheSize); int updatedCacheSize = getBeanIdCacheSize(cacheSize); beanIdCache.setSize(updatedCacheSize); }
java
public void setWrapperCacheSize(int cacheSize) { wrapperCache.setCachePreferredMaxSize(cacheSize); int updatedCacheSize = getBeanIdCacheSize(cacheSize); beanIdCache.setSize(updatedCacheSize); }
[ "public", "void", "setWrapperCacheSize", "(", "int", "cacheSize", ")", "{", "wrapperCache", ".", "setCachePreferredMaxSize", "(", "cacheSize", ")", ";", "int", "updatedCacheSize", "=", "getBeanIdCacheSize", "(", "cacheSize", ")", ";", "beanIdCache", ".", "setSize", ...
Call to update the BeanIdCache cache size.
[ "Call", "to", "update", "the", "BeanIdCache", "cache", "size", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java#L127-L132
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java
WrapperManager.getBeanIdCacheSize
private int getBeanIdCacheSize(int cacheSize) { int beanIdCacheSize = cacheSize; if (beanIdCacheSize < (Integer.MAX_VALUE / 2)) beanIdCacheSize = beanIdCacheSize * 2; else beanIdCacheSize = Integer.MAX_VALUE; return beanIdCacheSize; }
java
private int getBeanIdCacheSize(int cacheSize) { int beanIdCacheSize = cacheSize; if (beanIdCacheSize < (Integer.MAX_VALUE / 2)) beanIdCacheSize = beanIdCacheSize * 2; else beanIdCacheSize = Integer.MAX_VALUE; return beanIdCacheSize; }
[ "private", "int", "getBeanIdCacheSize", "(", "int", "cacheSize", ")", "{", "int", "beanIdCacheSize", "=", "cacheSize", ";", "if", "(", "beanIdCacheSize", "<", "(", "Integer", ".", "MAX_VALUE", "/", "2", ")", ")", "beanIdCacheSize", "=", "beanIdCacheSize", "*",...
Calculate the size to be used for the BeanIdCache. @return cacheSize
[ "Calculate", "the", "size", "to", "be", "used", "for", "the", "BeanIdCache", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java#L139-L148
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java
WrapperManager.unregister
public boolean unregister(BeanId beanId, boolean dropRef) // f111627 throws CSIException { boolean removed = false; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "unregister", new Object[] { beanId, new Boolean(dropRef) }); // d18...
java
public boolean unregister(BeanId beanId, boolean dropRef) // f111627 throws CSIException { boolean removed = false; if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "unregister", new Object[] { beanId, new Boolean(dropRef) }); // d18...
[ "public", "boolean", "unregister", "(", "BeanId", "beanId", ",", "boolean", "dropRef", ")", "// f111627", "throws", "CSIException", "{", "boolean", "removed", "=", "false", ";", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", "."...
d181569 - changed signature of method.
[ "d181569", "-", "changed", "signature", "of", "method", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java#L374-L415
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java
WrapperManager.unregisterHome
public void unregisterHome(J2EEName homeName, EJSHome homeObj) throws CSIException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "unregisterHome"); J2EEName cacheHomeName; int numEnumerated = 0, numRemoved = 0; // d103404.2 ...
java
public void unregisterHome(J2EEName homeName, EJSHome homeObj) throws CSIException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "unregisterHome"); J2EEName cacheHomeName; int numEnumerated = 0, numRemoved = 0; // d103404.2 ...
[ "public", "void", "unregisterHome", "(", "J2EEName", "homeName", ",", "EJSHome", "homeObj", ")", "throws", "CSIException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr", ".", "e...
unregisterHome removes from cache homeObj and all Objects that have homeObj as it's home. It also unregisters these objects from from the orb object adapter.
[ "unregisterHome", "removes", "from", "cache", "homeObj", "and", "all", "Objects", "that", "have", "homeObj", "as", "it", "s", "home", ".", "It", "also", "unregisters", "these", "objects", "from", "from", "the", "orb", "object", "adapter", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java#L422-L466
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java
WrapperManager.discardObject
@Override public void discardObject(EJBCache wrapperCache, Object key, Object ele) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "discardObject", new Object[] { key, ele }); EJSWrapperCommon wrapperCommon = (EJSWrapperCommon) ele; wrapperCom...
java
@Override public void discardObject(EJBCache wrapperCache, Object key, Object ele) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "discardObject", new Object[] { key, ele }); EJSWrapperCommon wrapperCommon = (EJSWrapperCommon) ele; wrapperCom...
[ "@", "Override", "public", "void", "discardObject", "(", "EJBCache", "wrapperCache", ",", "Object", "key", ",", "Object", "ele", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", ...
Unregister a wrapper instance when it is castout of the wrapper cache.
[ "Unregister", "a", "wrapper", "instance", "when", "it", "is", "castout", "of", "the", "wrapper", "cache", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java#L472-L483
train
OpenLiberty/open-liberty
dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java
WrapperManager.faultOnKey
@Override public Object faultOnKey(EJBCache cache, Object key) throws FaultException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "faultOnKey", key); ByteArray wrapperKey = (ByteArray) key; EJSWrapperCommon result = null...
java
@Override public Object faultOnKey(EJBCache cache, Object key) throws FaultException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "faultOnKey", key); ByteArray wrapperKey = (ByteArray) key; EJSWrapperCommon result = null...
[ "@", "Override", "public", "Object", "faultOnKey", "(", "EJBCache", "cache", ",", "Object", "key", ")", "throws", "FaultException", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "Tr"...
Invoked by the Cache FaultStrategy when an object was not found and needs to be inserted. We create a new wrapper instance to be inserted into the cache. The cache package holds the lock on a bucket when this method is invoked.
[ "Invoked", "by", "the", "Cache", "FaultStrategy", "when", "an", "object", "was", "not", "found", "and", "needs", "to", "be", "inserted", ".", "We", "create", "a", "new", "wrapper", "instance", "to", "be", "inserted", "into", "the", "cache", ".", "The", "...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java#L589-L639
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java
AbstractTokenImpl.isValid
public boolean isValid() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "Checking validity of token " + this.getClass().getName()); if (token != null) { // return if this token is still valid long currentTime = System.currentTimeMilli...
java
public boolean isValid() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "Checking validity of token " + this.getClass().getName()); if (token != null) { // return if this token is still valid long currentTime = System.currentTimeMilli...
[ "public", "boolean", "isValid", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ")", "Tr", ".", "debug", "(", "tc", ",", "\"Checking validity of token \"", "+", "this", ".", "ge...
Validates the token including expiration, signature, etc. @return boolean
[ "Validates", "the", "token", "including", "expiration", "signature", "etc", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java#L65-L92
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java
AbstractTokenImpl.getPrincipal
public String getPrincipal() { String[] accessIDArray = getAttributes("u"); if (accessIDArray != null && accessIDArray.length > 0) return accessIDArray[0]; else return null; }
java
public String getPrincipal() { String[] accessIDArray = getAttributes("u"); if (accessIDArray != null && accessIDArray.length > 0) return accessIDArray[0]; else return null; }
[ "public", "String", "getPrincipal", "(", ")", "{", "String", "[", "]", "accessIDArray", "=", "getAttributes", "(", "\"u\"", ")", ";", "if", "(", "accessIDArray", "!=", "null", "&&", "accessIDArray", ".", "length", ">", "0", ")", "return", "accessIDArray", ...
Gets the principal that this Token belongs to. If this is an authorization token, this principal string must match the authentication token principal string or the message will be rejected. @return String
[ "Gets", "the", "principal", "that", "this", "Token", "belongs", "to", ".", "If", "this", "is", "an", "authorization", "token", "this", "principal", "string", "must", "match", "the", "authentication", "token", "principal", "string", "or", "the", "message", "wil...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java#L122-L129
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java
AbstractTokenImpl.getUniqueID
public String getUniqueID() { // return null so that this token does not change the uniqueness, // all static attributes from the default tokens. String[] cacheKeyArray = getAttributes(AttributeNameConstants.WSCREDENTIAL_CACHE_KEY); if (cacheKeyArray != null && cacheKeyArray[0] != null...
java
public String getUniqueID() { // return null so that this token does not change the uniqueness, // all static attributes from the default tokens. String[] cacheKeyArray = getAttributes(AttributeNameConstants.WSCREDENTIAL_CACHE_KEY); if (cacheKeyArray != null && cacheKeyArray[0] != null...
[ "public", "String", "getUniqueID", "(", ")", "{", "// return null so that this token does not change the uniqueness, ", "// all static attributes from the default tokens.", "String", "[", "]", "cacheKeyArray", "=", "getAttributes", "(", "AttributeNameConstants", ".", "WSCREDENTIAL_...
Returns a unique identifier of the token based upon information the provider considers makes this a unique token. This will be used for caching purposes and may be used in combination with other token unique IDs that are part of the same Subject. This method should return null if you want the accessID of the user to r...
[ "Returns", "a", "unique", "identifier", "of", "the", "token", "based", "upon", "information", "the", "provider", "considers", "makes", "this", "a", "unique", "token", ".", "This", "will", "be", "used", "for", "caching", "purposes", "and", "may", "be", "used"...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java#L142-L156
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java
AbstractTokenImpl.getAttributes
public String[] getAttributes(String key) { if (token != null) return token.getAttributes(key); else return null; }
java
public String[] getAttributes(String key) { if (token != null) return token.getAttributes(key); else return null; }
[ "public", "String", "[", "]", "getAttributes", "(", "String", "key", ")", "{", "if", "(", "token", "!=", "null", ")", "return", "token", ".", "getAttributes", "(", "key", ")", ";", "else", "return", "null", ";", "}" ]
Gets the attribute value based on the named value. @param String key @return String[]
[ "Gets", "the", "attribute", "value", "based", "on", "the", "named", "value", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java#L220-L225
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java
MessageItemReference.getMaximumTimeInStore
@Override public long getMaximumTimeInStore() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getMaximumTimeInStore"); long maxTime = getMessageItem().getMaximumTimeInStore(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled(...
java
@Override public long getMaximumTimeInStore() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getMaximumTimeInStore"); long maxTime = getMessageItem().getMaximumTimeInStore(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled(...
[ "@", "Override", "public", "long", "getMaximumTimeInStore", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getMaximumTimeInStore\"", ...
Return the maximum time this reference should spend in a ReferenceStream. The expiry time of a message reference is always the same as its referenced item. The referenced item's getMaximumTimeInStore() return will still be the same as it was when it was originally stored - the store time only updates when the message ...
[ "Return", "the", "maximum", "time", "this", "reference", "should", "spend", "in", "a", "ReferenceStream", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java#L326-L338
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java
MessageItemReference.resetEvents
private void resetEvents() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "resetEvents"); // Reset all callbacks PRE_COMMIT_ADD = null; PRE_COMMIT_REMOVE = null; POST_COMMIT_ADD_1 = null; POST_COMMIT_ADD_2 = null; ...
java
private void resetEvents() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "resetEvents"); // Reset all callbacks PRE_COMMIT_ADD = null; PRE_COMMIT_REMOVE = null; POST_COMMIT_ADD_1 = null; POST_COMMIT_ADD_2 = null; ...
[ "private", "void", "resetEvents", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"resetEvents\"", ")", ";", "// Reset all callbacks"...
Reset all callbacks to null.
[ "Reset", "all", "callbacks", "to", "null", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java#L539-L568
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java
MessageItemReference.getProducerConnectionUuid
@Override public SIBUuid12 getProducerConnectionUuid() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getProducerConnectionUuid"); SibTr.exit(tc, "getProducerConnectionUuid"); } return getMessageItem().getProducerCon...
java
@Override public SIBUuid12 getProducerConnectionUuid() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "getProducerConnectionUuid"); SibTr.exit(tc, "getProducerConnectionUuid"); } return getMessageItem().getProducerCon...
[ "@", "Override", "public", "SIBUuid12", "getProducerConnectionUuid", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "tc", ",", "\"getProduce...
Returns the producerConnectionUuid. @return SIBUuid12
[ "Returns", "the", "producerConnectionUuid", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java#L725-L735
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java
MessageItemReference.getMessageItem
private MessageItem getMessageItem() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getMessageItem"); MessageItem msg = null; try { msg = (MessageItem) getReferredItem(); } catch (MessageStoreException e) {...
java
private MessageItem getMessageItem() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getMessageItem"); MessageItem msg = null; try { msg = (MessageItem) getReferredItem(); } catch (MessageStoreException e) {...
[ "private", "MessageItem", "getMessageItem", "(", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr", ".", "entry", "(", "tc", ",", "\"getMessageItem\"", ")", ";", "MessageIte...
Returns the referenced message item
[ "Returns", "the", "referenced", "message", "item" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java#L816-L849
train
OpenLiberty/open-liberty
dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/stat/WSStatsHelper.java
WSStatsHelper.setTextInfoTranslationEnabled
public static void setTextInfoTranslationEnabled(boolean textInfoTranslationEnabled, Locale locale) { com.ibm.ws.pmi.stat.StatsImpl.setEnableNLS(textInfoTranslationEnabled, locale); }
java
public static void setTextInfoTranslationEnabled(boolean textInfoTranslationEnabled, Locale locale) { com.ibm.ws.pmi.stat.StatsImpl.setEnableNLS(textInfoTranslationEnabled, locale); }
[ "public", "static", "void", "setTextInfoTranslationEnabled", "(", "boolean", "textInfoTranslationEnabled", ",", "Locale", "locale", ")", "{", "com", ".", "ibm", ".", "ws", ".", "pmi", ".", "stat", ".", "StatsImpl", ".", "setEnableNLS", "(", "textInfoTranslationEna...
This method allows translation of the textual information. By default translation is enabled using the default Locale. @param textInfoTranslationEnabled enable/disable @param locale Locale to use for translation
[ "This", "method", "allows", "translation", "of", "the", "textual", "information", ".", "By", "default", "translation", "is", "enabled", "using", "the", "default", "Locale", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/stat/WSStatsHelper.java#L61-L63
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/validator/ValidateVisitor.java
ValidateVisitor.ELCheckType
private final static void ELCheckType(final Object obj, final Class<?> type) throws ELException { if (String.class.equals(type)) { ELSupport.coerceToString(obj); } if (ELArithmetic.isNumberType(type)) { ELSupport.coerceToNumber(obj, type); } if (Character.class....
java
private final static void ELCheckType(final Object obj, final Class<?> type) throws ELException { if (String.class.equals(type)) { ELSupport.coerceToString(obj); } if (ELArithmetic.isNumberType(type)) { ELSupport.coerceToNumber(obj, type); } if (Character.class....
[ "private", "final", "static", "void", "ELCheckType", "(", "final", "Object", "obj", ",", "final", "Class", "<", "?", ">", "type", ")", "throws", "ELException", "{", "if", "(", "String", ".", "class", ".", "equals", "(", "type", ")", ")", "{", "ELSuppor...
method used to replace ELSupport.checkType
[ "method", "used", "to", "replace", "ELSupport", ".", "checkType" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/validator/ValidateVisitor.java#L1772-L1788
train
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/download/RepositoryDownloadUtil.java
RepositoryDownloadUtil.getProductVersion
public static String getProductVersion(RepositoryResource installResource) { String resourceVersion = null; try { Collection<ProductDefinition> pdList = new ArrayList<ProductDefinition>(); for (ProductInfo pi : ProductInfo.getAllProductInfo().values()) { pdList.ad...
java
public static String getProductVersion(RepositoryResource installResource) { String resourceVersion = null; try { Collection<ProductDefinition> pdList = new ArrayList<ProductDefinition>(); for (ProductInfo pi : ProductInfo.getAllProductInfo().values()) { pdList.ad...
[ "public", "static", "String", "getProductVersion", "(", "RepositoryResource", "installResource", ")", "{", "String", "resourceVersion", "=", "null", ";", "try", "{", "Collection", "<", "ProductDefinition", ">", "pdList", "=", "new", "ArrayList", "<", "ProductDefinit...
Gets the version of the resource using the getAppliesToVersions function. @param installResource - resource in a repository @return - the version of installResource
[ "Gets", "the", "version", "of", "the", "resource", "using", "the", "getAppliesToVersions", "function", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/download/RepositoryDownloadUtil.java#L58-L74
train
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/download/RepositoryDownloadUtil.java
RepositoryDownloadUtil.isPublicAsset
public static boolean isPublicAsset(ResourceType resourceType, RepositoryResource installResource) { if (resourceType.equals(ResourceType.FEATURE) || resourceType.equals(ResourceType.ADDON)) { EsaResource esar = ((EsaResource) installResource); if (esar.getVisibility().equals(Visibility....
java
public static boolean isPublicAsset(ResourceType resourceType, RepositoryResource installResource) { if (resourceType.equals(ResourceType.FEATURE) || resourceType.equals(ResourceType.ADDON)) { EsaResource esar = ((EsaResource) installResource); if (esar.getVisibility().equals(Visibility....
[ "public", "static", "boolean", "isPublicAsset", "(", "ResourceType", "resourceType", ",", "RepositoryResource", "installResource", ")", "{", "if", "(", "resourceType", ".", "equals", "(", "ResourceType", ".", "FEATURE", ")", "||", "resourceType", ".", "equals", "(...
Checks if Feature or Addon has visibility public or install OR checks if the resource is a Product sample or open source to see if it is a public asset. @param resourceType - type of repository @param installResource - represents a resouce in a repository @return - true if the resource is visible to the public
[ "Checks", "if", "Feature", "or", "Addon", "has", "visibility", "public", "or", "install", "OR", "checks", "if", "the", "resource", "is", "a", "Product", "sample", "or", "open", "source", "to", "see", "if", "it", "is", "a", "public", "asset", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/download/RepositoryDownloadUtil.java#L84-L95
train
OpenLiberty/open-liberty
dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/download/RepositoryDownloadUtil.java
RepositoryDownloadUtil.writeResourcesToDiskRepo
public static Map<String, Collection<String>> writeResourcesToDiskRepo(Map<String, Collection<String>> downloaded, File toDir, Map<String, List<List<RepositoryResource>>> installResources, ...
java
public static Map<String, Collection<String>> writeResourcesToDiskRepo(Map<String, Collection<String>> downloaded, File toDir, Map<String, List<List<RepositoryResource>>> installResources, ...
[ "public", "static", "Map", "<", "String", ",", "Collection", "<", "String", ">", ">", "writeResourcesToDiskRepo", "(", "Map", "<", "String", ",", "Collection", "<", "String", ">", ">", "downloaded", ",", "File", "toDir", ",", "Map", "<", "String", ",", "...
The function writes the resources to the downloaded disk repo @param downloaded - collection of string values @param toDir - File that represents the destination directory @param installResources - list of resources in a repository @param productVersion - string value of the version of the product @param eventManager ...
[ "The", "function", "writes", "the", "resources", "to", "the", "downloaded", "disk", "repo" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/download/RepositoryDownloadUtil.java#L234-L257
train
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jaas.common/src/com/ibm/ws/security/jaas/common/internal/JAASLoginContextEntryImpl.java
JAASLoginContextEntryImpl.setJaasLoginModuleConfig
@Reference(cardinality = ReferenceCardinality.MULTIPLE) protected void setJaasLoginModuleConfig(JAASLoginModuleConfig lmc, Map<String, Object> props) { String pid = (String) props.get(KEY_SERVICE_PID); loginModuleMap.put(pid, lmc); }
java
@Reference(cardinality = ReferenceCardinality.MULTIPLE) protected void setJaasLoginModuleConfig(JAASLoginModuleConfig lmc, Map<String, Object> props) { String pid = (String) props.get(KEY_SERVICE_PID); loginModuleMap.put(pid, lmc); }
[ "@", "Reference", "(", "cardinality", "=", "ReferenceCardinality", ".", "MULTIPLE", ")", "protected", "void", "setJaasLoginModuleConfig", "(", "JAASLoginModuleConfig", "lmc", ",", "Map", "<", "String", ",", "Object", ">", "props", ")", "{", "String", "pid", "=",...
SINCE THIS IS A STATIC REFERENCE DS provides enough synchronization so that we don't need to synchronize on the map.
[ "SINCE", "THIS", "IS", "A", "STATIC", "REFERENCE", "DS", "provides", "enough", "synchronization", "so", "that", "we", "don", "t", "need", "to", "synchronize", "on", "the", "map", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaas.common/src/com/ibm/ws/security/jaas/common/internal/JAASLoginContextEntryImpl.java#L55-L59
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/channel/HttpRequestImpl.java
HttpRequestImpl.init
public void init(HttpInboundServiceContext context) { this.message = context.getRequest(); if (this.useEE7Streams) { this.body = new HttpInputStreamEE7(context); } else { this.body = new HttpInputStreamImpl(context); } }
java
public void init(HttpInboundServiceContext context) { this.message = context.getRequest(); if (this.useEE7Streams) { this.body = new HttpInputStreamEE7(context); } else { this.body = new HttpInputStreamImpl(context); } }
[ "public", "void", "init", "(", "HttpInboundServiceContext", "context", ")", "{", "this", ".", "message", "=", "context", ".", "getRequest", "(", ")", ";", "if", "(", "this", ".", "useEE7Streams", ")", "{", "this", ".", "body", "=", "new", "HttpInputStreamE...
Initialize with a new connection. @param context
[ "Initialize", "with", "a", "new", "connection", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/channel/HttpRequestImpl.java#L58-L65
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java
CDIUtils.loadExtension
public static Metadata<Extension> loadExtension(String extensionClass, ClassLoader classloader) { Class<? extends Extension> serviceClass = loadClass(Extension.class, extensionClass, classloader); if (serviceClass == null) { return null; } Extension serviceInstance = prepareI...
java
public static Metadata<Extension> loadExtension(String extensionClass, ClassLoader classloader) { Class<? extends Extension> serviceClass = loadClass(Extension.class, extensionClass, classloader); if (serviceClass == null) { return null; } Extension serviceInstance = prepareI...
[ "public", "static", "Metadata", "<", "Extension", ">", "loadExtension", "(", "String", "extensionClass", ",", "ClassLoader", "classloader", ")", "{", "Class", "<", "?", "extends", "Extension", ">", "serviceClass", "=", "loadClass", "(", "Extension", ".", "class"...
Create the extension and return a metadata for the extension @param extensionClass extension class name @param classloader the class loader that loads the extension @return
[ "Create", "the", "extension", "and", "return", "a", "metadata", "for", "the", "extension" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java#L252-L262
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java
CDIUtils.loadClass
public static <S> Class<? extends S> loadClass(Class<S> expectedType, String serviceClassName, ClassLoader classloader) { Class<?> clazz = null; Class<? extends S> serviceClass = null; try { clazz = classloader.loadClass(serviceClassName); serviceClass = clazz.asSubclass(...
java
public static <S> Class<? extends S> loadClass(Class<S> expectedType, String serviceClassName, ClassLoader classloader) { Class<?> clazz = null; Class<? extends S> serviceClass = null; try { clazz = classloader.loadClass(serviceClassName); serviceClass = clazz.asSubclass(...
[ "public", "static", "<", "S", ">", "Class", "<", "?", "extends", "S", ">", "loadClass", "(", "Class", "<", "S", ">", "expectedType", ",", "String", "serviceClassName", ",", "ClassLoader", "classloader", ")", "{", "Class", "<", "?", ">", "clazz", "=", "...
load the class and then casts to the specified sub class @param expectedType the expected return class @param serviceClassName the service class name @param classloader the class loader that loads the service class @return the subclass specified by expectedType
[ "load", "the", "class", "and", "then", "casts", "to", "the", "specified", "sub", "class" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java#L272-L295
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java
CDIUtils.prepareInstance
public static <S> S prepareInstance(Class<? extends S> serviceClass) { try { final Constructor<? extends S> constructor = serviceClass.getDeclaredConstructor(); AccessController.doPrivileged(new PrivilegedAction<Void>() { @Override public Void run() { ...
java
public static <S> S prepareInstance(Class<? extends S> serviceClass) { try { final Constructor<? extends S> constructor = serviceClass.getDeclaredConstructor(); AccessController.doPrivileged(new PrivilegedAction<Void>() { @Override public Void run() { ...
[ "public", "static", "<", "S", ">", "S", "prepareInstance", "(", "Class", "<", "?", "extends", "S", ">", "serviceClass", ")", "{", "try", "{", "final", "Constructor", "<", "?", "extends", "S", ">", "constructor", "=", "serviceClass", ".", "getDeclaredConstr...
Creates an object of the service class @param serviceClass the service class @return the serviceClass object
[ "Creates", "an", "object", "of", "the", "service", "class" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java#L303-L352
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java
CDIUtils.isVisible
private static boolean isVisible(ClassLoader loaderA, ClassLoader loaderB) { if (loaderB == loaderA || loaderB.getParent() == loaderA) { return true; } return false; }
java
private static boolean isVisible(ClassLoader loaderA, ClassLoader loaderB) { if (loaderB == loaderA || loaderB.getParent() == loaderA) { return true; } return false; }
[ "private", "static", "boolean", "isVisible", "(", "ClassLoader", "loaderA", ",", "ClassLoader", "loaderB", ")", "{", "if", "(", "loaderB", "==", "loaderA", "||", "loaderB", ".", "getParent", "(", ")", "==", "loaderA", ")", "{", "return", "true", ";", "}", ...
return true if loaderA is visible to loaderB
[ "return", "true", "if", "loaderA", "is", "visible", "to", "loaderB" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java#L369-L374
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java
CDIUtils.getAndSetLoader
public static ClassLoader getAndSetLoader(ClassLoader newCL) { ThreadContextAccessor tca = ThreadContextAccessor.getThreadContextAccessor(); //This could be a ClassLoader or the special type UNCHANGED. Object maybeOldCL = tca.pushContextClassLoaderForUnprivileged(newCL); if (maybeOldCL i...
java
public static ClassLoader getAndSetLoader(ClassLoader newCL) { ThreadContextAccessor tca = ThreadContextAccessor.getThreadContextAccessor(); //This could be a ClassLoader or the special type UNCHANGED. Object maybeOldCL = tca.pushContextClassLoaderForUnprivileged(newCL); if (maybeOldCL i...
[ "public", "static", "ClassLoader", "getAndSetLoader", "(", "ClassLoader", "newCL", ")", "{", "ThreadContextAccessor", "tca", "=", "ThreadContextAccessor", ".", "getThreadContextAccessor", "(", ")", ";", "//This could be a ClassLoader or the special type UNCHANGED.", "Object", ...
This method sets the thread context classloader, and returns whatever was the TCCL before it was updated. @param newCL the classloader to put on the thread context. @return the classloader that was origonally on the thread context. @throws SecurityException if <code>RuntimePermission("getClassLoader")</code> or <code>...
[ "This", "method", "sets", "the", "thread", "context", "classloader", "and", "returns", "whatever", "was", "the", "TCCL", "before", "it", "was", "updated", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java#L383-L392
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java
CDIUtils.isWeldProxy
public static boolean isWeldProxy(Object obj) { Class<?> clazz = obj.getClass(); boolean result = isWeldProxy(clazz); return result; }
java
public static boolean isWeldProxy(Object obj) { Class<?> clazz = obj.getClass(); boolean result = isWeldProxy(clazz); return result; }
[ "public", "static", "boolean", "isWeldProxy", "(", "Object", "obj", ")", "{", "Class", "<", "?", ">", "clazz", "=", "obj", ".", "getClass", "(", ")", ";", "boolean", "result", "=", "isWeldProxy", "(", "clazz", ")", ";", "return", "result", ";", "}" ]
Return whether the object is a weld proxy @param obj @return true if it is a proxy
[ "Return", "whether", "the", "object", "is", "a", "weld", "proxy" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java#L411-L415
train
OpenLiberty/open-liberty
dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/injection/WebSphereInjectionServicesImpl.java
WebSphereInjectionServicesImpl.aroundInject
@Override public <T> void aroundInject(final InjectionContext<T> injectionContext) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Annotations: " + injectionContext.getAnnotatedType()); } if (TraceComponent.isAnyTracingEnabled() && tc.isDebugE...
java
@Override public <T> void aroundInject(final InjectionContext<T> injectionContext) { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "Annotations: " + injectionContext.getAnnotatedType()); } if (TraceComponent.isAnyTracingEnabled() && tc.isDebugE...
[ "@", "Override", "public", "<", "T", ">", "void", "aroundInject", "(", "final", "InjectionContext", "<", "T", ">", "injectionContext", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isDebugEnabled", "(", ")", ...
Perform Injection. For EE
[ "Perform", "Injection", ".", "For", "EE" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/injection/WebSphereInjectionServicesImpl.java#L306-L328
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATBifurcatedConsumer.java
CATBifurcatedConsumer.readSet
@Override public void readSet(int requestNumber, SIMessageHandle[] msgHandles) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readSet", new Object[] { requestNumber, msgHandles }); if (TraceComponent.i...
java
@Override public void readSet(int requestNumber, SIMessageHandle[] msgHandles) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readSet", new Object[] { requestNumber, msgHandles }); if (TraceComponent.i...
[ "@", "Override", "public", "void", "readSet", "(", "int", "requestNumber", ",", "SIMessageHandle", "[", "]", "msgHandles", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnabled", "(", ")", ")", "SibTr",...
This method will return a set of messages currently locked by the messaging engine. @param requestNumber @param msgIds
[ "This", "method", "will", "return", "a", "set", "of", "messages", "currently", "locked", "by", "the", "messaging", "engine", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATBifurcatedConsumer.java#L195-L259
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATBifurcatedConsumer.java
CATBifurcatedConsumer.readAndDeleteSet
@Override public void readAndDeleteSet(int requestNumber, SIMessageHandle[] msgHandles, int tran) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readAndDeleteSet", new Object[] { requestNumber, msgHandles, tran...
java
@Override public void readAndDeleteSet(int requestNumber, SIMessageHandle[] msgHandles, int tran) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "readAndDeleteSet", new Object[] { requestNumber, msgHandles, tran...
[ "@", "Override", "public", "void", "readAndDeleteSet", "(", "int", "requestNumber", ",", "SIMessageHandle", "[", "]", "msgHandles", ",", "int", "tran", ")", "{", "if", "(", "TraceComponent", ".", "isAnyTracingEnabled", "(", ")", "&&", "tc", ".", "isEntryEnable...
This method will return and delete a set of messages currently locked by the messaging engine. @param requestNumber @param msgIds @param tran
[ "This", "method", "will", "return", "and", "delete", "a", "set", "of", "messages", "currently", "locked", "by", "the", "messaging", "engine", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATBifurcatedConsumer.java#L269-L344
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/NoRethrowSecurityManager.java
NoRethrowSecurityManager.getCodeSource
public String getCodeSource(ProtectionDomain pd) { CodeSource cs = pd.getCodeSource(); String csStr = null; if (cs == null) { csStr = "null code source"; } else { URL url = cs.getLocation(); if (url == null) { csStr = "null code ...
java
public String getCodeSource(ProtectionDomain pd) { CodeSource cs = pd.getCodeSource(); String csStr = null; if (cs == null) { csStr = "null code source"; } else { URL url = cs.getLocation(); if (url == null) { csStr = "null code ...
[ "public", "String", "getCodeSource", "(", "ProtectionDomain", "pd", ")", "{", "CodeSource", "cs", "=", "pd", ".", "getCodeSource", "(", ")", ";", "String", "csStr", "=", "null", ";", "if", "(", "cs", "==", "null", ")", "{", "csStr", "=", "\"null code sou...
Find the code source based on the protection domain
[ "Find", "the", "code", "source", "based", "on", "the", "protection", "domain" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/NoRethrowSecurityManager.java#L213-L237
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/NoRethrowSecurityManager.java
NoRethrowSecurityManager.permissionToString
public String permissionToString(java.security.CodeSource cs, ClassLoader classloaderClass, PermissionCollection col) { StringBuffer buf = new StringBuffer("ClassLoader: "); if (classloaderClass == null) { buf.append("Primordial Classloader"); }...
java
public String permissionToString(java.security.CodeSource cs, ClassLoader classloaderClass, PermissionCollection col) { StringBuffer buf = new StringBuffer("ClassLoader: "); if (classloaderClass == null) { buf.append("Primordial Classloader"); }...
[ "public", "String", "permissionToString", "(", "java", ".", "security", ".", "CodeSource", "cs", ",", "ClassLoader", "classloaderClass", ",", "PermissionCollection", "col", ")", "{", "StringBuffer", "buf", "=", "new", "StringBuffer", "(", "\"ClassLoader: \"", ")", ...
Print out permissions granted to a CodeSource.
[ "Print", "out", "permissions", "granted", "to", "a", "CodeSource", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/NoRethrowSecurityManager.java#L243-L273
train
OpenLiberty/open-liberty
dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/NoRethrowSecurityManager.java
NoRethrowSecurityManager.isOffendingClass
boolean isOffendingClass(Class<?>[] classes, int j, ProtectionDomain pd2, Permission inPerm) { // Return true if ... return (!classes[j].getName().startsWith("java")) && // as long as not // starting with ...
java
boolean isOffendingClass(Class<?>[] classes, int j, ProtectionDomain pd2, Permission inPerm) { // Return true if ... return (!classes[j].getName().startsWith("java")) && // as long as not // starting with ...
[ "boolean", "isOffendingClass", "(", "Class", "<", "?", ">", "[", "]", "classes", ",", "int", "j", ",", "ProtectionDomain", "pd2", ",", "Permission", "inPerm", ")", "{", "// Return true if ...", "return", "(", "!", "classes", "[", "j", "]", ".", "getName", ...
isOffendingClass determines the offending class from the classes defined in the stack.
[ "isOffendingClass", "determines", "the", "offending", "class", "from", "the", "classes", "defined", "in", "the", "stack", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/NoRethrowSecurityManager.java#L280-L295
train
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaBatchMessageDeletionDispatcher.java
SibRaBatchMessageDeletionDispatcher.cleanup
protected void cleanup() { final String methodName = "cleanup"; if (TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } super.cleanup(); if (_successfulMessages.size() > 0) { try { deleteMessages(getMessageHandles(_succes...
java
protected void cleanup() { final String methodName = "cleanup"; if (TRACE.isEntryEnabled()) { SibTr.entry(this, TRACE, methodName); } super.cleanup(); if (_successfulMessages.size() > 0) { try { deleteMessages(getMessageHandles(_succes...
[ "protected", "void", "cleanup", "(", ")", "{", "final", "String", "methodName", "=", "\"cleanup\"", ";", "if", "(", "TRACE", ".", "isEntryEnabled", "(", ")", ")", "{", "SibTr", ".", "entry", "(", "this", ",", "TRACE", ",", "methodName", ")", ";", "}", ...
Invoked after all messages in the batch have been delivered. Deletes any successful messages.
[ "Invoked", "after", "all", "messages", "in", "the", "batch", "have", "been", "delivered", ".", "Deletes", "any", "successful", "messages", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaBatchMessageDeletionDispatcher.java#L134-L169
train
OpenLiberty/open-liberty
dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/context/ExternalContext.java
ExternalContext.getContextName
public String getContextName() { ExternalContext ctx = _MyFacesExternalContextHelper.firstInstance.get(); if (ctx == null) { throw new UnsupportedOperationException(); } return ctx.getContextName(); }
java
public String getContextName() { ExternalContext ctx = _MyFacesExternalContextHelper.firstInstance.get(); if (ctx == null) { throw new UnsupportedOperationException(); } return ctx.getContextName(); }
[ "public", "String", "getContextName", "(", ")", "{", "ExternalContext", "ctx", "=", "_MyFacesExternalContextHelper", ".", "firstInstance", ".", "get", "(", ")", ";", "if", "(", "ctx", "==", "null", ")", "{", "throw", "new", "UnsupportedOperationException", "(", ...
Returns the name of the underlying context @return the name or null @since 2.0
[ "Returns", "the", "name", "of", "the", "underlying", "context" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/context/ExternalContext.java#L156-L166
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java
AppClassLoader.addTransformer
@Override public boolean addTransformer(final ClassFileTransformer cft) { transformers.add(cft); // Also recursively register with parent(s), until a non-AppClassLoader or GlobalSharedLibrary loader is encountered. if (parent instanceof AppClassLoader) { if (Util.isGlobalSharedL...
java
@Override public boolean addTransformer(final ClassFileTransformer cft) { transformers.add(cft); // Also recursively register with parent(s), until a non-AppClassLoader or GlobalSharedLibrary loader is encountered. if (parent instanceof AppClassLoader) { if (Util.isGlobalSharedL...
[ "@", "Override", "public", "boolean", "addTransformer", "(", "final", "ClassFileTransformer", "cft", ")", "{", "transformers", ".", "add", "(", "cft", ")", ";", "// Also recursively register with parent(s), until a non-AppClassLoader or GlobalSharedLibrary loader is encountered."...
Spring method to register the given ClassFileTransformer on this ClassLoader
[ "Spring", "method", "to", "register", "the", "given", "ClassFileTransformer", "on", "this", "ClassLoader" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L135-L150
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java
AppClassLoader.getBundle
@Override public Bundle getBundle() { return parent instanceof GatewayClassLoader ? ((GatewayClassLoader) parent).getBundle() : parent instanceof LibertyLoader ? ((LibertyLoader) parent).getBundle() : null; }
java
@Override public Bundle getBundle() { return parent instanceof GatewayClassLoader ? ((GatewayClassLoader) parent).getBundle() : parent instanceof LibertyLoader ? ((LibertyLoader) parent).getBundle() : null; }
[ "@", "Override", "public", "Bundle", "getBundle", "(", ")", "{", "return", "parent", "instanceof", "GatewayClassLoader", "?", "(", "(", "GatewayClassLoader", ")", "parent", ")", ".", "getBundle", "(", ")", ":", "parent", "instanceof", "LibertyLoader", "?", "("...
Returns the Bundle of the Top Level class loader
[ "Returns", "the", "Bundle", "of", "the", "Top", "Level", "class", "loader" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L242-L245
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java
AppClassLoader.definePackage
@FFDCIgnore(value = { IllegalArgumentException.class }) private void definePackage(ByteResourceInformation byteResourceInformation, String packageName) { // If the package is in a JAR then we can load the JAR manifest to see what package definitions it's got Manifest manifest = byteResourceInformati...
java
@FFDCIgnore(value = { IllegalArgumentException.class }) private void definePackage(ByteResourceInformation byteResourceInformation, String packageName) { // If the package is in a JAR then we can load the JAR manifest to see what package definitions it's got Manifest manifest = byteResourceInformati...
[ "@", "FFDCIgnore", "(", "value", "=", "{", "IllegalArgumentException", ".", "class", "}", ")", "private", "void", "definePackage", "(", "ByteResourceInformation", "byteResourceInformation", ",", "String", "packageName", ")", "{", "// If the package is in a JAR then we can...
This method will define the package using the byteResourceInformation for a class to get the URL for this package to try to load a manifest. If a manifest can't be loaded from the URL it will create the package with no package versioning or sealing information. @param byteResourceInformation The information about the ...
[ "This", "method", "will", "define", "the", "package", "using", "the", "byteResourceInformation", "for", "a", "class", "to", "get", "the", "URL", "for", "this", "package", "to", "try", "to", "load", "a", "manifest", ".", "If", "a", "manifest", "can", "t", ...
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L439-L455
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java
AppClassLoader.findClassCommonLibraryClassLoaders
@FFDCIgnore(ClassNotFoundException.class) private Class<?> findClassCommonLibraryClassLoaders(String name) throws ClassNotFoundException { for (LibertyLoader cl : delegateLoaders) { try { return cl.findClass(name); } catch (ClassNotFoundException e) { ...
java
@FFDCIgnore(ClassNotFoundException.class) private Class<?> findClassCommonLibraryClassLoaders(String name) throws ClassNotFoundException { for (LibertyLoader cl : delegateLoaders) { try { return cl.findClass(name); } catch (ClassNotFoundException e) { ...
[ "@", "FFDCIgnore", "(", "ClassNotFoundException", ".", "class", ")", "private", "Class", "<", "?", ">", "findClassCommonLibraryClassLoaders", "(", "String", "name", ")", "throws", "ClassNotFoundException", "{", "for", "(", "LibertyLoader", "cl", ":", "delegateLoader...
Search for the class using the common library classloaders. @param name The class name. @return The class, if found. @throws ClassNotFoundException if the class isn't found.
[ "Search", "for", "the", "class", "using", "the", "common", "library", "classloaders", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L534-L545
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java
AppClassLoader.findResourceCommonLibraryClassLoaders
private URL findResourceCommonLibraryClassLoaders(String name) { for (LibertyLoader cl : delegateLoaders) { URL url = cl.findResource(name); if (url != null) { return url; } } // If we reached here, then the resource was not found. retu...
java
private URL findResourceCommonLibraryClassLoaders(String name) { for (LibertyLoader cl : delegateLoaders) { URL url = cl.findResource(name); if (url != null) { return url; } } // If we reached here, then the resource was not found. retu...
[ "private", "URL", "findResourceCommonLibraryClassLoaders", "(", "String", "name", ")", "{", "for", "(", "LibertyLoader", "cl", ":", "delegateLoaders", ")", "{", "URL", "url", "=", "cl", ".", "findResource", "(", "name", ")", ";", "if", "(", "url", "!=", "n...
Search for the resource using the common library classloaders. @param name The resource name. @return The resource, if found. Otherwise null.
[ "Search", "for", "the", "resource", "using", "the", "common", "library", "classloaders", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L554-L563
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java
AppClassLoader.findResourcesCommonLibraryClassLoaders
private CompositeEnumeration<URL> findResourcesCommonLibraryClassLoaders(String name, CompositeEnumeration<URL> enumerations) throws IOException { for (LibertyLoader cl : delegateLoaders) { enumerations.add(cl.findResources(name)); } return enumerations; }
java
private CompositeEnumeration<URL> findResourcesCommonLibraryClassLoaders(String name, CompositeEnumeration<URL> enumerations) throws IOException { for (LibertyLoader cl : delegateLoaders) { enumerations.add(cl.findResources(name)); } return enumerations; }
[ "private", "CompositeEnumeration", "<", "URL", ">", "findResourcesCommonLibraryClassLoaders", "(", "String", "name", ",", "CompositeEnumeration", "<", "URL", ">", "enumerations", ")", "throws", "IOException", "{", "for", "(", "LibertyLoader", "cl", ":", "delegateLoade...
Search for the resources using the common library classloaders. @param name The resource name. @param enumerations A CompositeEnumeration<URL>, which is populated by this method. @return The enumerations parameter is populated by this method and returned. It contains all the resources found under all the common libra...
[ "Search", "for", "the", "resources", "using", "the", "common", "library", "classloaders", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L574-L579
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java
AppClassLoader.copyLibraryElementsToClasspath
private void copyLibraryElementsToClasspath(Library library) { Collection<File> files = library.getFiles(); addToClassPath(library.getContainers()); if (files != null && !!!files.isEmpty()) { for (File file : files) { nativeLibraryFiles.add(file); } ...
java
private void copyLibraryElementsToClasspath(Library library) { Collection<File> files = library.getFiles(); addToClassPath(library.getContainers()); if (files != null && !!!files.isEmpty()) { for (File file : files) { nativeLibraryFiles.add(file); } ...
[ "private", "void", "copyLibraryElementsToClasspath", "(", "Library", "library", ")", "{", "Collection", "<", "File", ">", "files", "=", "library", ".", "getFiles", "(", ")", ";", "addToClassPath", "(", "library", ".", "getContainers", "(", ")", ")", ";", "if...
Takes the Files and Folders from the Library and adds them to the various classloader classpaths @param library
[ "Takes", "the", "Files", "and", "Folders", "from", "the", "Library", "and", "adds", "them", "to", "the", "various", "classloader", "classpaths" ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L597-L613
train
OpenLiberty/open-liberty
dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java
AppClassLoader.checkLib
private static boolean checkLib(final File f, String basename) { boolean fExists = System.getSecurityManager() == null ? f.exists() : AccessController.doPrivileged(new PrivilegedAction<Boolean>() { @Override public Boolean run() { return f.exists(); } ...
java
private static boolean checkLib(final File f, String basename) { boolean fExists = System.getSecurityManager() == null ? f.exists() : AccessController.doPrivileged(new PrivilegedAction<Boolean>() { @Override public Boolean run() { return f.exists(); } ...
[ "private", "static", "boolean", "checkLib", "(", "final", "File", "f", ",", "String", "basename", ")", "{", "boolean", "fExists", "=", "System", ".", "getSecurityManager", "(", ")", "==", "null", "?", "f", ".", "exists", "(", ")", ":", "AccessController", ...
Check if the given file's name matches the given library basename. @param f The file to check. @param basename The basename to compare the file against. @return true if the file exists and its name matches the given basename. false otherwise.
[ "Check", "if", "the", "given", "file", "s", "name", "matches", "the", "given", "library", "basename", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L635-L644
train
OpenLiberty/open-liberty
dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/el/CompositeComponentELUtils.java
CompositeComponentELUtils.removeCompositeComponentForResolver
public static void removeCompositeComponentForResolver(FacesContext facesContext) { List<UIComponent> list = (List<UIComponent>) facesContext.getAttributes().get(CURRENT_COMPOSITE_COMPONENT_KEY); if (list != null) { list.remove(list.size()-1); } }
java
public static void removeCompositeComponentForResolver(FacesContext facesContext) { List<UIComponent> list = (List<UIComponent>) facesContext.getAttributes().get(CURRENT_COMPOSITE_COMPONENT_KEY); if (list != null) { list.remove(list.size()-1); } }
[ "public", "static", "void", "removeCompositeComponentForResolver", "(", "FacesContext", "facesContext", ")", "{", "List", "<", "UIComponent", ">", "list", "=", "(", "List", "<", "UIComponent", ">", ")", "facesContext", ".", "getAttributes", "(", ")", ".", "get",...
Removes the composite component from the attribute map of the FacesContext. @param facesContext
[ "Removes", "the", "composite", "component", "from", "the", "attribute", "map", "of", "the", "FacesContext", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/el/CompositeComponentELUtils.java#L453-L460
train
OpenLiberty/open-liberty
dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java
HttpEndpointImpl.processHttpChainWork
public void processHttpChainWork(boolean enableEndpoint, boolean isPause) { if (enableEndpoint) { // enable the endpoint if it is currently disabled // it's ok if the endpoint is stopped, the config update will occur @ next start endpointState.compareAndSet(DISABLED, ENABLED)...
java
public void processHttpChainWork(boolean enableEndpoint, boolean isPause) { if (enableEndpoint) { // enable the endpoint if it is currently disabled // it's ok if the endpoint is stopped, the config update will occur @ next start endpointState.compareAndSet(DISABLED, ENABLED)...
[ "public", "void", "processHttpChainWork", "(", "boolean", "enableEndpoint", ",", "boolean", "isPause", ")", "{", "if", "(", "enableEndpoint", ")", "{", "// enable the endpoint if it is currently disabled", "// it's ok if the endpoint is stopped, the config update will occur @ next ...
Process HTTP chain work. @param enableEndpoint True to enable the associated HTTP chain. False, to disable it. @param isPause True if this call is being made for pause endpoint processing.
[ "Process", "HTTP", "chain", "work", "." ]
ca725d9903e63645018f9fa8cbda25f60af83a5d
https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java#L344-L376
train