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.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java | ProxyQueueConversationGroupImpl.close | public void close()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close");
synchronized(this)
{
if (closed)
{
idToProxyQueueMap.clear();
factory.groupCloseNotification(conversation, this);
}
} ... | java | public void close()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close");
synchronized(this)
{
if (closed)
{
idToProxyQueueMap.clear();
factory.groupCloseNotification(conversation, this);
}
} ... | [
"public",
"void",
"close",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"close\"",
")",
";",
"synchronized",
"(... | Closes this proxy queue conversation group. | [
"Closes",
"this",
"proxy",
"queue",
"conversation",
"group",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L520-L532 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java | ProxyQueueConversationGroupImpl.conversationDroppedNotification | public void conversationDroppedNotification()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "conversationDroppedNotification");
LinkedList<ProxyQueue> notifyList = null;
synchronized(this)
{
// Make a copy of the map's values to avoid a conc... | java | public void conversationDroppedNotification()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "conversationDroppedNotification");
LinkedList<ProxyQueue> notifyList = null;
synchronized(this)
{
// Make a copy of the map's values to avoid a conc... | [
"public",
"void",
"conversationDroppedNotification",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"conversationDroppedN... | Invoked to notify the group that the conversation that backs it has gone away.
Iterate over the queues and notify them. | [
"Invoked",
"to",
"notify",
"the",
"group",
"that",
"the",
"conversation",
"that",
"backs",
"it",
"has",
"gone",
"away",
".",
"Iterate",
"over",
"the",
"queues",
"and",
"notify",
"them",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/comms/client/proxyqueue/impl/ProxyQueueConversationGroupImpl.java#L538-L557 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElement.java | ConfigElement.setExtraAttribute | public void setExtraAttribute(String name, String value) {
if (extraAttributes == null) {
extraAttributes = new HashMap<QName, Object>();
}
if (value == null) {
extraAttributes.remove(new QName(null, name));
} else {
extraAttributes.put(new QName(null,... | java | public void setExtraAttribute(String name, String value) {
if (extraAttributes == null) {
extraAttributes = new HashMap<QName, Object>();
}
if (value == null) {
extraAttributes.remove(new QName(null, name));
} else {
extraAttributes.put(new QName(null,... | [
"public",
"void",
"setExtraAttribute",
"(",
"String",
"name",
",",
"String",
"value",
")",
"{",
"if",
"(",
"extraAttributes",
"==",
"null",
")",
"{",
"extraAttributes",
"=",
"new",
"HashMap",
"<",
"QName",
",",
"Object",
">",
"(",
")",
";",
"}",
"if",
... | Sets an attribute on this element that does not have an explicit setter.
@param name the name
@param value the value | [
"Sets",
"an",
"attribute",
"on",
"this",
"element",
"that",
"does",
"not",
"have",
"an",
"explicit",
"setter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElement.java#L55-L64 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElement.java | ConfigElement.getValue | public static String getValue(String value) {
if (value == null) {
return null;
}
String v = removeQuotes(value.trim()).trim();
if (v.isEmpty()) {
return null;
}
return v;
} | java | public static String getValue(String value) {
if (value == null) {
return null;
}
String v = removeQuotes(value.trim()).trim();
if (v.isEmpty()) {
return null;
}
return v;
} | [
"public",
"static",
"String",
"getValue",
"(",
"String",
"value",
")",
"{",
"if",
"(",
"value",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"String",
"v",
"=",
"removeQuotes",
"(",
"value",
".",
"trim",
"(",
")",
")",
".",
"trim",
"(",
")",... | Sometimes, the JACL representation of a null or empty value includes
quotation marks. Calling this method will parse away the extra JACL
syntax and return a real or null value
@param value
an unchecked input value
@return the real value described by the input value | [
"Sometimes",
"the",
"JACL",
"representation",
"of",
"a",
"null",
"or",
"empty",
"value",
"includes",
"quotation",
"marks",
".",
"Calling",
"this",
"method",
"will",
"parse",
"away",
"the",
"extra",
"JACL",
"syntax",
"and",
"return",
"a",
"real",
"or",
"null"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElement.java#L75-L84 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElement.java | ConfigElement.removeQuotes | public static String removeQuotes(String arg) {
if (arg == null) {
return null;
}
int length = arg.length();
if (length > 1 && arg.startsWith("\"") && arg.endsWith("\"")) {
return arg.substring(1, length - 1);
}
return arg;
} | java | public static String removeQuotes(String arg) {
if (arg == null) {
return null;
}
int length = arg.length();
if (length > 1 && arg.startsWith("\"") && arg.endsWith("\"")) {
return arg.substring(1, length - 1);
}
return arg;
} | [
"public",
"static",
"String",
"removeQuotes",
"(",
"String",
"arg",
")",
"{",
"if",
"(",
"arg",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"int",
"length",
"=",
"arg",
".",
"length",
"(",
")",
";",
"if",
"(",
"length",
">",
"1",
"&&",
"a... | Removes leading and trailing quotes from the input argument, if they
exist.
@param arg
The argument you want to parse
@return The argument, without leading and trailing quotes | [
"Removes",
"leading",
"and",
"trailing",
"quotes",
"from",
"the",
"input",
"argument",
"if",
"they",
"exist",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.app.manager.springboot/src/com/ibm/ws/app/manager/springboot/container/config/ConfigElement.java#L94-L103 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java | WorkQueueManager.processWork | protected VirtualConnection processWork(TCPBaseRequestContext req, int options) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "processWork");
}
TCPConnLink conn = req.getTCPConnLink();
VirtualConnection vc = null;
if (options != 1... | java | protected VirtualConnection processWork(TCPBaseRequestContext req, int options) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "processWork");
}
TCPConnLink conn = req.getTCPConnLink();
VirtualConnection vc = null;
if (options != 1... | [
"protected",
"VirtualConnection",
"processWork",
"(",
"TCPBaseRequestContext",
"req",
",",
"int",
"options",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",... | Processes the request. If the request is already associated with
a work queue - send it there. Otherwise round robin requests
amongst our set of queues.
@param req
@param options
@return VirtualConnections | [
"Processes",
"the",
"request",
".",
"If",
"the",
"request",
"is",
"already",
"associated",
"with",
"a",
"work",
"queue",
"-",
"send",
"it",
"there",
".",
"Otherwise",
"round",
"robin",
"requests",
"amongst",
"our",
"set",
"of",
"queues",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java#L288-L311 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java | WorkQueueManager.dispatch | protected boolean dispatch(TCPBaseRequestContext req, IOException ioe) {
if (req.blockedThread) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "dispatcher notifying waiting synch request ");
}
if (ioe != null) {
... | java | protected boolean dispatch(TCPBaseRequestContext req, IOException ioe) {
if (req.blockedThread) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "dispatcher notifying waiting synch request ");
}
if (ioe != null) {
... | [
"protected",
"boolean",
"dispatch",
"(",
"TCPBaseRequestContext",
"req",
",",
"IOException",
"ioe",
")",
"{",
"if",
"(",
"req",
".",
"blockedThread",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled"... | Dispatches requests to workrer threds, or notifies waiting thread.
@param req
@param ioe
@return boolean, true if request was dispatched | [
"Dispatches",
"requests",
"to",
"workrer",
"threds",
"or",
"notifies",
"waiting",
"thread",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java#L733-L747 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java | WorkQueueManager.dispatchWorker | private boolean dispatchWorker(Worker worker) {
ExecutorService executorService = CHFWBundle.getExecutorService();
if (null == executorService) {
if (FrameworkState.isValid()) {
Tr.error(tc, "EXECUTOR_SVC_MISSING");
throw new RuntimeException("Missing executor... | java | private boolean dispatchWorker(Worker worker) {
ExecutorService executorService = CHFWBundle.getExecutorService();
if (null == executorService) {
if (FrameworkState.isValid()) {
Tr.error(tc, "EXECUTOR_SVC_MISSING");
throw new RuntimeException("Missing executor... | [
"private",
"boolean",
"dispatchWorker",
"(",
"Worker",
"worker",
")",
"{",
"ExecutorService",
"executorService",
"=",
"CHFWBundle",
".",
"getExecutorService",
"(",
")",
";",
"if",
"(",
"null",
"==",
"executorService",
")",
"{",
"if",
"(",
"FrameworkState",
".",
... | Dispatch a work item.
@param worker
@return boolean, true if dispatched | [
"Dispatch",
"a",
"work",
"item",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java#L755-L771 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java | WorkQueueManager.queueConnectForSelector | protected void queueConnectForSelector(ConnectInfo connectInfo) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "queueConnectForSelector");
}
try {
moveIntoPosition(connectCount, connect, connectInfo, CS_CONNECTOR);
} catch (IOEx... | java | protected void queueConnectForSelector(ConnectInfo connectInfo) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "queueConnectForSelector");
}
try {
moveIntoPosition(connectCount, connect, connectInfo, CS_CONNECTOR);
} catch (IOEx... | [
"protected",
"void",
"queueConnectForSelector",
"(",
"ConnectInfo",
"connectInfo",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"entry",
"(",
"tc",
",",
"\"queu... | This method is called when work must be added to the connect selector.
@param connectInfo | [
"This",
"method",
"is",
"called",
"when",
"work",
"must",
"be",
"added",
"to",
"the",
"connect",
"selector",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java#L778-L796 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java | WorkQueueManager.createNewThread | protected void createNewThread(ChannelSelector sr, int threadType, int number) {
StartPrivilegedThread privThread = new StartPrivilegedThread(sr, threadType, number, this.tGroup);
AccessController.doPrivileged(privThread);
} | java | protected void createNewThread(ChannelSelector sr, int threadType, int number) {
StartPrivilegedThread privThread = new StartPrivilegedThread(sr, threadType, number, this.tGroup);
AccessController.doPrivileged(privThread);
} | [
"protected",
"void",
"createNewThread",
"(",
"ChannelSelector",
"sr",
",",
"int",
"threadType",
",",
"int",
"number",
")",
"{",
"StartPrivilegedThread",
"privThread",
"=",
"new",
"StartPrivilegedThread",
"(",
"sr",
",",
"threadType",
",",
"number",
",",
"this",
... | Create a new reader thread. Provided so we can support pulling these from a
thread pool
in the SyncWorkQueueManager. This will allow these threads to have
WSTHreadLocal.
@param sr
@param threadType
@param number | [
"Create",
"a",
"new",
"reader",
"thread",
".",
"Provided",
"so",
"we",
"can",
"support",
"pulling",
"these",
"from",
"a",
"thread",
"pool",
"in",
"the",
"SyncWorkQueueManager",
".",
"This",
"will",
"allow",
"these",
"threads",
"to",
"have",
"WSTHreadLocal",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java#L808-L811 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java | WorkQueueManager.workerRun | void workerRun(TCPBaseRequestContext req, IOException ioe) {
if (null == req || req.getTCPConnLink().isClosed()) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Ignoring IO on closed socket: " + req);
}
return;
}
... | java | void workerRun(TCPBaseRequestContext req, IOException ioe) {
if (null == req || req.getTCPConnLink().isClosed()) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
Tr.event(tc, "Ignoring IO on closed socket: " + req);
}
return;
}
... | [
"void",
"workerRun",
"(",
"TCPBaseRequestContext",
"req",
",",
"IOException",
"ioe",
")",
"{",
"if",
"(",
"null",
"==",
"req",
"||",
"req",
".",
"getTCPConnLink",
"(",
")",
".",
"isClosed",
"(",
")",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTrac... | Main worker thread routine.
@param req
@param ioe | [
"Main",
"worker",
"thread",
"routine",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java#L942-L983 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java | WorkQueueManager.dispatchConnect | protected boolean dispatchConnect(ConnectInfo work) {
if (work.getSyncObject() != null) {
// user thread waiting for work
work.getSyncObject().simpleNotify();
return true;
}
// dispatch async work
return dispatchWorker(new Worker(work));
} | java | protected boolean dispatchConnect(ConnectInfo work) {
if (work.getSyncObject() != null) {
// user thread waiting for work
work.getSyncObject().simpleNotify();
return true;
}
// dispatch async work
return dispatchWorker(new Worker(work));
} | [
"protected",
"boolean",
"dispatchConnect",
"(",
"ConnectInfo",
"work",
")",
"{",
"if",
"(",
"work",
".",
"getSyncObject",
"(",
")",
"!=",
"null",
")",
"{",
"// user thread waiting for work",
"work",
".",
"getSyncObject",
"(",
")",
".",
"simpleNotify",
"(",
")"... | This is the entry point where work is added to the connect work list.
As a result, a separate thread from the caller will do the work.
@param work
information about the connect
@return true if request was dispatched, false if not | [
"This",
"is",
"the",
"entry",
"point",
"where",
"work",
"is",
"added",
"to",
"the",
"connect",
"work",
"list",
".",
"As",
"a",
"result",
"a",
"separate",
"thread",
"from",
"the",
"caller",
"will",
"do",
"the",
"work",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.channelfw/src/com/ibm/ws/tcpchannel/internal/WorkQueueManager.java#L1012-L1020 | train |
OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/application/_NavigationUtils.java | _NavigationUtils.getEvaluatedNavigationParameters | public static Map<String, List<String> > getEvaluatedNavigationParameters(
FacesContext facesContext,
Map<String, List<String> > parameters)
{
Map<String,List<String>> evaluatedParameters = null;
if (parameters != null && parameters.size() > 0)
{
evaluate... | java | public static Map<String, List<String> > getEvaluatedNavigationParameters(
FacesContext facesContext,
Map<String, List<String> > parameters)
{
Map<String,List<String>> evaluatedParameters = null;
if (parameters != null && parameters.size() > 0)
{
evaluate... | [
"public",
"static",
"Map",
"<",
"String",
",",
"List",
"<",
"String",
">",
">",
"getEvaluatedNavigationParameters",
"(",
"FacesContext",
"facesContext",
",",
"Map",
"<",
"String",
",",
"List",
"<",
"String",
">",
">",
"parameters",
")",
"{",
"Map",
"<",
"S... | Evaluate all EL expressions found as parameters and return a map that can be used for
redirect or render bookmark links
@param parameters parameter map retrieved from NavigationCase.getParameters()
@return | [
"Evaluate",
"all",
"EL",
"expressions",
"found",
"as",
"parameters",
"and",
"return",
"a",
"map",
"that",
"can",
"be",
"used",
"for",
"redirect",
"or",
"render",
"bookmark",
"links"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/application/_NavigationUtils.java#L37-L72 | train |
OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/application/_NavigationUtils.java | _NavigationUtils._evaluateValueExpressions | private static List<String> _evaluateValueExpressions(FacesContext context, List<String> values)
{
// note that we have to create a new List here, because if we
// change any value on the given List, it will be changed in the
// NavigationCase too and the EL expression won't be evaluated aga... | java | private static List<String> _evaluateValueExpressions(FacesContext context, List<String> values)
{
// note that we have to create a new List here, because if we
// change any value on the given List, it will be changed in the
// NavigationCase too and the EL expression won't be evaluated aga... | [
"private",
"static",
"List",
"<",
"String",
">",
"_evaluateValueExpressions",
"(",
"FacesContext",
"context",
",",
"List",
"<",
"String",
">",
"values",
")",
"{",
"// note that we have to create a new List here, because if we",
"// change any value on the given List, it will be... | Checks the Strings in the List for EL expressions and evaluates them.
Note that the returned List will be a copy of the given List, because
otherwise it will have unwanted side-effects.
@param values
@return | [
"Checks",
"the",
"Strings",
"in",
"the",
"List",
"for",
"EL",
"expressions",
"and",
"evaluates",
"them",
".",
"Note",
"that",
"the",
"returned",
"List",
"will",
"be",
"a",
"copy",
"of",
"the",
"given",
"List",
"because",
"otherwise",
"it",
"will",
"have",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/application/_NavigationUtils.java#L81-L97 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRegistry.java | JSRegistry.register | public void register(JMFEncapsulationManager mgr, int id) {
if (id > JMFPart.MODEL_ID_JMF)
mmmgrTable.put(Integer.valueOf(id - 1), mgr);
else
throw new IllegalArgumentException("model ID cannot be negative");
} | java | public void register(JMFEncapsulationManager mgr, int id) {
if (id > JMFPart.MODEL_ID_JMF)
mmmgrTable.put(Integer.valueOf(id - 1), mgr);
else
throw new IllegalArgumentException("model ID cannot be negative");
} | [
"public",
"void",
"register",
"(",
"JMFEncapsulationManager",
"mgr",
",",
"int",
"id",
")",
"{",
"if",
"(",
"id",
">",
"JMFPart",
".",
"MODEL_ID_JMF",
")",
"mmmgrTable",
".",
"put",
"(",
"Integer",
".",
"valueOf",
"(",
"id",
"-",
"1",
")",
",",
"mgr",
... | Register the JMFEncapsulationManager for a particular Model ID.
@param mgr the JMFEncapsulationManager being registered
@param id the model ID for which registration is occuring | [
"Register",
"the",
"JMFEncapsulationManager",
"for",
"a",
"particular",
"Model",
"ID",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRegistry.java#L82-L87 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRegistry.java | JSRegistry.registerInternal | private void registerInternal(JMFSchema schema) {
schemaTable.set((HashedArray.Element)schema);
Object assoc = schema.getJMFType().getAssociation();
if (assoc != null)
associations.put(assoc, schema);
} | java | private void registerInternal(JMFSchema schema) {
schemaTable.set((HashedArray.Element)schema);
Object assoc = schema.getJMFType().getAssociation();
if (assoc != null)
associations.put(assoc, schema);
} | [
"private",
"void",
"registerInternal",
"(",
"JMFSchema",
"schema",
")",
"{",
"schemaTable",
".",
"set",
"(",
"(",
"HashedArray",
".",
"Element",
")",
"schema",
")",
";",
"Object",
"assoc",
"=",
"schema",
".",
"getJMFType",
"(",
")",
".",
"getAssociation",
... | Subroutine used by register and registerAll | [
"Subroutine",
"used",
"by",
"register",
"and",
"registerAll"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRegistry.java#L117-L122 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRegistry.java | JSRegistry.isPresent | private boolean isPresent(JMFSchema schema) throws JMFSchemaIdException {
long id = schema.getID();
JMFSchema reg = (JMFSchema)schemaTable.get(id);
if (reg != null) {
// We are assuming that collisions on key don't happen
if (!schema.equals(reg)) {
// The schema id is a 64bit SHA-1 deriv... | java | private boolean isPresent(JMFSchema schema) throws JMFSchemaIdException {
long id = schema.getID();
JMFSchema reg = (JMFSchema)schemaTable.get(id);
if (reg != null) {
// We are assuming that collisions on key don't happen
if (!schema.equals(reg)) {
// The schema id is a 64bit SHA-1 deriv... | [
"private",
"boolean",
"isPresent",
"(",
"JMFSchema",
"schema",
")",
"throws",
"JMFSchemaIdException",
"{",
"long",
"id",
"=",
"schema",
".",
"getID",
"(",
")",
";",
"JMFSchema",
"reg",
"=",
"(",
"JMFSchema",
")",
"schemaTable",
".",
"get",
"(",
"id",
")",
... | to the same schema. | [
"to",
"the",
"same",
"schema",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSRegistry.java#L128-L150 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java | EncodingUtils.getLocales | public static Vector getLocales(HttpServletRequest req) {
init();
String acceptLanguage = req.getHeader("Accept-Language");
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {
logger.logp(Level.FINE, CLASS_NAME,"getLocales", "Accept-Language --> "... | java | public static Vector getLocales(HttpServletRequest req) {
init();
String acceptLanguage = req.getHeader("Accept-Language");
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {
logger.logp(Level.FINE, CLASS_NAME,"getLocales", "Accept-Language --> "... | [
"public",
"static",
"Vector",
"getLocales",
"(",
"HttpServletRequest",
"req",
")",
"{",
"init",
"(",
")",
";",
"String",
"acceptLanguage",
"=",
"req",
".",
"getHeader",
"(",
"\"Accept-Language\"",
")",
";",
"if",
"(",
"com",
".",
"ibm",
".",
"ejs",
".",
... | Returns a Vector of locales from the passed in request object.
@param req The request object to extract the locales from.
@return The extracted locales. | [
"Returns",
"a",
"Vector",
"of",
"locales",
"from",
"the",
"passed",
"in",
"request",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java#L218-L257 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java | EncodingUtils.processAcceptLanguage | public static Vector processAcceptLanguage(String acceptLanguage) {
init();
StringTokenizer languageTokenizer = new StringTokenizer(acceptLanguage, ",");
TreeMap map = new TreeMap(Collections.reverseOrder());
while (languageTokenizer.hasMoreTokens()) {
String language = languag... | java | public static Vector processAcceptLanguage(String acceptLanguage) {
init();
StringTokenizer languageTokenizer = new StringTokenizer(acceptLanguage, ",");
TreeMap map = new TreeMap(Collections.reverseOrder());
while (languageTokenizer.hasMoreTokens()) {
String language = languag... | [
"public",
"static",
"Vector",
"processAcceptLanguage",
"(",
"String",
"acceptLanguage",
")",
"{",
"init",
"(",
")",
";",
"StringTokenizer",
"languageTokenizer",
"=",
"new",
"StringTokenizer",
"(",
"acceptLanguage",
",",
"\",\"",
")",
";",
"TreeMap",
"map",
"=",
... | Processes the accept languages in a passed in String into a Vector object.
@param acceptLanguage The accept language String to process.
@return The processed accept languages. | [
"Processes",
"the",
"accept",
"languages",
"in",
"a",
"passed",
"in",
"String",
"into",
"a",
"Vector",
"object",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java#L266-L324 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java | EncodingUtils.extractLocales | public static Vector extractLocales(Vector languages, boolean secure) {
init();
Enumeration e = languages.elements();
Vector l = new Vector();
while (e.hasMoreElements()) {
Vector langVector = (Vector) e.nextElement();
Enumeration enumeration = langVector.elements()... | java | public static Vector extractLocales(Vector languages, boolean secure) {
init();
Enumeration e = languages.elements();
Vector l = new Vector();
while (e.hasMoreElements()) {
Vector langVector = (Vector) e.nextElement();
Enumeration enumeration = langVector.elements()... | [
"public",
"static",
"Vector",
"extractLocales",
"(",
"Vector",
"languages",
",",
"boolean",
"secure",
")",
"{",
"init",
"(",
")",
";",
"Enumeration",
"e",
"=",
"languages",
".",
"elements",
"(",
")",
";",
"Vector",
"l",
"=",
"new",
"Vector",
"(",
")",
... | This method will validate the values.
Validate language and country values as alphanumeric.
Validate variant value as alphanumeric , '_' ,and '-'
Add appropriate values in Locale upon validation.
Extract the locales from a passed in language Vector.
@param languages The language Vector to extract the locales from.
... | [
"This",
"method",
"will",
"validate",
"the",
"values",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java#L350-L392 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java | EncodingUtils.getEncodingFromLocale | public static String getEncodingFromLocale(Locale locale) {
init();
if (locale == cachedLocale) {
return cachedEncoding;
}
String encoding = null;
/*(String) _localeMap.get(locale.toString());
if (encoding == null) {
encoding = (String) _localeMap.g... | java | public static String getEncodingFromLocale(Locale locale) {
init();
if (locale == cachedLocale) {
return cachedEncoding;
}
String encoding = null;
/*(String) _localeMap.get(locale.toString());
if (encoding == null) {
encoding = (String) _localeMap.g... | [
"public",
"static",
"String",
"getEncodingFromLocale",
"(",
"Locale",
"locale",
")",
"{",
"init",
"(",
")",
";",
"if",
"(",
"locale",
"==",
"cachedLocale",
")",
"{",
"return",
"cachedEncoding",
";",
"}",
"String",
"encoding",
"=",
"null",
";",
"/*(String) _l... | Get the encoding for a passed in locale.
@param locale The locale.
@return The encoding. | [
"Get",
"the",
"encoding",
"for",
"a",
"passed",
"in",
"locale",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java#L425-L453 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java | EncodingUtils.getJvmConverter | public static String getJvmConverter(String encoding) {
init();
//String converter = (String) _converterMap.get(encoding.toLowerCase());
String converter = null;
com.ibm.wsspi.http.EncodingUtils encodingUtils = com.ibm.ws.webcontainer.osgi.WebContainer.getEncodingUtils();
if (encodingUtil... | java | public static String getJvmConverter(String encoding) {
init();
//String converter = (String) _converterMap.get(encoding.toLowerCase());
String converter = null;
com.ibm.wsspi.http.EncodingUtils encodingUtils = com.ibm.ws.webcontainer.osgi.WebContainer.getEncodingUtils();
if (encodingUtil... | [
"public",
"static",
"String",
"getJvmConverter",
"(",
"String",
"encoding",
")",
"{",
"init",
"(",
")",
";",
"//String converter = (String) _converterMap.get(encoding.toLowerCase());",
"String",
"converter",
"=",
"null",
";",
"com",
".",
"ibm",
".",
"wsspi",
".",
"h... | Get the JVM Converter for the specified encoding.
@param encoding The encoding.
@return The converter if it exists, otherwise return the encoding. | [
"Get",
"the",
"JVM",
"Converter",
"for",
"the",
"specified",
"encoding",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java#L462-L477 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java | EncodingUtils.isCharsetSupported | public static boolean isCharsetSupported (String charset){
Boolean supported = (Boolean) supportedEncodingsCache.get(charset);
if(supported != null){
return supported.booleanValue();
}
try{
new String (TEST_CHAR, charset);
supportedEncodingsCache.put(c... | java | public static boolean isCharsetSupported (String charset){
Boolean supported = (Boolean) supportedEncodingsCache.get(charset);
if(supported != null){
return supported.booleanValue();
}
try{
new String (TEST_CHAR, charset);
supportedEncodingsCache.put(c... | [
"public",
"static",
"boolean",
"isCharsetSupported",
"(",
"String",
"charset",
")",
"{",
"Boolean",
"supported",
"=",
"(",
"Boolean",
")",
"supportedEncodingsCache",
".",
"get",
"(",
"charset",
")",
";",
"if",
"(",
"supported",
"!=",
"null",
")",
"{",
"retur... | rewritten as part of PK13492 | [
"rewritten",
"as",
"part",
"of",
"PK13492"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.webcontainer/src/com/ibm/wsspi/webcontainer/util/EncodingUtils.java#L487-L503 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java | Utils.compareInstance | public static <T> boolean compareInstance(T t1, T t2) {
if (t1 == t2) {
return true;
}
if (t1 != null && t2 != null && t1.equals(t2)) {
return true;
}
return false;
} | java | public static <T> boolean compareInstance(T t1, T t2) {
if (t1 == t2) {
return true;
}
if (t1 != null && t2 != null && t1.equals(t2)) {
return true;
}
return false;
} | [
"public",
"static",
"<",
"T",
">",
"boolean",
"compareInstance",
"(",
"T",
"t1",
",",
"T",
"t2",
")",
"{",
"if",
"(",
"t1",
"==",
"t2",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"t1",
"!=",
"null",
"&&",
"t2",
"!=",
"null",
"&&",
"t1",
... | Compare tow instance. If both are null, still equal
@param t1
@param t2
@return | [
"Compare",
"tow",
"instance",
".",
"If",
"both",
"are",
"null",
"still",
"equal"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java#L28-L37 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java | Utils.compareStrings | public static boolean compareStrings(String s1, String s2) {
if (s1 == s2)
return true;
if (s1 != null && s2 != null && s1.equals(s2))
return true;
return false;
} | java | public static boolean compareStrings(String s1, String s2) {
if (s1 == s2)
return true;
if (s1 != null && s2 != null && s1.equals(s2))
return true;
return false;
} | [
"public",
"static",
"boolean",
"compareStrings",
"(",
"String",
"s1",
",",
"String",
"s2",
")",
"{",
"if",
"(",
"s1",
"==",
"s2",
")",
"return",
"true",
";",
"if",
"(",
"s1",
"!=",
"null",
"&&",
"s2",
"!=",
"null",
"&&",
"s1",
".",
"equals",
"(",
... | Compares two strings for equality. Either or both of the values may be null.
@param s1
@param s2
@return true iff the two strings are equal | [
"Compares",
"two",
"strings",
"for",
"equality",
".",
"Either",
"or",
"both",
"of",
"the",
"values",
"may",
"be",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java#L46-L52 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java | Utils.compareQNames | public static boolean compareQNames(QName qn1, QName qn2) {
if (qn1 == qn2)
return true;
if (qn1 == null || qn2 == null)
return false;
return qn1.equals(qn2);
} | java | public static boolean compareQNames(QName qn1, QName qn2) {
if (qn1 == qn2)
return true;
if (qn1 == null || qn2 == null)
return false;
return qn1.equals(qn2);
} | [
"public",
"static",
"boolean",
"compareQNames",
"(",
"QName",
"qn1",
",",
"QName",
"qn2",
")",
"{",
"if",
"(",
"qn1",
"==",
"qn2",
")",
"return",
"true",
";",
"if",
"(",
"qn1",
"==",
"null",
"||",
"qn2",
"==",
"null",
")",
"return",
"false",
";",
"... | Compares two QNames for equality. Either or both of the values may be null.
@param qn1
@param qn2
@return | [
"Compares",
"two",
"QNames",
"for",
"equality",
".",
"Either",
"or",
"both",
"of",
"the",
"values",
"may",
"be",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java#L61-L67 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java | Utils.compareStringLists | public static boolean compareStringLists(List<String> list1, List<String> list2) {
if (list1 == null && list2 == null)
return true;
if (list1 == null || list2 == null)
return false;
if (list1.size() != list2.size())
return false;
for (int i = 0; i < li... | java | public static boolean compareStringLists(List<String> list1, List<String> list2) {
if (list1 == null && list2 == null)
return true;
if (list1 == null || list2 == null)
return false;
if (list1.size() != list2.size())
return false;
for (int i = 0; i < li... | [
"public",
"static",
"boolean",
"compareStringLists",
"(",
"List",
"<",
"String",
">",
"list1",
",",
"List",
"<",
"String",
">",
"list2",
")",
"{",
"if",
"(",
"list1",
"==",
"null",
"&&",
"list2",
"==",
"null",
")",
"return",
"true",
";",
"if",
"(",
"... | Compares two lists of strings for equality.
@param list1
@param list2
@return true iff each list contains the same strings in the same order | [
"Compares",
"two",
"lists",
"of",
"strings",
"for",
"equality",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java#L76-L90 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java | Utils.compareQNameLists | public static boolean compareQNameLists(List<QName> list1, List<QName> list2) {
if (list1 == list2)
return true;
if (list1 == null || list2 == null)
return false;
if (list1.size() != list2.size())
return false;
for (int i = 0; i < list1.size(); i++) {... | java | public static boolean compareQNameLists(List<QName> list1, List<QName> list2) {
if (list1 == list2)
return true;
if (list1 == null || list2 == null)
return false;
if (list1.size() != list2.size())
return false;
for (int i = 0; i < list1.size(); i++) {... | [
"public",
"static",
"boolean",
"compareQNameLists",
"(",
"List",
"<",
"QName",
">",
"list1",
",",
"List",
"<",
"QName",
">",
"list2",
")",
"{",
"if",
"(",
"list1",
"==",
"list2",
")",
"return",
"true",
";",
"if",
"(",
"list1",
"==",
"null",
"||",
"li... | Compares two lists of QNames for equality.
@param list1
@param list2
@return true iff each list contains the same QName values in the same order | [
"Compares",
"two",
"lists",
"of",
"QNames",
"for",
"equality",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java#L99-L113 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java | Utils.compareLists | public static <T> boolean compareLists(List<T> list1, List<T> list2) {
if (list1 == list2)
return true;
if (list1 == null || list2 == null)
return false;
if (list1.size() != list2.size())
return false;
for (int i = 0; i < list1.size(); i++) {
... | java | public static <T> boolean compareLists(List<T> list1, List<T> list2) {
if (list1 == list2)
return true;
if (list1 == null || list2 == null)
return false;
if (list1.size() != list2.size())
return false;
for (int i = 0; i < list1.size(); i++) {
... | [
"public",
"static",
"<",
"T",
">",
"boolean",
"compareLists",
"(",
"List",
"<",
"T",
">",
"list1",
",",
"List",
"<",
"T",
">",
"list2",
")",
"{",
"if",
"(",
"list1",
"==",
"list2",
")",
"return",
"true",
";",
"if",
"(",
"list1",
"==",
"null",
"||... | Compare two lists
@param list1
@param list2
@return | [
"Compare",
"two",
"lists"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/metadata/Utils.java#L122-L136 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/config/CacheProcessor.java | CacheProcessor.preProcess | public boolean preProcess(ConfigEntry configEntry) {
boolean valid = true;
// there is no override, use the default processorData
if (configEntry.processorData == null)
configEntry.processorData = new Object[BASE_SLOTS];
//persistToDisk ... | java | public boolean preProcess(ConfigEntry configEntry) {
boolean valid = true;
// there is no override, use the default processorData
if (configEntry.processorData == null)
configEntry.processorData = new Object[BASE_SLOTS];
//persistToDisk ... | [
"public",
"boolean",
"preProcess",
"(",
"ConfigEntry",
"configEntry",
")",
"{",
"boolean",
"valid",
"=",
"true",
";",
"// there is no override, use the default processorData",
"if",
"(",
"configEntry",
".",
"processorData",
"==",
"null",
")",
"configEntry",
".",
"proc... | preprocess any data | [
"preprocess",
"any",
"data"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/config/CacheProcessor.java#L107-L130 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractConsumerKey.java | AbstractConsumerKey.getConsumerSet | public JSConsumerSet getConsumerSet()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getConsumerSet");
SibTr.exit(tc, "getConsumerSet", consumerSet);
}
return consumerSet;
} | java | public JSConsumerSet getConsumerSet()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getConsumerSet");
SibTr.exit(tc, "getConsumerSet", consumerSet);
}
return consumerSet;
} | [
"public",
"JSConsumerSet",
"getConsumerSet",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getConsumerSet\"",
")",
";",
"Si... | Returns the consumerSet.
@return consumerSet | [
"Returns",
"the",
"consumerSet",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/AbstractConsumerKey.java#L119-L127 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java | TreeMap.size | public long size(Transaction transaction)
throws ObjectManagerException
{
// No trace because this is used by toString(), and hence by trace itself;
long sizeFound; // For return;
synchronized (this) {
sizeFound = availableSize;
// Move through th... | java | public long size(Transaction transaction)
throws ObjectManagerException
{
// No trace because this is used by toString(), and hence by trace itself;
long sizeFound; // For return;
synchronized (this) {
sizeFound = availableSize;
// Move through th... | [
"public",
"long",
"size",
"(",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"// No trace because this is used by toString(), and hence by trace itself;",
"long",
"sizeFound",
";",
"// For return;",
"synchronized",
"(",
"this",
")",
"{",
"sizeFou... | Returns the number of key-value mappings in this map , which ara available to
the transaction.
@param transaction which sees the tree as this size.
@return the number of key-value mappings in this map.
@exception ObjectManagerException
@see com.ibm.ws.objectManager.Collection#size(com.ibm.ws.objectManager.Transaction... | [
"Returns",
"the",
"number",
"of",
"key",
"-",
"value",
"mappings",
"in",
"this",
"map",
"which",
"ara",
"available",
"to",
"the",
"transaction",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L222-L243 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java | TreeMap.isEmpty | public synchronized boolean isEmpty(Transaction transaction)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "isEmpty"
, new Object[] { transaction });
... | java | public synchronized boolean isEmpty(Transaction transaction)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "isEmpty"
, new Object[] { transaction });
... | [
"public",
"synchronized",
"boolean",
"isEmpty",
"(",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry... | Determines if the tree is empty as viewed by the transaction.
Returns true if there are no entries visible to the transaction and false
if there are entries visible.
@param transaction the transaction which sees the tree as empty.
@return true if no entries are visible, false if there are entries visible.
@exception O... | [
"Determines",
"if",
"the",
"tree",
"is",
"empty",
"as",
"viewed",
"by",
"the",
"transaction",
".",
"Returns",
"true",
"if",
"there",
"are",
"no",
"entries",
"visible",
"to",
"the",
"transaction",
"and",
"false",
"if",
"there",
"are",
"entries",
"visible",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L266-L285 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java | TreeMap.getEntry | private Entry getEntry(Object key)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getEntry"
, new Object[] { key });
Entry entry = (Entry) super.... | java | private Entry getEntry(Object key)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "getEntry"
, new Object[] { key });
Entry entry = (Entry) super.... | [
"private",
"Entry",
"getEntry",
"(",
"Object",
"key",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
"(",
"this",
",",
"c... | Returns the first Entry matching the key or null if the map
does not contain an entry for the key. The entry returned may be uncommited.
@param key whose Entry is to be returned.
@return Entry matching the key or null if there is none.
@exception ObjectManagerException | [
"Returns",
"the",
"first",
"Entry",
"matching",
"the",
"key",
"or",
"null",
"if",
"the",
"map",
"does",
"not",
"contain",
"an",
"entry",
"for",
"the",
"key",
".",
"The",
"entry",
"returned",
"may",
"be",
"uncommited",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L485-L513 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java | TreeMap.putDuplicate | public synchronized void putDuplicate(Object key,
Token value,
Transaction transaction)
throws ObjectManagerException {
put(key,
value,
transaction,
true);
} | java | public synchronized void putDuplicate(Object key,
Token value,
Transaction transaction)
throws ObjectManagerException {
put(key,
value,
transaction,
true);
} | [
"public",
"synchronized",
"void",
"putDuplicate",
"(",
"Object",
"key",
",",
"Token",
"value",
",",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"put",
"(",
"key",
",",
"value",
",",
"transaction",
",",
"true",
")",
";",
"}"
] | Associates the specified value with the specified key in this map. If the map previously contained a mapping for
this key, the old value is left alone and a new one added.
@param key with which the specified value is to be associated.
@param value to be associated with the specified key.
@param transaction the put wil... | [
"Associates",
"the",
"specified",
"value",
"with",
"the",
"specified",
"key",
"in",
"this",
"map",
".",
"If",
"the",
"map",
"previously",
"contained",
"a",
"mapping",
"for",
"this",
"key",
"the",
"old",
"value",
"is",
"left",
"alone",
"and",
"a",
"new",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L555-L564 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java | TreeMap.add | private void add(Object key,
Token value,
Entry currentEntry,
Transaction transaction,
long logSpaceDelta)
throws ObjectManagerException {
final String methodName = "add";
if (Tracing.isAnyTracingEnab... | java | private void add(Object key,
Token value,
Entry currentEntry,
Transaction transaction,
long logSpaceDelta)
throws ObjectManagerException {
final String methodName = "add";
if (Tracing.isAnyTracingEnab... | [
"private",
"void",
"add",
"(",
"Object",
"key",
",",
"Token",
"value",
",",
"Entry",
"currentEntry",
",",
"Transaction",
"transaction",
",",
"long",
"logSpaceDelta",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"add\"",
"... | Add a new value to the tree at a point where they key is after all less than or equal keys and below the
currentEntry.
@param key for the value.
@param value to be added.
@param currentEntry which starts the search.
@param transaction controlling the addition.
@param logSpaceDelta the change in log space to be reserve... | [
"Add",
"a",
"new",
"value",
"to",
"the",
"tree",
"at",
"a",
"point",
"where",
"they",
"key",
"is",
"after",
"all",
"less",
"than",
"or",
"equal",
"keys",
"and",
"below",
"the",
"currentEntry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L845-L914 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java | TreeMap.undoPut | private void undoPut()
throws ObjectManagerException {
final String methodName = "undoPut";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, methodName);
// Give back all of the remaining space.
owningToken.objectStor... | java | private void undoPut()
throws ObjectManagerException {
final String methodName = "undoPut";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass, methodName);
// Give back all of the remaining space.
owningToken.objectStor... | [
"private",
"void",
"undoPut",
"(",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"undoPut\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",... | Reverse the action of addition to the map,
used after an add has failed to log anything.
@throws ObjectManagerException | [
"Reverse",
"the",
"action",
"of",
"addition",
"to",
"the",
"map",
"used",
"after",
"an",
"add",
"has",
"failed",
"to",
"log",
"anything",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L922-L933 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java | TreeMap.clear | public synchronized void clear(Transaction transaction)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "clear"
+ "transaction=" + transaction + "(Transac... | java | public synchronized void clear(Transaction transaction)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cclass
, "clear"
+ "transaction=" + transaction + "(Transac... | [
"public",
"synchronized",
"void",
"clear",
"(",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")",
"trace",
".",
"entry",
... | Removes all mappings from this TreeMap, which are visible to the transaction. Actual deletion
of the entries takes place when the transaction commits.
@param transaction to control clearing the map.
@exception ObjectManagerException If thrown the map may be partially cleared. | [
"Removes",
"all",
"mappings",
"from",
"this",
"TreeMap",
"which",
"are",
"visible",
"to",
"the",
"transaction",
".",
"Actual",
"deletion",
"of",
"the",
"entries",
"takes",
"place",
"when",
"the",
"transaction",
"commits",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L1067-L1088 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java | TreeMap.compare | private int compare(Object key1, Object key2) {
if (comparator == null)
return ((Comparable) key1).compareTo(key2);
else
return comparator.compare(key1, key2);
} | java | private int compare(Object key1, Object key2) {
if (comparator == null)
return ((Comparable) key1).compareTo(key2);
else
return comparator.compare(key1, key2);
} | [
"private",
"int",
"compare",
"(",
"Object",
"key1",
",",
"Object",
"key2",
")",
"{",
"if",
"(",
"comparator",
"==",
"null",
")",
"return",
"(",
"(",
"Comparable",
")",
"key1",
")",
".",
"compareTo",
"(",
"key2",
")",
";",
"else",
"return",
"comparator"... | Use the comparator to compare the two keys.
@param key1 first key to compare.
@param key2 second key to compare.
@return int -1 if key1 < key2 0 if key1 = key2 1 if key1 > key2 | [
"Use",
"the",
"comparator",
"to",
"compare",
"the",
"two",
"keys",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L1564-L1569 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java | TreeMap.deleteEntry | private synchronized void deleteEntry(Entry entry,
Transaction transaction)
throws ObjectManagerException {
final String methodName = "deleteEntry";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cc... | java | private synchronized void deleteEntry(Entry entry,
Transaction transaction)
throws ObjectManagerException {
final String methodName = "deleteEntry";
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this, cc... | [
"private",
"synchronized",
"void",
"deleteEntry",
"(",
"Entry",
"entry",
",",
"Transaction",
"transaction",
")",
"throws",
"ObjectManagerException",
"{",
"final",
"String",
"methodName",
"=",
"\"deleteEntry\"",
";",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
... | Finalise removal of an Entry from the tree.
We have already logged the deletion of the Entry so we now need to rechain those Entries
currently refering to it and rebalance the tree. This may be redriven at recovery so we
need to detect if the entry has already been removed from the tree so that we don't
disrupt other ... | [
"Finalise",
"removal",
"of",
"an",
"Entry",
"from",
"the",
"tree",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L1857-L1890 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java | TreeMap.move | void move(AbstractTreeMap.Entry x, AbstractTreeMap.Entry y)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.exit(this,
cclass,
"move",
new Object[] { x, y }... | java | void move(AbstractTreeMap.Entry x, AbstractTreeMap.Entry y)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.exit(this,
cclass,
"move",
new Object[] { x, y }... | [
"void",
"move",
"(",
"AbstractTreeMap",
".",
"Entry",
"x",
",",
"AbstractTreeMap",
".",
"Entry",
"y",
")",
"throws",
"ObjectManagerException",
"{",
"if",
"(",
"Tracing",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"trace",
".",
"isEntryEnabled",
"(",
")",
")... | Move x to occupy the position currently held by y.
@param x to be moved.
@param y location to be moved to.
@throws ObjectManagerException | [
"Move",
"x",
"to",
"occupy",
"the",
"position",
"currently",
"held",
"by",
"y",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L1950-L1985 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java | TreeMap.print | public synchronized void print(java.io.PrintWriter printWriter)
{
printWriter.println("Dump of TreeMap size=" + size + "(long)");
try {
for (Iterator iterator = entrySet().iterator(); iterator.hasNext();) {
Entry entry = (Entry) iterator.next();
printWrite... | java | public synchronized void print(java.io.PrintWriter printWriter)
{
printWriter.println("Dump of TreeMap size=" + size + "(long)");
try {
for (Iterator iterator = entrySet().iterator(); iterator.hasNext();) {
Entry entry = (Entry) iterator.next();
printWrite... | [
"public",
"synchronized",
"void",
"print",
"(",
"java",
".",
"io",
".",
"PrintWriter",
"printWriter",
")",
"{",
"printWriter",
".",
"println",
"(",
"\"Dump of TreeMap size=\"",
"+",
"size",
"+",
"\"(long)\"",
")",
";",
"try",
"{",
"for",
"(",
"Iterator",
"it... | Print a dump of the Map.
@param printWriter to be written to. | [
"Print",
"a",
"dump",
"of",
"the",
"Map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.msgstore/src/com/ibm/ws/objectManager/TreeMap.java#L2038-L2053 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/RESTHelper.java | RESTHelper.containsMultipleRoutingContext | public static boolean containsMultipleRoutingContext(RESTRequest request) {
//TODO: add a check for query string
if (request instanceof ServletRESTRequestWithParams) {
ServletRESTRequestWithParams req = (ServletRESTRequestWithParams) request;
return (req.getParam(ClientProvider.... | java | public static boolean containsMultipleRoutingContext(RESTRequest request) {
//TODO: add a check for query string
if (request instanceof ServletRESTRequestWithParams) {
ServletRESTRequestWithParams req = (ServletRESTRequestWithParams) request;
return (req.getParam(ClientProvider.... | [
"public",
"static",
"boolean",
"containsMultipleRoutingContext",
"(",
"RESTRequest",
"request",
")",
"{",
"//TODO: add a check for query string",
"if",
"(",
"request",
"instanceof",
"ServletRESTRequestWithParams",
")",
"{",
"ServletRESTRequestWithParams",
"req",
"=",
"(",
"... | Quick check for multiple-target routing context, without actually fetching all pieces | [
"Quick",
"check",
"for",
"multiple",
"-",
"target",
"routing",
"context",
"without",
"actually",
"fetching",
"all",
"pieces"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/RESTHelper.java#L147-L155 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/RESTHelper.java | RESTHelper.getRoutingContext | public static String[] getRoutingContext(RESTRequest request, boolean errorIfNull) {
//Look for headers first
String targetHost = request.getHeader(ClientProvider.ROUTING_KEY_HOST_NAME);
if (targetHost != null) {
targetHost = URLDecoder(targetHost, null);
String targetUse... | java | public static String[] getRoutingContext(RESTRequest request, boolean errorIfNull) {
//Look for headers first
String targetHost = request.getHeader(ClientProvider.ROUTING_KEY_HOST_NAME);
if (targetHost != null) {
targetHost = URLDecoder(targetHost, null);
String targetUse... | [
"public",
"static",
"String",
"[",
"]",
"getRoutingContext",
"(",
"RESTRequest",
"request",
",",
"boolean",
"errorIfNull",
")",
"{",
"//Look for headers first",
"String",
"targetHost",
"=",
"request",
".",
"getHeader",
"(",
"ClientProvider",
".",
"ROUTING_KEY_HOST_NAM... | This helper method looks for the routing keys in the HTTP headers first, and then fallsback into looking at the query string.
@param request of the current request
@return a 3-sized String array containing hostName, userDir and serverName respectively, or null if no routing context was found. | [
"This",
"helper",
"method",
"looks",
"for",
"the",
"routing",
"keys",
"in",
"the",
"HTTP",
"headers",
"first",
"and",
"then",
"fallsback",
"into",
"looking",
"at",
"the",
"query",
"string",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jmx.connector.server.rest/src/com/ibm/ws/jmx/connector/server/rest/helpers/RESTHelper.java#L171-L237 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java | RendererUtils.isDefaultAttributeValue | public static boolean isDefaultAttributeValue(Object value)
{
if (value == null)
{
return true;
}
else if (value instanceof Boolean)
{
return !((Boolean) value).booleanValue();
}
else if (value instanceof Number)
{
i... | java | public static boolean isDefaultAttributeValue(Object value)
{
if (value == null)
{
return true;
}
else if (value instanceof Boolean)
{
return !((Boolean) value).booleanValue();
}
else if (value instanceof Number)
{
i... | [
"public",
"static",
"boolean",
"isDefaultAttributeValue",
"(",
"Object",
"value",
")",
"{",
"if",
"(",
"value",
"==",
"null",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"value",
"instanceof",
"Boolean",
")",
"{",
"return",
"!",
"(",
"(",
... | See JSF Spec. 8.5 Table 8-1
@param value
@return boolean | [
"See",
"JSF",
"Spec",
".",
"8",
".",
"5",
"Table",
"8",
"-",
"1"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L495-L533 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java | RendererUtils.findUIOutputConverter | public static Converter findUIOutputConverter(FacesContext facesContext,
UIOutput component) throws FacesException
{
return _SharedRendererUtils.findUIOutputConverter(facesContext,
component);
} | java | public static Converter findUIOutputConverter(FacesContext facesContext,
UIOutput component) throws FacesException
{
return _SharedRendererUtils.findUIOutputConverter(facesContext,
component);
} | [
"public",
"static",
"Converter",
"findUIOutputConverter",
"(",
"FacesContext",
"facesContext",
",",
"UIOutput",
"component",
")",
"throws",
"FacesException",
"{",
"return",
"_SharedRendererUtils",
".",
"findUIOutputConverter",
"(",
"facesContext",
",",
"component",
")",
... | Find the proper Converter for the given UIOutput component.
@return the Converter or null if no Converter specified or needed
@throws FacesException if the Converter could not be created | [
"Find",
"the",
"proper",
"Converter",
"for",
"the",
"given",
"UIOutput",
"component",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L540-L545 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java | RendererUtils.findUISelectManyConverter | public static Converter findUISelectManyConverter(
FacesContext facesContext, UISelectMany component)
{
return findUISelectManyConverter(facesContext, component, false);
} | java | public static Converter findUISelectManyConverter(
FacesContext facesContext, UISelectMany component)
{
return findUISelectManyConverter(facesContext, component, false);
} | [
"public",
"static",
"Converter",
"findUISelectManyConverter",
"(",
"FacesContext",
"facesContext",
",",
"UISelectMany",
"component",
")",
"{",
"return",
"findUISelectManyConverter",
"(",
"facesContext",
",",
"component",
",",
"false",
")",
";",
"}"
] | Calls findUISelectManyConverter with considerValueType = false.
@param facesContext
@param component
@return | [
"Calls",
"findUISelectManyConverter",
"with",
"considerValueType",
"=",
"false",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L553-L557 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java | RendererUtils.findUISelectManyConverter | public static Converter findUISelectManyConverter(
FacesContext facesContext, UISelectMany component,
boolean considerValueType)
{
// If the component has an attached Converter, use it.
Converter converter = component.getConverter();
if (converter != null)
{
... | java | public static Converter findUISelectManyConverter(
FacesContext facesContext, UISelectMany component,
boolean considerValueType)
{
// If the component has an attached Converter, use it.
Converter converter = component.getConverter();
if (converter != null)
{
... | [
"public",
"static",
"Converter",
"findUISelectManyConverter",
"(",
"FacesContext",
"facesContext",
",",
"UISelectMany",
"component",
",",
"boolean",
"considerValueType",
")",
"{",
"// If the component has an attached Converter, use it.",
"Converter",
"converter",
"=",
"componen... | Find proper Converter for the entries in the associated Collection or array of
the given UISelectMany as specified in API Doc of UISelectMany.
If considerValueType is true, the valueType attribute will be used
in addition to the standard algorithm to get a valid converter.
@return the Converter or null if no Converter... | [
"Find",
"proper",
"Converter",
"for",
"the",
"entries",
"in",
"the",
"associated",
"Collection",
"or",
"array",
"of",
"the",
"given",
"UISelectMany",
"as",
"specified",
"in",
"API",
"Doc",
"of",
"UISelectMany",
".",
"If",
"considerValueType",
"is",
"true",
"th... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L568-L655 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java | RendererUtils.getSelectedValuesAsSet | public static Set getSelectedValuesAsSet(FacesContext context,
UIComponent component, Converter converter,
UISelectMany uiSelectMany)
{
Object selectedValues = uiSelectMany.getValue();
return internalSubmittedOrSelectedValuesAsSet(context, component,
converte... | java | public static Set getSelectedValuesAsSet(FacesContext context,
UIComponent component, Converter converter,
UISelectMany uiSelectMany)
{
Object selectedValues = uiSelectMany.getValue();
return internalSubmittedOrSelectedValuesAsSet(context, component,
converte... | [
"public",
"static",
"Set",
"getSelectedValuesAsSet",
"(",
"FacesContext",
"context",
",",
"UIComponent",
"component",
",",
"Converter",
"converter",
",",
"UISelectMany",
"uiSelectMany",
")",
"{",
"Object",
"selectedValues",
"=",
"uiSelectMany",
".",
"getValue",
"(",
... | Convenient utility method that returns the currently selected values of
a UISelectMany component as a Set, of which the contains method can then be
easily used to determine if a value is currently selected.
Calling the contains method of this Set with the item value
as argument returns true if this item is selected.
@p... | [
"Convenient",
"utility",
"method",
"that",
"returns",
"the",
"currently",
"selected",
"values",
"of",
"a",
"UISelectMany",
"component",
"as",
"a",
"Set",
"of",
"which",
"the",
"contains",
"method",
"can",
"then",
"be",
"easily",
"used",
"to",
"determine",
"if"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L837-L845 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java | RendererUtils.getConvertedStringValue | public static String getConvertedStringValue(FacesContext context,
UIComponent component, Converter converter, Object value)
{
if (converter == null)
{
if (value == null)
{
return "";
}
else if (value instanceof String)
... | java | public static String getConvertedStringValue(FacesContext context,
UIComponent component, Converter converter, Object value)
{
if (converter == null)
{
if (value == null)
{
return "";
}
else if (value instanceof String)
... | [
"public",
"static",
"String",
"getConvertedStringValue",
"(",
"FacesContext",
"context",
",",
"UIComponent",
"component",
",",
"Converter",
"converter",
",",
"Object",
"value",
")",
"{",
"if",
"(",
"converter",
"==",
"null",
")",
"{",
"if",
"(",
"value",
"==",... | Convenient utility method that returns the currently given value as String,
using the given converter.
Especially usefull for dealing with primitive types. | [
"Convenient",
"utility",
"method",
"that",
"returns",
"the",
"currently",
"given",
"value",
"as",
"String",
"using",
"the",
"given",
"converter",
".",
"Especially",
"usefull",
"for",
"dealing",
"with",
"primitive",
"types",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L852-L872 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java | RendererUtils.getConvertedStringValue | public static String getConvertedStringValue(FacesContext context,
UIComponent component, Converter converter, SelectItem selectItem)
{
return getConvertedStringValue(context, component, converter,
selectItem.getValue());
} | java | public static String getConvertedStringValue(FacesContext context,
UIComponent component, Converter converter, SelectItem selectItem)
{
return getConvertedStringValue(context, component, converter,
selectItem.getValue());
} | [
"public",
"static",
"String",
"getConvertedStringValue",
"(",
"FacesContext",
"context",
",",
"UIComponent",
"component",
",",
"Converter",
"converter",
",",
"SelectItem",
"selectItem",
")",
"{",
"return",
"getConvertedStringValue",
"(",
"context",
",",
"component",
"... | Convenient utility method that returns the currently given SelectItem value
as String, using the given converter.
Especially usefull for dealing with primitive types. | [
"Convenient",
"utility",
"method",
"that",
"returns",
"the",
"currently",
"given",
"SelectItem",
"value",
"as",
"String",
"using",
"the",
"given",
"converter",
".",
"Especially",
"usefull",
"for",
"dealing",
"with",
"primitive",
"types",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L879-L884 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java | RendererUtils.getConvertedUISelectManyValue | public static Object getConvertedUISelectManyValue(
FacesContext facesContext, UISelectMany selectMany,
Object submittedValue, boolean considerValueType)
throws ConverterException
{
if (submittedValue == null)
{
return null;
}
if (!(su... | java | public static Object getConvertedUISelectManyValue(
FacesContext facesContext, UISelectMany selectMany,
Object submittedValue, boolean considerValueType)
throws ConverterException
{
if (submittedValue == null)
{
return null;
}
if (!(su... | [
"public",
"static",
"Object",
"getConvertedUISelectManyValue",
"(",
"FacesContext",
"facesContext",
",",
"UISelectMany",
"selectMany",
",",
"Object",
"submittedValue",
",",
"boolean",
"considerValueType",
")",
"throws",
"ConverterException",
"{",
"if",
"(",
"submittedValu... | Gets the converted value of a UISelectMany component.
@param facesContext
@param selectMany
@param submittedValue
@param considerValueType if true, the valueType attribute of the component will
also be used (applies for Tomahawk UISelectMany components)
@return
@throws ConverterException | [
"Gets",
"the",
"converted",
"value",
"of",
"a",
"UISelectMany",
"component",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L1045-L1064 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java | RendererUtils.initPartialValidationAndModelUpdate | public static void initPartialValidationAndModelUpdate(
UIComponent component, FacesContext facesContext)
{
String actionFor = (String) component.getAttributes().get("actionFor");
if (actionFor != null)
{
List li = convertIdsToClientIds(actionFor, facesContext, compo... | java | public static void initPartialValidationAndModelUpdate(
UIComponent component, FacesContext facesContext)
{
String actionFor = (String) component.getAttributes().get("actionFor");
if (actionFor != null)
{
List li = convertIdsToClientIds(actionFor, facesContext, compo... | [
"public",
"static",
"void",
"initPartialValidationAndModelUpdate",
"(",
"UIComponent",
"component",
",",
"FacesContext",
"facesContext",
")",
"{",
"String",
"actionFor",
"=",
"(",
"String",
")",
"component",
".",
"getAttributes",
"(",
")",
".",
"get",
"(",
"\"acti... | check for partial validation or model update attributes being set
and initialize the request-map accordingly.
SubForms will work with this information. | [
"check",
"for",
"partial",
"validation",
"or",
"model",
"update",
"attributes",
"being",
"set",
"and",
"initialize",
"the",
"request",
"-",
"map",
"accordingly",
".",
"SubForms",
"will",
"work",
"with",
"this",
"information",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L1414-L1437 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java | RendererUtils.getResponseStateManager | @Deprecated
public static ResponseStateManager getResponseStateManager(
FacesContext facesContext, String renderKitId)
throws FacesException
{
RenderKit renderKit = facesContext.getRenderKit();
if (renderKit == null)
{
// look for the renderkit in the... | java | @Deprecated
public static ResponseStateManager getResponseStateManager(
FacesContext facesContext, String renderKitId)
throws FacesException
{
RenderKit renderKit = facesContext.getRenderKit();
if (renderKit == null)
{
// look for the renderkit in the... | [
"@",
"Deprecated",
"public",
"static",
"ResponseStateManager",
"getResponseStateManager",
"(",
"FacesContext",
"facesContext",
",",
"String",
"renderKitId",
")",
"throws",
"FacesException",
"{",
"RenderKit",
"renderKit",
"=",
"facesContext",
".",
"getRenderKit",
"(",
")... | Gets the ResponseStateManager for the renderKit Id provided
@deprecated use FacesContext.getRenderKit() or getRenderKitFactory().getRenderKit(
context, renderKitId).getResponseStateManager() | [
"Gets",
"the",
"ResponseStateManager",
"for",
"the",
"renderKit",
"Id",
"provided"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L1455-L1496 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java | RendererUtils.toResourceUri | static public String toResourceUri(FacesContext facesContext, Object o)
{
if (o == null)
{
return null;
}
String uri = o.toString();
// *** EL Coercion problem ***
// If icon or image attribute was declared with #{resource[]} and that expression
... | java | static public String toResourceUri(FacesContext facesContext, Object o)
{
if (o == null)
{
return null;
}
String uri = o.toString();
// *** EL Coercion problem ***
// If icon or image attribute was declared with #{resource[]} and that expression
... | [
"static",
"public",
"String",
"toResourceUri",
"(",
"FacesContext",
"facesContext",
",",
"Object",
"o",
")",
"{",
"if",
"(",
"o",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"String",
"uri",
"=",
"o",
".",
"toString",
"(",
")",
";",
"// *** EL ... | Coerces an object into a resource URI, calling the view-handler. | [
"Coerces",
"an",
"object",
"into",
"a",
"resource",
"URI",
"calling",
"the",
"view",
"-",
"handler",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/shared/renderkit/RendererUtils.java#L1571-L1614 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/LibertyCustomizeBindingOutInterceptor.java | LibertyCustomizeBindingOutInterceptor.trim | public final static String trim(String value)
{
String result = null;
if (null != value)
{
result = value.trim();
}
return result;
} | java | public final static String trim(String value)
{
String result = null;
if (null != value)
{
result = value.trim();
}
return result;
} | [
"public",
"final",
"static",
"String",
"trim",
"(",
"String",
"value",
")",
"{",
"String",
"result",
"=",
"null",
";",
"if",
"(",
"null",
"!=",
"value",
")",
"{",
"result",
"=",
"value",
".",
"trim",
"(",
")",
";",
"}",
"return",
"result",
";",
"}"... | remove the blank characters in the left and right for a given value.
@param value
@return | [
"remove",
"the",
"blank",
"characters",
"in",
"the",
"left",
"and",
"right",
"for",
"a",
"given",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/LibertyCustomizeBindingOutInterceptor.java#L106-L115 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/LibertyCustomizeBindingOutInterceptor.java | LibertyCustomizeBindingOutInterceptor.customizeClientProperties | protected void customizeClientProperties(Message message) {
if (null == configPropertiesSet) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "There are no client properties.");
}
return;
}
Bus bus = message.ge... | java | protected void customizeClientProperties(Message message) {
if (null == configPropertiesSet) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "There are no client properties.");
}
return;
}
Bus bus = message.ge... | [
"protected",
"void",
"customizeClientProperties",
"(",
"Message",
"message",
")",
"{",
"if",
"(",
"null",
"==",
"configPropertiesSet",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")"... | Customize the client properties.
@param message | [
"Customize",
"the",
"client",
"properties",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/LibertyCustomizeBindingOutInterceptor.java#L196-L218 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/LibertyCustomizeBindingOutInterceptor.java | LibertyCustomizeBindingOutInterceptor.customizePortAddress | protected void customizePortAddress(Message message) {
String address = null;
PortComponentRefInfo portInfo = null;
if (null != wsrInfo) {
QName portQName = getPortQName(message);
if (null != portQName) {
portInfo = wsrInfo.getPortComponentRefInfo(portQNa... | java | protected void customizePortAddress(Message message) {
String address = null;
PortComponentRefInfo portInfo = null;
if (null != wsrInfo) {
QName portQName = getPortQName(message);
if (null != portQName) {
portInfo = wsrInfo.getPortComponentRefInfo(portQNa... | [
"protected",
"void",
"customizePortAddress",
"(",
"Message",
"message",
")",
"{",
"String",
"address",
"=",
"null",
";",
"PortComponentRefInfo",
"portInfo",
"=",
"null",
";",
"if",
"(",
"null",
"!=",
"wsrInfo",
")",
"{",
"QName",
"portQName",
"=",
"getPortQNam... | Customize the port address
@param message | [
"Customize",
"the",
"port",
"address"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxws.clientcontainer/src/com/ibm/ws/jaxws/client/LibertyCustomizeBindingOutInterceptor.java#L225-L244 | train |
OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.el.3.0/src/javax/el/ExpressionFactory.java | ExpressionFactory.discoverClassName | private static String discoverClassName(ClassLoader tccl) {
String className = null;
// First services API
className = getClassNameServices(tccl);
if (className == null) {
if (IS_SECURITY_ENABLED) {
className = AccessController.doPrivileged(
... | java | private static String discoverClassName(ClassLoader tccl) {
String className = null;
// First services API
className = getClassNameServices(tccl);
if (className == null) {
if (IS_SECURITY_ENABLED) {
className = AccessController.doPrivileged(
... | [
"private",
"static",
"String",
"discoverClassName",
"(",
"ClassLoader",
"tccl",
")",
"{",
"String",
"className",
"=",
"null",
";",
"// First services API",
"className",
"=",
"getClassNameServices",
"(",
"tccl",
")",
";",
"if",
"(",
"className",
"==",
"null",
")"... | Discover the name of class that implements ExpressionFactory.
@param tccl
{@code ClassLoader}
@return Class name. There is default, so it is never {@code null}. | [
"Discover",
"the",
"name",
"of",
"class",
"that",
"implements",
"ExpressionFactory",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.el.3.0/src/javax/el/ExpressionFactory.java#L364-L404 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/EsaParser.java | EsaParser.addBundleManifestRequireCapability | private static void addBundleManifestRequireCapability(FileSystem zipSystem,
Path bundle,
Map<Path, String> requiresMap) throws IOException {
Path extractedJar = null;
try {
... | java | private static void addBundleManifestRequireCapability(FileSystem zipSystem,
Path bundle,
Map<Path, String> requiresMap) throws IOException {
Path extractedJar = null;
try {
... | [
"private",
"static",
"void",
"addBundleManifestRequireCapability",
"(",
"FileSystem",
"zipSystem",
",",
"Path",
"bundle",
",",
"Map",
"<",
"Path",
",",
"String",
">",
"requiresMap",
")",
"throws",
"IOException",
"{",
"Path",
"extractedJar",
"=",
"null",
";",
"tr... | Adds the Require-Capability Strings from a bundle jar to the Map of
Require-Capabilities found
@param zipSystem - the FileSystem mapping to the feature containing this bundle
@param bundle - the bundle within a zipped up feature
@param requiresMap - Map of Path to Require-Capability
@throws IOException | [
"Adds",
"the",
"Require",
"-",
"Capability",
"Strings",
"from",
"a",
"bundle",
"jar",
"to",
"the",
"Map",
"of",
"Require",
"-",
"Capabilities",
"found"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/EsaParser.java#L542-L575 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/EsaParser.java | EsaParser.addSubsystemManifestRequireCapability | private static void addSubsystemManifestRequireCapability(File esa,
Map<Path, String> requiresMap) throws IOException {
String esaLocation = esa.getAbsolutePath();
ZipFile zip = null;
try {
zip = new ZipFile(esaLocation);
... | java | private static void addSubsystemManifestRequireCapability(File esa,
Map<Path, String> requiresMap) throws IOException {
String esaLocation = esa.getAbsolutePath();
ZipFile zip = null;
try {
zip = new ZipFile(esaLocation);
... | [
"private",
"static",
"void",
"addSubsystemManifestRequireCapability",
"(",
"File",
"esa",
",",
"Map",
"<",
"Path",
",",
"String",
">",
"requiresMap",
")",
"throws",
"IOException",
"{",
"String",
"esaLocation",
"=",
"esa",
".",
"getAbsolutePath",
"(",
")",
";",
... | Adds the Require-Capability Strings from a SUBSYSTEM.MF to the Map of
Require-Capabilities found
@param esa - the feature file containing the SUBSYSTEM.MF
@param requiresMap - Map of Path to Require-Capability
@throws IOException | [
"Adds",
"the",
"Require",
"-",
"Capability",
"Strings",
"from",
"a",
"SUBSYSTEM",
".",
"MF",
"to",
"the",
"Map",
"of",
"Require",
"-",
"Capabilities",
"found"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.repository.parsers/src/com/ibm/ws/repository/parsers/EsaParser.java#L585-L613 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtHeaderInjecter.java | JwtHeaderInjecter.filter | @Override
public void filter(ClientRequestContext requestContext) {
//
if (requestContext == null || jwt == null || requestContext.getHeaders().containsKey("Authorization")) {
return;
}
if (header == null || header.equals("")) {
header = "Authorization";
... | java | @Override
public void filter(ClientRequestContext requestContext) {
//
if (requestContext == null || jwt == null || requestContext.getHeaders().containsKey("Authorization")) {
return;
}
if (header == null || header.equals("")) {
header = "Authorization";
... | [
"@",
"Override",
"public",
"void",
"filter",
"(",
"ClientRequestContext",
"requestContext",
")",
"{",
"//",
"if",
"(",
"requestContext",
"==",
"null",
"||",
"jwt",
"==",
"null",
"||",
"requestContext",
".",
"getHeaders",
"(",
")",
".",
"containsKey",
"(",
"\... | Adds the JWT token to the Authorization header in the jax-rs client
requests to propagate the token.
@param requestContext
jax-rs client request context | [
"Adds",
"the",
"JWT",
"token",
"to",
"the",
"Authorization",
"header",
"in",
"the",
"jax",
"-",
"rs",
"client",
"requests",
"to",
"propagate",
"the",
"token",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtHeaderInjecter.java#L73-L90 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java | UrlUtils.urlDecode | public static String urlDecode(String value, String enc) {
return urlDecode(value, enc, false);
} | java | public static String urlDecode(String value, String enc) {
return urlDecode(value, enc, false);
} | [
"public",
"static",
"String",
"urlDecode",
"(",
"String",
"value",
",",
"String",
"enc",
")",
"{",
"return",
"urlDecode",
"(",
"value",
",",
"enc",
",",
"false",
")",
";",
"}"
] | Decodes using URLDecoder - use when queries or form post values are decoded
@param value value to decode
@param enc encoding | [
"Decodes",
"using",
"URLDecoder",
"-",
"use",
"when",
"queries",
"or",
"form",
"post",
"values",
"are",
"decoded"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java#L73-L75 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java | UrlUtils.pathDecode | public static String pathDecode(String value) {
return urlDecode(value, StandardCharsets.UTF_8.name(), true);
} | java | public static String pathDecode(String value) {
return urlDecode(value, StandardCharsets.UTF_8.name(), true);
} | [
"public",
"static",
"String",
"pathDecode",
"(",
"String",
"value",
")",
"{",
"return",
"urlDecode",
"(",
"value",
",",
"StandardCharsets",
".",
"UTF_8",
".",
"name",
"(",
")",
",",
"true",
")",
";",
"}"
] | URL path segments may contain '+' symbols which should not be decoded into ' '
This method replaces '+' with %2B and delegates to URLDecoder
@param value value to decode | [
"URL",
"path",
"segments",
"may",
"contain",
"+",
"symbols",
"which",
"should",
"not",
"be",
"decoded",
"into",
"This",
"method",
"replaces",
"+",
"with",
"%2B",
"and",
"delegates",
"to",
"URLDecoder"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java#L141-L143 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java | UrlUtils.parseQueryString | public static Map<String, String> parseQueryString(String s) {
Map<String, String> ht = new HashMap<String, String>();
StringTokenizer st = new StringTokenizer(s, "&");
while (st.hasMoreTokens()) {
String pair = st.nextToken();
int pos = pair.indexOf('=');
if ... | java | public static Map<String, String> parseQueryString(String s) {
Map<String, String> ht = new HashMap<String, String>();
StringTokenizer st = new StringTokenizer(s, "&");
while (st.hasMoreTokens()) {
String pair = st.nextToken();
int pos = pair.indexOf('=');
if ... | [
"public",
"static",
"Map",
"<",
"String",
",",
"String",
">",
"parseQueryString",
"(",
"String",
"s",
")",
"{",
"Map",
"<",
"String",
",",
"String",
">",
"ht",
"=",
"new",
"HashMap",
"<",
"String",
",",
"String",
">",
"(",
")",
";",
"StringTokenizer",
... | Create a map from String to String that represents the contents of the query
portion of a URL. For each x=y, x is the key and y is the value.
@param s the query part of the URI.
@return the map. | [
"Create",
"a",
"map",
"from",
"String",
"to",
"String",
"that",
"represents",
"the",
"contents",
"of",
"the",
"query",
"portion",
"of",
"a",
"URL",
".",
"For",
"each",
"x",
"=",
"y",
"x",
"is",
"the",
"key",
"and",
"y",
"is",
"the",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java#L152-L166 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java | UrlUtils.getStem | public static String getStem(String baseURI) {
int idx = baseURI.lastIndexOf('/');
String result = baseURI;
if (idx != -1) {
result = baseURI.substring(0, idx);
}
return result;
} | java | public static String getStem(String baseURI) {
int idx = baseURI.lastIndexOf('/');
String result = baseURI;
if (idx != -1) {
result = baseURI.substring(0, idx);
}
return result;
} | [
"public",
"static",
"String",
"getStem",
"(",
"String",
"baseURI",
")",
"{",
"int",
"idx",
"=",
"baseURI",
".",
"lastIndexOf",
"(",
"'",
"'",
")",
";",
"String",
"result",
"=",
"baseURI",
";",
"if",
"(",
"idx",
"!=",
"-",
"1",
")",
"{",
"result",
"... | Return everything in the path up to the last slash in a URI.
@param baseURI
@return the trailing | [
"Return",
"everything",
"in",
"the",
"path",
"up",
"to",
"the",
"last",
"slash",
"in",
"a",
"URI",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jaxrs.2.0.common/src/org/apache/cxf/common/util/UrlUtils.java#L174-L181 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.session/src/com/ibm/ws/session/utils/LRUHashMap.java | LRUHashMap.updateCacheList | private synchronized CacheEntryWrapper updateCacheList(Object key) {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINER)) {
LoggingUtil.SESSION_LOGGER_CORE.entering(methodClassName, methodNames[UPDATE_CACHE_LIST], "key=" + key);
... | java | private synchronized CacheEntryWrapper updateCacheList(Object key) {
if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINER)) {
LoggingUtil.SESSION_LOGGER_CORE.entering(methodClassName, methodNames[UPDATE_CACHE_LIST], "key=" + key);
... | [
"private",
"synchronized",
"CacheEntryWrapper",
"updateCacheList",
"(",
"Object",
"key",
")",
"{",
"if",
"(",
"com",
".",
"ibm",
".",
"ejs",
".",
"ras",
".",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"LoggingUtil",
".",
"SESSION_LOGGER_CORE",... | remove the input entry from it's spot in the list and make it the mru | [
"remove",
"the",
"input",
"entry",
"from",
"it",
"s",
"spot",
"in",
"the",
"list",
"and",
"make",
"it",
"the",
"mru"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.session/src/com/ibm/ws/session/utils/LRUHashMap.java#L372-L403 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaSessionImpl.java | JmsJcaSessionImpl.getSICoreConnection | public SICoreConnection getSICoreConnection() throws IllegalStateException {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "getSICoreConnection");
}
if (_sessionClosed) {
throw new IllegalStateException(NLS.getFormattedMe... | java | public SICoreConnection getSICoreConnection() throws IllegalStateException {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "getSICoreConnection");
}
if (_sessionClosed) {
throw new IllegalStateException(NLS.getFormattedMe... | [
"public",
"SICoreConnection",
"getSICoreConnection",
"(",
")",
"throws",
"IllegalStateException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"this"... | A convenience method that returns the core connection associated with
this session's connection.
@return the core connection
@throws IllegalStateException
if this session has been closed or invalidated | [
"A",
"convenience",
"method",
"that",
"returns",
"the",
"core",
"connection",
"associated",
"with",
"this",
"session",
"s",
"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/JmsJcaSessionImpl.java#L149-L176 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaSessionImpl.java | JmsJcaSessionImpl.dissociate | void dissociate() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "dissociate");
}
_managedConnection = null;
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.exit(this, TRACE, "dissoci... | java | void dissociate() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "dissociate");
}
_managedConnection = null;
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.exit(this, TRACE, "dissoci... | [
"void",
"dissociate",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"this",
",",
"TRACE",
",",
"\"dissociate\"",
")",
";",
"}",
"_... | Dissociates this session from its current managed connection. | [
"Dissociates",
"this",
"session",
"from",
"its",
"current",
"managed",
"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/JmsJcaSessionImpl.java#L797-L809 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaSessionImpl.java | JmsJcaSessionImpl.associate | void associate(final JmsJcaManagedConnection managedConnection) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "associate", managedConnection);
}
if (_managedConnection != null) {
_managedConnection.disassociateSession(t... | java | void associate(final JmsJcaManagedConnection managedConnection) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "associate", managedConnection);
}
if (_managedConnection != null) {
_managedConnection.disassociateSession(t... | [
"void",
"associate",
"(",
"final",
"JmsJcaManagedConnection",
"managedConnection",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"this",
",",
... | Associates this session with a new managed connection.
@param managedConnection
the new managed connection | [
"Associates",
"this",
"session",
"with",
"a",
"new",
"managed",
"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/JmsJcaSessionImpl.java#L817-L832 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaSessionImpl.java | JmsJcaSessionImpl.invalidate | void invalidate() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "invalidate");
}
_sessionInvalidated = true;
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.exit(this, TRACE, "invali... | java | void invalidate() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "invalidate");
}
_sessionInvalidated = true;
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.exit(this, TRACE, "invali... | [
"void",
"invalidate",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"this",
",",
"TRACE",
",",
"\"invalidate\"",
")",
";",
"}",
"_... | Marks this session as invalid. | [
"Marks",
"this",
"session",
"as",
"invalid",
"."
] | 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/JmsJcaSessionImpl.java#L871-L883 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaSessionImpl.java | JmsJcaSessionImpl.setParentConnection | void setParentConnection(final JmsJcaConnectionImpl connection) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "setParentConnection", connection);
}
_connection = connection;
if (TraceComponent.isAnyTracingEnabled() && TRAC... | java | void setParentConnection(final JmsJcaConnectionImpl connection) {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, "setParentConnection", connection);
}
_connection = connection;
if (TraceComponent.isAnyTracingEnabled() && TRAC... | [
"void",
"setParentConnection",
"(",
"final",
"JmsJcaConnectionImpl",
"connection",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"this",
",",
... | Sets the parent connection for this session.
@param connection
the parent connection | [
"Sets",
"the",
"parent",
"connection",
"for",
"this",
"session",
"."
] | 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/JmsJcaSessionImpl.java#L891-L903 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java | InterceptorMetaDataFactory.createInterceptorMetaData | static public InterceptorMetaData createInterceptorMetaData
(EJBMDOrchestrator ejbMDOrchestrator
, BeanMetaData bmd
, final Map<Method, ArrayList<EJBMethodInfoImpl>> methodInfoMap) // d430356
throws EJBConfigurationException
{
... | java | static public InterceptorMetaData createInterceptorMetaData
(EJBMDOrchestrator ejbMDOrchestrator
, BeanMetaData bmd
, final Map<Method, ArrayList<EJBMethodInfoImpl>> methodInfoMap) // d430356
throws EJBConfigurationException
{
... | [
"static",
"public",
"InterceptorMetaData",
"createInterceptorMetaData",
"(",
"EJBMDOrchestrator",
"ejbMDOrchestrator",
",",
"BeanMetaData",
"bmd",
",",
"final",
"Map",
"<",
"Method",
",",
"ArrayList",
"<",
"EJBMethodInfoImpl",
">",
">",
"methodInfoMap",
")",
"// d430356... | Create InterceptorMetaData instance to use for a specified EJB
module and bean meta data object. Also, update EJBMethodInfoImpl
object with method level interceptor data as needed.
<dl>
<dt>pre-conditions:</dt>
<dd>bmd.ivModuleVersion >= BeanMetaData.J2EE_EJB_VERSION_3_0, which means
this method must only be called fo... | [
"Create",
"InterceptorMetaData",
"instance",
"to",
"use",
"for",
"a",
"specified",
"EJB",
"module",
"and",
"bean",
"meta",
"data",
"object",
".",
"Also",
"update",
"EJBMethodInfoImpl",
"object",
"with",
"method",
"level",
"interceptor",
"data",
"as",
"needed",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L259-L369 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java | InterceptorMetaDataFactory.addJCDIInterceptors | private void addJCDIInterceptors()
{
// Must be in a JCDI enabled module, and not a ManagedBean
JCDIHelper jcdiHelper = ivEJBModuleMetaDataImpl.ivJCDIHelper;
if (jcdiHelper != null && !ivBmd.isManagedBean()) // F743-34301.1
{
// Obtain the interceptor to start the interce... | java | private void addJCDIInterceptors()
{
// Must be in a JCDI enabled module, and not a ManagedBean
JCDIHelper jcdiHelper = ivEJBModuleMetaDataImpl.ivJCDIHelper;
if (jcdiHelper != null && !ivBmd.isManagedBean()) // F743-34301.1
{
// Obtain the interceptor to start the interce... | [
"private",
"void",
"addJCDIInterceptors",
"(",
")",
"{",
"// Must be in a JCDI enabled module, and not a ManagedBean",
"JCDIHelper",
"jcdiHelper",
"=",
"ivEJBModuleMetaDataImpl",
".",
"ivJCDIHelper",
";",
"if",
"(",
"jcdiHelper",
"!=",
"null",
"&&",
"!",
"ivBmd",
".",
"... | F743-15628 d649636 | [
"F743",
"-",
"15628",
"d649636"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1154-L1183 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java | InterceptorMetaDataFactory.addLoadedInterceptorClasses | private List<String> addLoadedInterceptorClasses(Class<?>[] classes) // d630717
{
List<String> names = new ArrayList<String>();
for (Class<?> klass : classes)
{
String className = klass.getName();
ivInterceptorNameToClassMap.put(className, klass);
names.ad... | java | private List<String> addLoadedInterceptorClasses(Class<?>[] classes) // d630717
{
List<String> names = new ArrayList<String>();
for (Class<?> klass : classes)
{
String className = klass.getName();
ivInterceptorNameToClassMap.put(className, klass);
names.ad... | [
"private",
"List",
"<",
"String",
">",
"addLoadedInterceptorClasses",
"(",
"Class",
"<",
"?",
">",
"[",
"]",
"classes",
")",
"// d630717",
"{",
"List",
"<",
"String",
">",
"names",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
";",
"for",
"(",... | Adds a class to the list of loaded classes. getInterceptorProxies relies
on every interceptor class either being added via updateNamesToClassMap
or this method.
@param klass the class
@return the list of class names | [
"Adds",
"a",
"class",
"to",
"the",
"list",
"of",
"loaded",
"classes",
".",
"getInterceptorProxies",
"relies",
"on",
"every",
"interceptor",
"class",
"either",
"being",
"added",
"via",
"updateNamesToClassMap",
"or",
"this",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1237-L1248 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java | InterceptorMetaDataFactory.addMethodLevelInterceptors | private ArrayList<String> addMethodLevelInterceptors(Method method, EJBInterceptorBinding methodBinding)
throws EJBConfigurationException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
{
Tr.entry(tc, "ad... | java | private ArrayList<String> addMethodLevelInterceptors(Method method, EJBInterceptorBinding methodBinding)
throws EJBConfigurationException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
{
Tr.entry(tc, "ad... | [
"private",
"ArrayList",
"<",
"String",
">",
"addMethodLevelInterceptors",
"(",
"Method",
"method",
",",
"EJBInterceptorBinding",
"methodBinding",
")",
"throws",
"EJBConfigurationException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEna... | d367572.9 updated for xml and metadata-complete. | [
"d367572",
".",
"9",
"updated",
"for",
"xml",
"and",
"metadata",
"-",
"complete",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1261-L1318 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java | InterceptorMetaDataFactory.updateEJBMethodInfoInterceptorProxies | private void updateEJBMethodInfoInterceptorProxies() // d386227
throws EJBConfigurationException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
{
Tr.entry(tc, "updateEJBMethodInfoInterceptorProxies: " + ivEjbName);
... | java | private void updateEJBMethodInfoInterceptorProxies() // d386227
throws EJBConfigurationException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
{
Tr.entry(tc, "updateEJBMethodInfoInterceptorProxies: " + ivEjbName);
... | [
"private",
"void",
"updateEJBMethodInfoInterceptorProxies",
"(",
")",
"// d386227",
"throws",
"EJBConfigurationException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
".",
... | d367572.9 updated for xml | [
"d367572",
".",
"9",
"updated",
"for",
"xml"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1329-L1376 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java | InterceptorMetaDataFactory.getAroundInterceptorProxies | private InterceptorProxy[] getAroundInterceptorProxies(InterceptorMethodKind kind, Method m)
throws EJBConfigurationException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
{
Tr.entry(tc, "getAroundInter... | java | private InterceptorProxy[] getAroundInterceptorProxies(InterceptorMethodKind kind, Method m)
throws EJBConfigurationException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
{
Tr.entry(tc, "getAroundInter... | [
"private",
"InterceptorProxy",
"[",
"]",
"getAroundInterceptorProxies",
"(",
"InterceptorMethodKind",
"kind",
",",
"Method",
"m",
")",
"throws",
"EJBConfigurationException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")... | Get the array of InterceptorProxy objects required for invoking the
AroundInvoke or AroundTimeout interceptors methods when a method is invoked.
@param kind the interceptor kind; must be either AROUND_INVOKE or AROUND_TIMEOUT
@param m the method
@return array of InterceptorProxy for invoking interceptors or a null re... | [
"Get",
"the",
"array",
"of",
"InterceptorProxy",
"objects",
"required",
"for",
"invoking",
"the",
"AroundInvoke",
"or",
"AroundTimeout",
"interceptors",
"methods",
"when",
"a",
"method",
"is",
"invoked",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1390-L1414 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java | InterceptorMetaDataFactory.processBeanInterceptors | private void processBeanInterceptors() // d630717
throws EJBConfigurationException
{
ivBeanInterceptorProxyMap = createInterceptorProxyMap(ivEjbClass, -1);
// F743-1751 - Not all bean types collect bean methods. For those
// that do, find the methods that are declared on the bean.
... | java | private void processBeanInterceptors() // d630717
throws EJBConfigurationException
{
ivBeanInterceptorProxyMap = createInterceptorProxyMap(ivEjbClass, -1);
// F743-1751 - Not all bean types collect bean methods. For those
// that do, find the methods that are declared on the bean.
... | [
"private",
"void",
"processBeanInterceptors",
"(",
")",
"// d630717",
"throws",
"EJBConfigurationException",
"{",
"ivBeanInterceptorProxyMap",
"=",
"createInterceptorProxyMap",
"(",
"ivEjbClass",
",",
"-",
"1",
")",
";",
"// F743-1751 - Not all bean types collect bean methods. ... | Processes interceptor methods on the bean class.
@throws EJBConfigurationException | [
"Processes",
"interceptor",
"methods",
"on",
"the",
"bean",
"class",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1497-L1530 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java | InterceptorMetaDataFactory.getInterceptorProxies | private InterceptorProxy[] getInterceptorProxies(InterceptorMethodKind kind, List<String> orderedList) // d630717
throws EJBConfigurationException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
{
Tr.entry(tc, "getInterc... | java | private InterceptorProxy[] getInterceptorProxies(InterceptorMethodKind kind, List<String> orderedList) // d630717
throws EJBConfigurationException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
{
Tr.entry(tc, "getInterc... | [
"private",
"InterceptorProxy",
"[",
"]",
"getInterceptorProxies",
"(",
"InterceptorMethodKind",
"kind",
",",
"List",
"<",
"String",
">",
"orderedList",
")",
"// d630717",
"throws",
"EJBConfigurationException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",... | Gets an ordered list of interceptor proxies of the specified kind.
processBeanInterceptors must have been called prior to calling this
method.
@param kind the interceptor kind
@param orderedList an ordered list of interceptor class names, all of
which have been passed through loadInterceptorClass or
addLoadedIntercept... | [
"Gets",
"an",
"ordered",
"list",
"of",
"interceptor",
"proxies",
"of",
"the",
"specified",
"kind",
".",
"processBeanInterceptors",
"must",
"have",
"been",
"called",
"prior",
"to",
"calling",
"this",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1546-L1659 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java | InterceptorMetaDataFactory.validateEJBCallbackMethod | private void validateEJBCallbackMethod(InterceptorMethodKind actualKind, Method m, boolean annotation)
throws EJBConfigurationException
{
// Get the name of the method.
String methodName = m.getName();
// Map the method name into one of the InterceptorMethodKind enum val... | java | private void validateEJBCallbackMethod(InterceptorMethodKind actualKind, Method m, boolean annotation)
throws EJBConfigurationException
{
// Get the name of the method.
String methodName = m.getName();
// Map the method name into one of the InterceptorMethodKind enum val... | [
"private",
"void",
"validateEJBCallbackMethod",
"(",
"InterceptorMethodKind",
"actualKind",
",",
"Method",
"m",
",",
"boolean",
"annotation",
")",
"throws",
"EJBConfigurationException",
"{",
"// Get the name of the method.",
"String",
"methodName",
"=",
"m",
".",
"getName... | d463727 entire method added. | [
"d463727",
"entire",
"method",
"added",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L1934-L1998 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java | InterceptorMetaDataFactory.orderClassLevelInterceptors | private ArrayList<String> orderClassLevelInterceptors() throws EJBConfigurationException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
{
Tr.entry(tc, "orderClassLevelInterceptors");
}
// Create the default... | java | private ArrayList<String> orderClassLevelInterceptors() throws EJBConfigurationException
{
final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
if (isTraceOn && tc.isEntryEnabled())
{
Tr.entry(tc, "orderClassLevelInterceptors");
}
// Create the default... | [
"private",
"ArrayList",
"<",
"String",
">",
"orderClassLevelInterceptors",
"(",
")",
"throws",
"EJBConfigurationException",
"{",
"final",
"boolean",
"isTraceOn",
"=",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
";",
"if",
"(",
"isTraceOn",
"&&",
"tc",
... | Get an ordered list of class level interceptors to be used for this EJB.
@return ordered list of interceptors to use at class level.
@throws EJBConfigurationException is thrown if interceptor-order element is not a
total ordering of the interceptors for this class. | [
"Get",
"an",
"ordered",
"list",
"of",
"class",
"level",
"interceptors",
"to",
"be",
"used",
"for",
"this",
"EJB",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L2120-L2197 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java | InterceptorMetaDataFactory.orderMethodLevelInterceptors | private ArrayList<String> orderMethodLevelInterceptors(Method m) // d630717
throws EJBConfigurationException
{
// Create the default ordering of class level interceptor names
// for this EJB.
ArrayList<String> orderedList = new ArrayList<String>();
// Find the InterceptorBinding... | java | private ArrayList<String> orderMethodLevelInterceptors(Method m) // d630717
throws EJBConfigurationException
{
// Create the default ordering of class level interceptor names
// for this EJB.
ArrayList<String> orderedList = new ArrayList<String>();
// Find the InterceptorBinding... | [
"private",
"ArrayList",
"<",
"String",
">",
"orderMethodLevelInterceptors",
"(",
"Method",
"m",
")",
"// d630717",
"throws",
"EJBConfigurationException",
"{",
"// Create the default ordering of class level interceptor names",
"// for this EJB.",
"ArrayList",
"<",
"String",
">",... | Get an ordered list of method level interceptors for specified
method of an EJB.
@param m the method
@return ordered list of interceptors to use for this method.
@throws EJBConfigurationException is thrown if order is not a total ordering of the interceptors
for the method as required by EJB specification. | [
"Get",
"an",
"ordered",
"list",
"of",
"method",
"level",
"interceptors",
"for",
"specified",
"method",
"of",
"an",
"EJB",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ws/metadata/ejb/InterceptorMetaDataFactory.java#L2210-L2303 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java | CacheProviderWrapper.containsCacheId | @Override
public boolean containsCacheId(Object cacheId) {
boolean found = false;
if (cacheId != null) {
found = this.coreCache.containsCacheId(cacheId);
}
return found;
} | java | @Override
public boolean containsCacheId(Object cacheId) {
boolean found = false;
if (cacheId != null) {
found = this.coreCache.containsCacheId(cacheId);
}
return found;
} | [
"@",
"Override",
"public",
"boolean",
"containsCacheId",
"(",
"Object",
"cacheId",
")",
"{",
"boolean",
"found",
"=",
"false",
";",
"if",
"(",
"cacheId",
"!=",
"null",
")",
"{",
"found",
"=",
"this",
".",
"coreCache",
".",
"containsCacheId",
"(",
"cacheId"... | Returns true if memory cache contains a mapping for the specified cache
ID.
@param cacheId
cache ID is to be tested.
@return <code>true</code> if the memory cache contains the specified
cacheID. | [
"Returns",
"true",
"if",
"memory",
"cache",
"contains",
"a",
"mapping",
"for",
"the",
"specified",
"cache",
"ID",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L96-L103 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java | CacheProviderWrapper.getEntryFromMemory | @Override
public com.ibm.websphere.cache.CacheEntry getEntryFromMemory(Object id) {
final String methodName = "getEntryFromMemory()";
com.ibm.websphere.cache.CacheEntry ce = this.coreCache.get(id);
if (tc.isDebugEnabled()) {
Tr.debug(tc, methodName + " cacheName=" + cacheName + "... | java | @Override
public com.ibm.websphere.cache.CacheEntry getEntryFromMemory(Object id) {
final String methodName = "getEntryFromMemory()";
com.ibm.websphere.cache.CacheEntry ce = this.coreCache.get(id);
if (tc.isDebugEnabled()) {
Tr.debug(tc, methodName + " cacheName=" + cacheName + "... | [
"@",
"Override",
"public",
"com",
".",
"ibm",
".",
"websphere",
".",
"cache",
".",
"CacheEntry",
"getEntryFromMemory",
"(",
"Object",
"id",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"getEntryFromMemory()\"",
";",
"com",
".",
"ibm",
".",
"websphere",
... | This returns the cache entry from memory cache identified by the specified cache id.
It returns null if not in the cache.
@param id The cache id for the entry. The id cannot be null.
@return The entry identified by the cache id. | [
"This",
"returns",
"the",
"cache",
"entry",
"from",
"memory",
"cache",
"identified",
"by",
"the",
"specified",
"cache",
"id",
".",
"It",
"returns",
"null",
"if",
"not",
"in",
"the",
"cache",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L215-L223 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java | CacheProviderWrapper.getAllIds | @Override
public Enumeration getAllIds() {
Set ids = this.coreCache.getCacheIds();
ValueSet idvs = new ValueSet(ids.iterator());
return idvs.elements();
} | java | @Override
public Enumeration getAllIds() {
Set ids = this.coreCache.getCacheIds();
ValueSet idvs = new ValueSet(ids.iterator());
return idvs.elements();
} | [
"@",
"Override",
"public",
"Enumeration",
"getAllIds",
"(",
")",
"{",
"Set",
"ids",
"=",
"this",
".",
"coreCache",
".",
"getCacheIds",
"(",
")",
";",
"ValueSet",
"idvs",
"=",
"new",
"ValueSet",
"(",
"ids",
".",
"iterator",
"(",
")",
")",
";",
"return",... | Returns an enumeration view of the cache IDs contained in the memory cache.
@return An enumeration of cache IDs or empty if there is no cache ID. | [
"Returns",
"an",
"enumeration",
"view",
"of",
"the",
"cache",
"IDs",
"contained",
"in",
"the",
"memory",
"cache",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L230-L235 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java | CacheProviderWrapper.internalInvalidateByDepId | @Override
public void internalInvalidateByDepId(Object id, int causeOfInvalidation, int source, boolean bFireIL) {
final String methodName = "internalInvalidateByDepId()";
if (tc.isDebugEnabled()) {
Tr.debug(tc, methodName + " cacheName=" + cacheName + " id=" + id);
}
thi... | java | @Override
public void internalInvalidateByDepId(Object id, int causeOfInvalidation, int source, boolean bFireIL) {
final String methodName = "internalInvalidateByDepId()";
if (tc.isDebugEnabled()) {
Tr.debug(tc, methodName + " cacheName=" + cacheName + " id=" + id);
}
thi... | [
"@",
"Override",
"public",
"void",
"internalInvalidateByDepId",
"(",
"Object",
"id",
",",
"int",
"causeOfInvalidation",
",",
"int",
"source",
",",
"boolean",
"bFireIL",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"internalInvalidateByDepId()\"",
";",
"if",
"... | This invalidates all entries in this Cache having a dependency
on this dependency id.
@param id dependency id.
@param causeOfInvalidation The cause of invalidation
@param source The source of invalidation (local or remote)
@param bFireIL True to fire invalidation event | [
"This",
"invalidates",
"all",
"entries",
"in",
"this",
"Cache",
"having",
"a",
"dependency",
"on",
"this",
"dependency",
"id",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L466-L474 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java | CacheProviderWrapper.invalidateByTemplate | @Override
public void invalidateByTemplate(String template, boolean waitOnInvalidation) {
final String methodName = "invalidateByTemplate()";
if (tc.isDebugEnabled()) {
Tr.debug(tc, methodName + " cacheName=" + cacheName + " template=" + template);
}
this.invalidateExtern... | java | @Override
public void invalidateByTemplate(String template, boolean waitOnInvalidation) {
final String methodName = "invalidateByTemplate()";
if (tc.isDebugEnabled()) {
Tr.debug(tc, methodName + " cacheName=" + cacheName + " template=" + template);
}
this.invalidateExtern... | [
"@",
"Override",
"public",
"void",
"invalidateByTemplate",
"(",
"String",
"template",
",",
"boolean",
"waitOnInvalidation",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"invalidateByTemplate()\"",
";",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
... | This invalidates all entries in this Cache having a dependency
on this template.
@param template The template name.
@param waitOnInvalidation True indicates that this method should
not return until the invalidations have taken effect on all caches.
False indicates that the invalidations will be queued for later
batch ... | [
"This",
"invalidates",
"all",
"entries",
"in",
"this",
"Cache",
"having",
"a",
"dependency",
"on",
"this",
"template",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L535-L543 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java | CacheProviderWrapper.addAlias | @Override
public void addAlias(Object key, Object[] aliasArray, boolean askPermission, boolean coordinate) {
final String methodName = "addAlias()";
if (this.featureSupport.isAliasSupported()) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, methodName + " cacheName=" + cacheNam... | java | @Override
public void addAlias(Object key, Object[] aliasArray, boolean askPermission, boolean coordinate) {
final String methodName = "addAlias()";
if (this.featureSupport.isAliasSupported()) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, methodName + " cacheName=" + cacheNam... | [
"@",
"Override",
"public",
"void",
"addAlias",
"(",
"Object",
"key",
",",
"Object",
"[",
"]",
"aliasArray",
",",
"boolean",
"askPermission",
",",
"boolean",
"coordinate",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"addAlias()\"",
";",
"if",
"(",
"this... | Adds an alias for the given key in the cache's mapping table. If the alias is already
associated with another key, it will be changed to associate with the new key.
@param key the key assoicated with alias
@param aliasArray the alias to use for lookups
@param askPermission True implies that execution must ask the coor... | [
"Adds",
"an",
"alias",
"for",
"the",
"given",
"key",
"in",
"the",
"cache",
"s",
"mapping",
"table",
".",
"If",
"the",
"alias",
"is",
"already",
"associated",
"with",
"another",
"key",
"it",
"will",
"be",
"changed",
"to",
"associate",
"with",
"the",
"new"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L695-L706 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java | CacheProviderWrapper.removeAlias | @Override
public void removeAlias(Object alias, boolean askPermission, boolean coordinate) {
final String methodName = "removeAlias()";
if (this.featureSupport.isAliasSupported()) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, methodName + " cacheName=" + cacheName + " ERROR b... | java | @Override
public void removeAlias(Object alias, boolean askPermission, boolean coordinate) {
final String methodName = "removeAlias()";
if (this.featureSupport.isAliasSupported()) {
if (tc.isDebugEnabled()) {
Tr.debug(tc, methodName + " cacheName=" + cacheName + " ERROR b... | [
"@",
"Override",
"public",
"void",
"removeAlias",
"(",
"Object",
"alias",
",",
"boolean",
"askPermission",
",",
"boolean",
"coordinate",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"removeAlias()\"",
";",
"if",
"(",
"this",
".",
"featureSupport",
".",
"i... | Removes an alias from the cache mapping.
@param alias the alias assoicated with cache id
@param askPermission True implies that execution must ask the coordinating CacheUnit for permission (No effect on CoreCache).
@param coordinate Indicates that the value should be set in other caches caching this value. (No effect ... | [
"Removes",
"an",
"alias",
"from",
"the",
"cache",
"mapping",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L715-L726 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java | CacheProviderWrapper.getCacheIdsInPushPullTable | @Override
public List getCacheIdsInPushPullTable() {
final String methodName = "getCacheIdsInPushPullTable()";
List list = new ArrayList();
if (this.featureSupport.isReplicationSupported()) {
// TODO write code to support getCacheIdsInPushPullTable function
if (tc.isD... | java | @Override
public List getCacheIdsInPushPullTable() {
final String methodName = "getCacheIdsInPushPullTable()";
List list = new ArrayList();
if (this.featureSupport.isReplicationSupported()) {
// TODO write code to support getCacheIdsInPushPullTable function
if (tc.isD... | [
"@",
"Override",
"public",
"List",
"getCacheIdsInPushPullTable",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"getCacheIdsInPushPullTable()\"",
";",
"List",
"list",
"=",
"new",
"ArrayList",
"(",
")",
";",
"if",
"(",
"this",
".",
"featureSupport",
".",
... | Returns all of the cache IDs in the PushPullTable | [
"Returns",
"all",
"of",
"the",
"cache",
"IDs",
"in",
"the",
"PushPullTable"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L756-L769 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java | CacheProviderWrapper.shouldPull | @Override
public boolean shouldPull(int share, Object id) {
final String methodName = "shouldPull()";
boolean shouldPull = false;
if (this.featureSupport.isReplicationSupported()) {
// TODO write code to support shouldPull function
//if (tc.isDebugEnabled()) {
... | java | @Override
public boolean shouldPull(int share, Object id) {
final String methodName = "shouldPull()";
boolean shouldPull = false;
if (this.featureSupport.isReplicationSupported()) {
// TODO write code to support shouldPull function
//if (tc.isDebugEnabled()) {
... | [
"@",
"Override",
"public",
"boolean",
"shouldPull",
"(",
"int",
"share",
",",
"Object",
"id",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"shouldPull()\"",
";",
"boolean",
"shouldPull",
"=",
"false",
";",
"if",
"(",
"this",
".",
"featureSupport",
".",
... | Return to indicate the entry can be pulled from other remote caches which caching this value.
@param share sharing policy
@id cache ID | [
"Return",
"to",
"indicate",
"the",
"entry",
"can",
"be",
"pulled",
"from",
"other",
"remote",
"caches",
"which",
"caching",
"this",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L794-L807 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java | CacheProviderWrapper.getDepIdsSizeDisk | @Override
public int getDepIdsSizeDisk() {
final String methodName = "getDepIdsSizeDisk()";
if (this.swapToDisk) {
// TODO write code to support getDepIdsSizeDisk function
if (tc.isDebugEnabled()) {
Tr.debug(tc, methodName + " cacheName=" + cacheName + " ERROR... | java | @Override
public int getDepIdsSizeDisk() {
final String methodName = "getDepIdsSizeDisk()";
if (this.swapToDisk) {
// TODO write code to support getDepIdsSizeDisk function
if (tc.isDebugEnabled()) {
Tr.debug(tc, methodName + " cacheName=" + cacheName + " ERROR... | [
"@",
"Override",
"public",
"int",
"getDepIdsSizeDisk",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"getDepIdsSizeDisk()\"",
";",
"if",
"(",
"this",
".",
"swapToDisk",
")",
"{",
"// TODO write code to support getDepIdsSizeDisk function",
"if",
"(",
"tc",
"... | Returns the current dependency IDs size for the disk cache.
@return The current dependency ids size for the disk cache. | [
"Returns",
"the",
"current",
"dependency",
"IDs",
"size",
"for",
"the",
"disk",
"cache",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L1041-L1059 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java | CacheProviderWrapper.getDiskCacheException | @Override
public Exception getDiskCacheException() {
final String methodName = "getDiskCacheException()";
Exception ex = null;
if (this.swapToDisk) {
// TODO write code to support getDiskCacheException function
if (tc.isDebugEnabled()) {
Tr.debug(tc, m... | java | @Override
public Exception getDiskCacheException() {
final String methodName = "getDiskCacheException()";
Exception ex = null;
if (this.swapToDisk) {
// TODO write code to support getDiskCacheException function
if (tc.isDebugEnabled()) {
Tr.debug(tc, m... | [
"@",
"Override",
"public",
"Exception",
"getDiskCacheException",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"getDiskCacheException()\"",
";",
"Exception",
"ex",
"=",
"null",
";",
"if",
"(",
"this",
".",
"swapToDisk",
")",
"{",
"// TODO write code to su... | Returns the exception object from the disk cache because disk cache reported the error.
@return The exception object | [
"Returns",
"the",
"exception",
"object",
"from",
"the",
"disk",
"cache",
"because",
"disk",
"cache",
"reported",
"the",
"error",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L1066-L1085 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java | CacheProviderWrapper.resetPMICounters | @Override
public void resetPMICounters() {
// TODO needs to change if cache provider supports PMI counters.
final String methodName = "resetPMICounters()";
if (tc.isDebugEnabled()) {
Tr.debug(tc, methodName + " cacheName=" + cacheName);
}
} | java | @Override
public void resetPMICounters() {
// TODO needs to change if cache provider supports PMI counters.
final String methodName = "resetPMICounters()";
if (tc.isDebugEnabled()) {
Tr.debug(tc, methodName + " cacheName=" + cacheName);
}
} | [
"@",
"Override",
"public",
"void",
"resetPMICounters",
"(",
")",
"{",
"// TODO needs to change if cache provider supports PMI counters.",
"final",
"String",
"methodName",
"=",
"\"resetPMICounters()\"",
";",
"if",
"(",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"... | This method needs to change if cache provider supports PMI counters. | [
"This",
"method",
"needs",
"to",
"change",
"if",
"cache",
"provider",
"supports",
"PMI",
"counters",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L1485-L1492 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java | CacheProviderWrapper.updateStatisticsForVBC | @Override
public void updateStatisticsForVBC(com.ibm.websphere.cache.CacheEntry cacheEntry, boolean directive) {
// TODO needs to change if cache provider supports PMI and CacheStatisticsListener
final String methodName = "updateStatisticsForVBC()";
Object id = null;
if (cacheEntry !... | java | @Override
public void updateStatisticsForVBC(com.ibm.websphere.cache.CacheEntry cacheEntry, boolean directive) {
// TODO needs to change if cache provider supports PMI and CacheStatisticsListener
final String methodName = "updateStatisticsForVBC()";
Object id = null;
if (cacheEntry !... | [
"@",
"Override",
"public",
"void",
"updateStatisticsForVBC",
"(",
"com",
".",
"ibm",
".",
"websphere",
".",
"cache",
".",
"CacheEntry",
"cacheEntry",
",",
"boolean",
"directive",
")",
"{",
"// TODO needs to change if cache provider supports PMI and CacheStatisticsListener",... | This method needs to change if cache provider supports PMI and CacheStatisticsListener. | [
"This",
"method",
"needs",
"to",
"change",
"if",
"cache",
"provider",
"supports",
"PMI",
"and",
"CacheStatisticsListener",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.dynacache/src/com/ibm/ws/cache/CacheProviderWrapper.java#L1497-L1508 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java | ParseUtil.reduceStringLiteralToken | private static String reduceStringLiteralToken(String image) {
// First, remove leading and trailing ' character
image = image.substring(1, image.length()-1);
// Next, de-double any doubled occurances of the ' character
for (int i = 0; i < image.length(); i++)
if (image.charAt(i) == '\'')
... | java | private static String reduceStringLiteralToken(String image) {
// First, remove leading and trailing ' character
image = image.substring(1, image.length()-1);
// Next, de-double any doubled occurances of the ' character
for (int i = 0; i < image.length(); i++)
if (image.charAt(i) == '\'')
... | [
"private",
"static",
"String",
"reduceStringLiteralToken",
"(",
"String",
"image",
")",
"{",
"// First, remove leading and trailing ' character",
"image",
"=",
"image",
".",
"substring",
"(",
"1",
",",
"image",
".",
"length",
"(",
")",
"-",
"1",
")",
";",
"// Ne... | processing ' characters in the image | [
"processing",
"characters",
"in",
"the",
"image"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java#L40-L49 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java | ParseUtil.parseIntegerLiteral | static Selector parseIntegerLiteral(String val) {
// Determine if this is a long constant by checking the suffix
char tag = val.charAt(val.length()-1);
boolean mustBeLong = false;
if (tag == 'l' || tag == 'L')
{
val = val.substring(0, val.length()-1);
mustBeLong = true;
}
long l... | java | static Selector parseIntegerLiteral(String val) {
// Determine if this is a long constant by checking the suffix
char tag = val.charAt(val.length()-1);
boolean mustBeLong = false;
if (tag == 'l' || tag == 'L')
{
val = val.substring(0, val.length()-1);
mustBeLong = true;
}
long l... | [
"static",
"Selector",
"parseIntegerLiteral",
"(",
"String",
"val",
")",
"{",
"// Determine if this is a long constant by checking the suffix",
"char",
"tag",
"=",
"val",
".",
"charAt",
"(",
"val",
".",
"length",
"(",
")",
"-",
"1",
")",
";",
"boolean",
"mustBeLong... | Parse an integer literal
@param image a String containing the image of the parse token for the literal
@return a Selector representing the literal | [
"Parse",
"an",
"integer",
"literal"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java#L57-L71 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java | ParseUtil.parseFloatingLiteral | static Selector parseFloatingLiteral(String val) {
// Determine if this is a float constant by checking the suffix
Number value; // was NumericValue
char tag = val.charAt(val.length()-1);
if (tag == 'f' || tag == 'F')
value = new Float(val);
else
value = new Double(val);
return new L... | java | static Selector parseFloatingLiteral(String val) {
// Determine if this is a float constant by checking the suffix
Number value; // was NumericValue
char tag = val.charAt(val.length()-1);
if (tag == 'f' || tag == 'F')
value = new Float(val);
else
value = new Double(val);
return new L... | [
"static",
"Selector",
"parseFloatingLiteral",
"(",
"String",
"val",
")",
"{",
"// Determine if this is a float constant by checking the suffix",
"Number",
"value",
";",
"// was NumericValue",
"char",
"tag",
"=",
"val",
".",
"charAt",
"(",
"val",
".",
"length",
"(",
")... | Parse a floating point literal
@param image a String containing the image of the parse token for the literal
@return a Selector representing the literal | [
"Parse",
"a",
"floating",
"point",
"literal"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java#L79-L88 | train |
OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java | ParseUtil.convertSet | static Selector convertSet(Selector expr, List set) {
Selector ans = null;
for (int i = 0; i < set.size(); i++) {
Selector comparand = (Selector) set.get(i);
Selector comparison = new OperatorImpl(Operator.EQ, (Selector) expr.clone(), comparand);
if (ans == null)
ans = comparison;
... | java | static Selector convertSet(Selector expr, List set) {
Selector ans = null;
for (int i = 0; i < set.size(); i++) {
Selector comparand = (Selector) set.get(i);
Selector comparison = new OperatorImpl(Operator.EQ, (Selector) expr.clone(), comparand);
if (ans == null)
ans = comparison;
... | [
"static",
"Selector",
"convertSet",
"(",
"Selector",
"expr",
",",
"List",
"set",
")",
"{",
"Selector",
"ans",
"=",
"null",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"set",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"Selector",
... | Convert a partially parsed set expression into its more primitive form as a
disjunction of equalities.
@param expr the expression whose set membership is being tested
@param set the set itself, as a FastVector containing Selector trees representing
expressions
@return a Selector representing the set expression its m... | [
"Convert",
"a",
"partially",
"parsed",
"set",
"expression",
"into",
"its",
"more",
"primitive",
"form",
"as",
"a",
"disjunction",
"of",
"equalities",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/matchspace/selector/impl/ParseUtil.java#L100-L111 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.