id int32 0 165k | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
66,800 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java | ServerAsyncResult.setResult | void setResult(Future<?> theFuture) { // d650178
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setResult: " + Util.identity(theFuture) + " Future object: " + this);
}
// set result, we are done
ivFuture = theFuture;
done(); // F743... | java | void setResult(Future<?> theFuture) { // d650178
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setResult: " + Util.identity(theFuture) + " Future object: " + this);
}
// set result, we are done
ivFuture = theFuture;
done(); // F743... | [
"void",
"setResult",
"(",
"Future",
"<",
"?",
">",
"theFuture",
")",
"{",
"// d650178",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"set... | did not throw an exception. | [
"did",
"not",
"throw",
"an",
"exception",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java#L413-L422 |
66,801 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java | ServerAsyncResult.setException | void setException(Throwable theException) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setException - Future object: " + this, theException);
}
// set exception, we are done
ivException = theException;
done(); // F743-11774
... | java | void setException(Throwable theException) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "setException - Future object: " + this, theException);
}
// set exception, we are done
ivException = theException;
done(); // F743-11774
... | [
"void",
"setException",
"(",
"Throwable",
"theException",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"setException - Future object: \... | The async method ended with an exception | [
"The",
"async",
"method",
"ended",
"with",
"an",
"exception"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/ServerAsyncResult.java#L425-L434 |
66,802 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/validator/LongRangeValidator.java | LongRangeValidator.saveState | public Object saveState(FacesContext context)
{
if (!initialStateMarked())
{
Object values[] = new Object[2];
values[0] = _maximum;
values[1] = _minimum;
return values;
}
return null;
} | java | public Object saveState(FacesContext context)
{
if (!initialStateMarked())
{
Object values[] = new Object[2];
values[0] = _maximum;
values[1] = _minimum;
return values;
}
return null;
} | [
"public",
"Object",
"saveState",
"(",
"FacesContext",
"context",
")",
"{",
"if",
"(",
"!",
"initialStateMarked",
"(",
")",
")",
"{",
"Object",
"values",
"[",
"]",
"=",
"new",
"Object",
"[",
"2",
"]",
";",
"values",
"[",
"0",
"]",
"=",
"_maximum",
";"... | RESTORE & SAVE STATE | [
"RESTORE",
"&",
"SAVE",
"STATE"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/validator/LongRangeValidator.java#L194-L204 |
66,803 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.security.common/src/com/ibm/ws/messaging/security/Authentication.java | Authentication.logout | public void logout(Subject subject) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, CLASS_NAME + "logout");
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.exit(tc, CLASS_NAME + "logout");
}
} | java | public void logout(Subject subject) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, CLASS_NAME + "logout");
}
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.exit(tc, CLASS_NAME + "logout");
}
} | [
"public",
"void",
"logout",
"(",
"Subject",
"subject",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"CLASS_NAME",
"+",
"\"logout... | Logout method is used only for auditing purpose
@param subject
Subject which needs to be logged out | [
"Logout",
"method",
"is",
"used",
"only",
"for",
"auditing",
"purpose"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security.common/src/com/ibm/ws/messaging/security/Authentication.java#L191-L198 |
66,804 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.security.common/src/com/ibm/ws/messaging/security/Authentication.java | Authentication.setMessagingAuthenticationService | public void setMessagingAuthenticationService(
MessagingAuthenticationService messagingAuthenticationService) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, CLASS_NAME + "setMessagingAuthenticationService",
messagingAuthenticationService);
}
this.messagingAuthentic... | java | public void setMessagingAuthenticationService(
MessagingAuthenticationService messagingAuthenticationService) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, CLASS_NAME + "setMessagingAuthenticationService",
messagingAuthenticationService);
}
this.messagingAuthentic... | [
"public",
"void",
"setMessagingAuthenticationService",
"(",
"MessagingAuthenticationService",
"messagingAuthenticationService",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
... | Set the MessagingAuthenticationService
@param messagingAuthenticationService | [
"Set",
"the",
"MessagingAuthenticationService"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.security.common/src/com/ibm/ws/messaging/security/Authentication.java#L205-L215 |
66,805 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java | AbstractProviderResolver.deactivate | public void deactivate(ComponentContext cc) throws IOException {
ConfigProviderResolver.setInstance(null);
shutdown();
scheduledExecutorServiceRef.deactivate(cc);
} | java | public void deactivate(ComponentContext cc) throws IOException {
ConfigProviderResolver.setInstance(null);
shutdown();
scheduledExecutorServiceRef.deactivate(cc);
} | [
"public",
"void",
"deactivate",
"(",
"ComponentContext",
"cc",
")",
"throws",
"IOException",
"{",
"ConfigProviderResolver",
".",
"setInstance",
"(",
"null",
")",
";",
"shutdown",
"(",
")",
";",
"scheduledExecutorServiceRef",
".",
"deactivate",
"(",
"cc",
")",
";... | Deactivate a context and set the instance to null
@param cc | [
"Deactivate",
"a",
"context",
"and",
"set",
"the",
"instance",
"to",
"null"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java#L90-L94 |
66,806 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java | AbstractProviderResolver.shutdown | public void shutdown() {
synchronized (configCache) {
Set<ClassLoader> allClassLoaders = new HashSet<>();
allClassLoaders.addAll(configCache.keySet()); //create a copy of the keys so that we avoid a ConcurrentModificationException
for (ClassLoader classLoader : allClassLoader... | java | public void shutdown() {
synchronized (configCache) {
Set<ClassLoader> allClassLoaders = new HashSet<>();
allClassLoaders.addAll(configCache.keySet()); //create a copy of the keys so that we avoid a ConcurrentModificationException
for (ClassLoader classLoader : allClassLoader... | [
"public",
"void",
"shutdown",
"(",
")",
"{",
"synchronized",
"(",
"configCache",
")",
"{",
"Set",
"<",
"ClassLoader",
">",
"allClassLoaders",
"=",
"new",
"HashSet",
"<>",
"(",
")",
";",
"allClassLoaders",
".",
"addAll",
"(",
"configCache",
".",
"keySet",
"... | Close down all the configs | [
"Close",
"down",
"all",
"the",
"configs"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java#L144-L155 |
66,807 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java | AbstractProviderResolver.close | private void close(ClassLoader classLoader) {
synchronized (configCache) {
ConfigWrapper config = configCache.remove(classLoader);
if (config != null) {
Set<String> applicationNames = config.getApplications();
for (String app : applicationNames) {
... | java | private void close(ClassLoader classLoader) {
synchronized (configCache) {
ConfigWrapper config = configCache.remove(classLoader);
if (config != null) {
Set<String> applicationNames = config.getApplications();
for (String app : applicationNames) {
... | [
"private",
"void",
"close",
"(",
"ClassLoader",
"classLoader",
")",
"{",
"synchronized",
"(",
"configCache",
")",
"{",
"ConfigWrapper",
"config",
"=",
"configCache",
".",
"remove",
"(",
"classLoader",
")",
";",
"if",
"(",
"config",
"!=",
"null",
")",
"{",
... | Completely close a config for a given classloader | [
"Completely",
"close",
"a",
"config",
"for",
"a",
"given",
"classloader"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java#L187-L199 |
66,808 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java | AbstractProviderResolver.closeConfig | private void closeConfig(Config config) {
if (config instanceof WebSphereConfig) {
try {
((WebSphereConfig) config).close();
} catch (IOException e) {
throw new ConfigException(Tr.formatMessage(tc, "could.not.close.CWMCG0004E", e));
}
}... | java | private void closeConfig(Config config) {
if (config instanceof WebSphereConfig) {
try {
((WebSphereConfig) config).close();
} catch (IOException e) {
throw new ConfigException(Tr.formatMessage(tc, "could.not.close.CWMCG0004E", e));
}
}... | [
"private",
"void",
"closeConfig",
"(",
"Config",
"config",
")",
"{",
"if",
"(",
"config",
"instanceof",
"WebSphereConfig",
")",
"{",
"try",
"{",
"(",
"(",
"WebSphereConfig",
")",
"config",
")",
".",
"close",
"(",
")",
";",
"}",
"catch",
"(",
"IOException... | Close a given config, if it's a WebSphereConfig | [
"Close",
"a",
"given",
"config",
"if",
"it",
"s",
"a",
"WebSphereConfig"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.config.1.1/src/com/ibm/ws/microprofile/config/impl/AbstractProviderResolver.java#L204-L212 |
66,809 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java | JmsJcaConnectionImpl.getSICoreConnection | @Override
public SICoreConnection getSICoreConnection() throws IllegalStateException {
if (connectionClosed) {
throw new IllegalStateException(NLS.getFormattedMessage(
("ILLEGAL_STATE_CWSJR1086"),
... | java | @Override
public SICoreConnection getSICoreConnection() throws IllegalStateException {
if (connectionClosed) {
throw new IllegalStateException(NLS.getFormattedMessage(
("ILLEGAL_STATE_CWSJR1086"),
... | [
"@",
"Override",
"public",
"SICoreConnection",
"getSICoreConnection",
"(",
")",
"throws",
"IllegalStateException",
"{",
"if",
"(",
"connectionClosed",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"NLS",
".",
"getFormattedMessage",
"(",
"(",
"\"ILLEGAL_STATE... | Returns the core connection created for, and associated with, this
connection.
@return the core connection
@throws IllegalStateException
if this connection has been closed | [
"Returns",
"the",
"core",
"connection",
"created",
"for",
"and",
"associated",
"with",
"this",
"connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java#L503-L513 |
66,810 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java | JmsJcaConnectionImpl.close | @Override
synchronized public void close() throws SIConnectionLostException,
SIIncorrectCallException, SIResourceException, SIErrorException,
SIConnectionDroppedException, SIConnectionUnavailableException {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEna... | java | @Override
synchronized public void close() throws SIConnectionLostException,
SIIncorrectCallException, SIResourceException, SIErrorException,
SIConnectionDroppedException, SIConnectionUnavailableException {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEna... | [
"@",
"Override",
"synchronized",
"public",
"void",
"close",
"(",
")",
"throws",
"SIConnectionLostException",
",",
"SIIncorrectCallException",
",",
"SIResourceException",
",",
"SIErrorException",
",",
"SIConnectionDroppedException",
",",
"SIConnectionUnavailableException",
"{"... | Closes this connection, its associated core connection and any sessions
created from it.
Used in Outbound Diagram 8
@throws SIErrorException
if the associated core connection failed to close
@throws SIResourceException
if the associated core connection failed to close
@throws SIIncorrectCallException
if the associate... | [
"Closes",
"this",
"connection",
"its",
"associated",
"core",
"connection",
"and",
"any",
"sessions",
"created",
"from",
"it",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java#L530-L566 |
66,811 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java | JmsJcaConnectionImpl.isRunningInWAS | private static boolean isRunningInWAS() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(TRACE, "isRunningInWAS");
}
if (inWAS == null) {
inWAS = Boolean.TRUE;
}
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntry... | java | private static boolean isRunningInWAS() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(TRACE, "isRunningInWAS");
}
if (inWAS == null) {
inWAS = Boolean.TRUE;
}
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntry... | [
"private",
"static",
"boolean",
"isRunningInWAS",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"TRACE",
",",
"\"isRunningInWAS\"",
")",... | Returns true if running in WAS. The check is to see if com.ibm.tx.jta.Transaction.TransactionManagerFactory
is on the classpath.
@return if running in WAS | [
"Returns",
"true",
"if",
"running",
"in",
"WAS",
".",
"The",
"check",
"is",
"to",
"see",
"if",
"com",
".",
"ibm",
".",
"tx",
".",
"jta",
".",
"Transaction",
".",
"TransactionManagerFactory",
"is",
"on",
"the",
"classpath",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java#L629-L642 |
66,812 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java | JmsJcaConnectionImpl.getCurrentUOWCoord | private static final Object getCurrentUOWCoord() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(TRACE, "getCurrentUOWCoord");
}
Object currentUOW = null;
if (isRunningInWAS()) {
currentUOW = EmbeddableTransactionManagerFactory... | java | private static final Object getCurrentUOWCoord() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(TRACE, "getCurrentUOWCoord");
}
Object currentUOW = null;
if (isRunningInWAS()) {
currentUOW = EmbeddableTransactionManagerFactory... | [
"private",
"static",
"final",
"Object",
"getCurrentUOWCoord",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"TRACE",
",",
"\"getCurrentU... | This method uses reflection to try and obtain the current UOW, if we are not inside WAS
null is returned.
@return The current UOW | [
"This",
"method",
"uses",
"reflection",
"to",
"try",
"and",
"obtain",
"the",
"current",
"UOW",
"if",
"we",
"are",
"not",
"inside",
"WAS",
"null",
"is",
"returned",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jmsra/impl/JmsJcaConnectionImpl.java#L650-L664 |
66,813 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ClassLoadingServiceImpl.java | ClassLoadingServiceImpl.listenForLibraryChanges | private PostCreateAction listenForLibraryChanges(final String libid) {
return new PostCreateAction() {
@Override
public void invoke(AppClassLoader acl) {
listenForLibraryChanges(libid, acl);
}
};
} | java | private PostCreateAction listenForLibraryChanges(final String libid) {
return new PostCreateAction() {
@Override
public void invoke(AppClassLoader acl) {
listenForLibraryChanges(libid, acl);
}
};
} | [
"private",
"PostCreateAction",
"listenForLibraryChanges",
"(",
"final",
"String",
"libid",
")",
"{",
"return",
"new",
"PostCreateAction",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"invoke",
"(",
"AppClassLoader",
"acl",
")",
"{",
"listenForLibraryChanges",
... | create an action that will create a listener when invoked | [
"create",
"an",
"action",
"that",
"will",
"create",
"a",
"listener",
"when",
"invoked"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ClassLoadingServiceImpl.java#L498-L505 |
66,814 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ClassLoadingServiceImpl.java | ClassLoadingServiceImpl.listenForLibraryChanges | private void listenForLibraryChanges(String libid, AppClassLoader acl) {
// ensure this loader is removed from the canonical store when the library is updated
new WeakLibraryListener(libid, acl.getKey().getId(), acl, bundleContext) {
@Override
protected void update() {
... | java | private void listenForLibraryChanges(String libid, AppClassLoader acl) {
// ensure this loader is removed from the canonical store when the library is updated
new WeakLibraryListener(libid, acl.getKey().getId(), acl, bundleContext) {
@Override
protected void update() {
... | [
"private",
"void",
"listenForLibraryChanges",
"(",
"String",
"libid",
",",
"AppClassLoader",
"acl",
")",
"{",
"// ensure this loader is removed from the canonical store when the library is updated",
"new",
"WeakLibraryListener",
"(",
"libid",
",",
"acl",
".",
"getKey",
"(",
... | create a listener to remove a loader from the canonical store on library update | [
"create",
"a",
"listener",
"to",
"remove",
"a",
"loader",
"from",
"the",
"canonical",
"store",
"on",
"library",
"update"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/ClassLoadingServiceImpl.java#L508-L519 |
66,815 | OpenLiberty/open-liberty | dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/adapter/BundleEventAdapter.java | BundleEventAdapter.getTopic | private String getTopic(BundleEvent bundleEvent) {
StringBuilder topic = new StringBuilder(BUNDLE_EVENT_TOPIC_PREFIX);
switch (bundleEvent.getType()) {
case BundleEvent.INSTALLED:
topic.append("INSTALLED");
break;
case BundleEvent.STARTED:
... | java | private String getTopic(BundleEvent bundleEvent) {
StringBuilder topic = new StringBuilder(BUNDLE_EVENT_TOPIC_PREFIX);
switch (bundleEvent.getType()) {
case BundleEvent.INSTALLED:
topic.append("INSTALLED");
break;
case BundleEvent.STARTED:
... | [
"private",
"String",
"getTopic",
"(",
"BundleEvent",
"bundleEvent",
")",
"{",
"StringBuilder",
"topic",
"=",
"new",
"StringBuilder",
"(",
"BUNDLE_EVENT_TOPIC_PREFIX",
")",
";",
"switch",
"(",
"bundleEvent",
".",
"getType",
"(",
")",
")",
"{",
"case",
"BundleEven... | Determine the appropriate topic to use for the Bundle Event.
@param bundleEvent
the bundle event that is being adapted
@return the topic or null if the event is not supported | [
"Determine",
"the",
"appropriate",
"topic",
"to",
"use",
"for",
"the",
"Bundle",
"Event",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.event/src/com/ibm/ws/event/internal/adapter/BundleEventAdapter.java#L93-L123 |
66,816 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java | PmiModuleConfig.submoduleMembers | public PmiDataInfo[] submoduleMembers(String submoduleName, int level) {
if (submoduleName == null)
return listLevelData(level);
ArrayList returnData = new ArrayList();
// special case for category
boolean inCategory = false;
if (submoduleName.startsWith("ejb."))
... | java | public PmiDataInfo[] submoduleMembers(String submoduleName, int level) {
if (submoduleName == null)
return listLevelData(level);
ArrayList returnData = new ArrayList();
// special case for category
boolean inCategory = false;
if (submoduleName.startsWith("ejb."))
... | [
"public",
"PmiDataInfo",
"[",
"]",
"submoduleMembers",
"(",
"String",
"submoduleName",
",",
"int",
"level",
")",
"{",
"if",
"(",
"submoduleName",
"==",
"null",
")",
"return",
"listLevelData",
"(",
"level",
")",
";",
"ArrayList",
"returnData",
"=",
"new",
"Ar... | Returns an array of PmiDataInfo for the given submoduleName and level. | [
"Returns",
"an",
"array",
"of",
"PmiDataInfo",
"for",
"the",
"given",
"submoduleName",
"and",
"level",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java#L172-L199 |
66,817 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java | PmiModuleConfig.listLevelData | public PmiDataInfo[] listLevelData(int level) {
ArrayList levelData = new ArrayList();
Iterator allData = perfData.values().iterator();
while (allData.hasNext()) {
PmiDataInfo dataInfo = (PmiDataInfo) allData.next();
if (dataInfo.getLevel() <= level) {
le... | java | public PmiDataInfo[] listLevelData(int level) {
ArrayList levelData = new ArrayList();
Iterator allData = perfData.values().iterator();
while (allData.hasNext()) {
PmiDataInfo dataInfo = (PmiDataInfo) allData.next();
if (dataInfo.getLevel() <= level) {
le... | [
"public",
"PmiDataInfo",
"[",
"]",
"listLevelData",
"(",
"int",
"level",
")",
"{",
"ArrayList",
"levelData",
"=",
"new",
"ArrayList",
"(",
")",
";",
"Iterator",
"allData",
"=",
"perfData",
".",
"values",
"(",
")",
".",
"iterator",
"(",
")",
";",
"while",... | Returns the statistic with level equal to or lower than 'level' | [
"Returns",
"the",
"statistic",
"with",
"level",
"equal",
"to",
"or",
"lower",
"than",
"level"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java#L222-L239 |
66,818 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java | PmiModuleConfig.listMyLevelData | public PmiDataInfo[] listMyLevelData(int level) {
ArrayList levelData = new ArrayList();
Iterator allData = perfData.values().iterator();
while (allData.hasNext()) {
PmiDataInfo dataInfo = (PmiDataInfo) allData.next();
if (dataInfo.getLevel() == level) {
l... | java | public PmiDataInfo[] listMyLevelData(int level) {
ArrayList levelData = new ArrayList();
Iterator allData = perfData.values().iterator();
while (allData.hasNext()) {
PmiDataInfo dataInfo = (PmiDataInfo) allData.next();
if (dataInfo.getLevel() == level) {
l... | [
"public",
"PmiDataInfo",
"[",
"]",
"listMyLevelData",
"(",
"int",
"level",
")",
"{",
"ArrayList",
"levelData",
"=",
"new",
"ArrayList",
"(",
")",
";",
"Iterator",
"allData",
"=",
"perfData",
".",
"values",
"(",
")",
".",
"iterator",
"(",
")",
";",
"while... | Returns the statistic with level equal to 'level' | [
"Returns",
"the",
"statistic",
"with",
"level",
"equal",
"to",
"level"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java#L244-L255 |
66,819 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java | PmiModuleConfig.listStatisticsWithDependents | public int[] listStatisticsWithDependents() {
if (dependList == null) {
ArrayList list = new ArrayList();
Iterator allData = perfData.values().iterator();
while (allData.hasNext()) {
PmiDataInfo dataInfo = (PmiDataInfo) allData.next();
if (data... | java | public int[] listStatisticsWithDependents() {
if (dependList == null) {
ArrayList list = new ArrayList();
Iterator allData = perfData.values().iterator();
while (allData.hasNext()) {
PmiDataInfo dataInfo = (PmiDataInfo) allData.next();
if (data... | [
"public",
"int",
"[",
"]",
"listStatisticsWithDependents",
"(",
")",
"{",
"if",
"(",
"dependList",
"==",
"null",
")",
"{",
"ArrayList",
"list",
"=",
"new",
"ArrayList",
"(",
")",
";",
"Iterator",
"allData",
"=",
"perfData",
".",
"values",
"(",
")",
".",
... | Returns String representation of this object | [
"Returns",
"String",
"representation",
"of",
"this",
"object"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/PmiModuleConfig.java#L293-L310 |
66,820 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/env/was/Cache.java | Cache.scheduleEvictionTask | private void scheduleEvictionTask(long timeoutInMilliSeconds) {
EvictionTask evictionTask = new EvictionTask();
// Before creating new Timers, which create new Threads, we
// must ensure that we are not using any application classloader
// as the current thread's context classloader. O... | java | private void scheduleEvictionTask(long timeoutInMilliSeconds) {
EvictionTask evictionTask = new EvictionTask();
// Before creating new Timers, which create new Threads, we
// must ensure that we are not using any application classloader
// as the current thread's context classloader. O... | [
"private",
"void",
"scheduleEvictionTask",
"(",
"long",
"timeoutInMilliSeconds",
")",
"{",
"EvictionTask",
"evictionTask",
"=",
"new",
"EvictionTask",
"(",
")",
";",
"// Before creating new Timers, which create new Threads, we",
"// must ensure that we are not using any application... | Creates a timer and schedules the eviction task based on the timeout in milliseconds
@param timeoutInMilliSeconds the time to be used in milliseconds for the eviction task | [
"Creates",
"a",
"timer",
"and",
"schedules",
"the",
"eviction",
"task",
"based",
"on",
"the",
"timeout",
"in",
"milliseconds"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/env/was/Cache.java#L149-L168 |
66,821 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/env/was/Cache.java | Cache.update | public synchronized Object update(String key, Object value) {
// evict until size < maxSize
while (isEvictionRequired() && entryLimit > 0 && entryLimit < Integer.MAX_VALUE) {
evictStaleEntries();
}
CacheEntry oldEntry = null;
CacheEntry curEntry = new CacheEntry(valu... | java | public synchronized Object update(String key, Object value) {
// evict until size < maxSize
while (isEvictionRequired() && entryLimit > 0 && entryLimit < Integer.MAX_VALUE) {
evictStaleEntries();
}
CacheEntry oldEntry = null;
CacheEntry curEntry = new CacheEntry(valu... | [
"public",
"synchronized",
"Object",
"update",
"(",
"String",
"key",
",",
"Object",
"value",
")",
"{",
"// evict until size < maxSize",
"while",
"(",
"isEvictionRequired",
"(",
")",
"&&",
"entryLimit",
">",
"0",
"&&",
"entryLimit",
"<",
"Integer",
".",
"MAX_VALUE... | Update the value into the Cache using the specified key, but do not change
the table level of the cache. If the key is not in any table, add it to
the primaryTable
@param key the key of the entry to be inserted
@param value the value of the entry to be inserted
@return the previous value associated with key, or null i... | [
"Update",
"the",
"value",
"into",
"the",
"Cache",
"using",
"the",
"specified",
"key",
"but",
"do",
"not",
"change",
"the",
"table",
"level",
"of",
"the",
"cache",
".",
"If",
"the",
"key",
"is",
"not",
"in",
"any",
"table",
"add",
"it",
"to",
"the",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/env/was/Cache.java#L257-L276 |
66,822 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/env/was/Cache.java | Cache.clearAllEntries | public synchronized void clearAllEntries() {
tertiaryTable.putAll(primaryTable);
tertiaryTable.putAll(secondaryTable);
primaryTable.clear();
secondaryTable.clear();
evictStaleEntries();
} | java | public synchronized void clearAllEntries() {
tertiaryTable.putAll(primaryTable);
tertiaryTable.putAll(secondaryTable);
primaryTable.clear();
secondaryTable.clear();
evictStaleEntries();
} | [
"public",
"synchronized",
"void",
"clearAllEntries",
"(",
")",
"{",
"tertiaryTable",
".",
"putAll",
"(",
"primaryTable",
")",
";",
"tertiaryTable",
".",
"putAll",
"(",
"secondaryTable",
")",
";",
"primaryTable",
".",
"clear",
"(",
")",
";",
"secondaryTable",
"... | Purge all entries from the Cache. Semantically, this should
behave the same as the expiration of all entries from
the cache. | [
"Purge",
"all",
"entries",
"from",
"the",
"Cache",
".",
"Semantically",
"this",
"should",
"behave",
"the",
"same",
"as",
"the",
"expiration",
"of",
"all",
"entries",
"from",
"the",
"cache",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.wim.core/src/com/ibm/ws/security/wim/env/was/Cache.java#L338-L347 |
66,823 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/BDAFactory.java | BDAFactory.createBDA | public static WebSphereBeanDeploymentArchive createBDA(WebSphereCDIDeployment deployment,
ExtensionArchive extensionArchive,
CDIRuntime cdiRuntime) throws CDIException {
Set<String> additionalC... | java | public static WebSphereBeanDeploymentArchive createBDA(WebSphereCDIDeployment deployment,
ExtensionArchive extensionArchive,
CDIRuntime cdiRuntime) throws CDIException {
Set<String> additionalC... | [
"public",
"static",
"WebSphereBeanDeploymentArchive",
"createBDA",
"(",
"WebSphereCDIDeployment",
"deployment",
",",
"ExtensionArchive",
"extensionArchive",
",",
"CDIRuntime",
"cdiRuntime",
")",
"throws",
"CDIException",
"{",
"Set",
"<",
"String",
">",
"additionalClasses",
... | only for extensions | [
"only",
"for",
"extensions"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/BDAFactory.java#L71-L94 |
66,824 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java | WrapperManager.setWrapperCacheSize | public void setWrapperCacheSize(int cacheSize)
{
wrapperCache.setCachePreferredMaxSize(cacheSize);
int updatedCacheSize = getBeanIdCacheSize(cacheSize);
beanIdCache.setSize(updatedCacheSize);
} | java | public void setWrapperCacheSize(int cacheSize)
{
wrapperCache.setCachePreferredMaxSize(cacheSize);
int updatedCacheSize = getBeanIdCacheSize(cacheSize);
beanIdCache.setSize(updatedCacheSize);
} | [
"public",
"void",
"setWrapperCacheSize",
"(",
"int",
"cacheSize",
")",
"{",
"wrapperCache",
".",
"setCachePreferredMaxSize",
"(",
"cacheSize",
")",
";",
"int",
"updatedCacheSize",
"=",
"getBeanIdCacheSize",
"(",
"cacheSize",
")",
";",
"beanIdCache",
".",
"setSize",
... | Call to update the BeanIdCache cache size. | [
"Call",
"to",
"update",
"the",
"BeanIdCache",
"cache",
"size",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java#L127-L132 |
66,825 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java | WrapperManager.getBeanIdCacheSize | private int getBeanIdCacheSize(int cacheSize)
{
int beanIdCacheSize = cacheSize;
if (beanIdCacheSize < (Integer.MAX_VALUE / 2))
beanIdCacheSize = beanIdCacheSize * 2;
else
beanIdCacheSize = Integer.MAX_VALUE;
return beanIdCacheSize;
} | java | private int getBeanIdCacheSize(int cacheSize)
{
int beanIdCacheSize = cacheSize;
if (beanIdCacheSize < (Integer.MAX_VALUE / 2))
beanIdCacheSize = beanIdCacheSize * 2;
else
beanIdCacheSize = Integer.MAX_VALUE;
return beanIdCacheSize;
} | [
"private",
"int",
"getBeanIdCacheSize",
"(",
"int",
"cacheSize",
")",
"{",
"int",
"beanIdCacheSize",
"=",
"cacheSize",
";",
"if",
"(",
"beanIdCacheSize",
"<",
"(",
"Integer",
".",
"MAX_VALUE",
"/",
"2",
")",
")",
"beanIdCacheSize",
"=",
"beanIdCacheSize",
"*",... | Calculate the size to be used for the BeanIdCache.
@return cacheSize | [
"Calculate",
"the",
"size",
"to",
"be",
"used",
"for",
"the",
"BeanIdCache",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java#L139-L148 |
66,826 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java | WrapperManager.unregister | public boolean unregister(BeanId beanId, boolean dropRef) // f111627
throws CSIException
{
boolean removed = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "unregister",
new Object[] { beanId, new Boolean(dropRef) }); // d18... | java | public boolean unregister(BeanId beanId, boolean dropRef) // f111627
throws CSIException
{
boolean removed = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "unregister",
new Object[] { beanId, new Boolean(dropRef) }); // d18... | [
"public",
"boolean",
"unregister",
"(",
"BeanId",
"beanId",
",",
"boolean",
"dropRef",
")",
"// f111627",
"throws",
"CSIException",
"{",
"boolean",
"removed",
"=",
"false",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
"."... | d181569 - changed signature of method. | [
"d181569",
"-",
"changed",
"signature",
"of",
"method",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java#L374-L415 |
66,827 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java | WrapperManager.unregisterHome | public void unregisterHome(J2EEName homeName, EJSHome homeObj)
throws CSIException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "unregisterHome");
J2EEName cacheHomeName;
int numEnumerated = 0, numRemoved = 0; // d103404.2
... | java | public void unregisterHome(J2EEName homeName, EJSHome homeObj)
throws CSIException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "unregisterHome");
J2EEName cacheHomeName;
int numEnumerated = 0, numRemoved = 0; // d103404.2
... | [
"public",
"void",
"unregisterHome",
"(",
"J2EEName",
"homeName",
",",
"EJSHome",
"homeObj",
")",
"throws",
"CSIException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr",
".",
"e... | unregisterHome removes from cache homeObj and all Objects that
have homeObj as it's home. It also unregisters these objects from
from the orb object adapter. | [
"unregisterHome",
"removes",
"from",
"cache",
"homeObj",
"and",
"all",
"Objects",
"that",
"have",
"homeObj",
"as",
"it",
"s",
"home",
".",
"It",
"also",
"unregisters",
"these",
"objects",
"from",
"from",
"the",
"orb",
"object",
"adapter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java#L422-L466 |
66,828 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java | WrapperManager.discardObject | @Override
public void discardObject(EJBCache wrapperCache, Object key, Object ele)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "discardObject", new Object[] { key, ele });
EJSWrapperCommon wrapperCommon = (EJSWrapperCommon) ele;
wrapperCom... | java | @Override
public void discardObject(EJBCache wrapperCache, Object key, Object ele)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "discardObject", new Object[] { key, ele });
EJSWrapperCommon wrapperCommon = (EJSWrapperCommon) ele;
wrapperCom... | [
"@",
"Override",
"public",
"void",
"discardObject",
"(",
"EJBCache",
"wrapperCache",
",",
"Object",
"key",
",",
"Object",
"ele",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
... | Unregister a wrapper instance when it is castout of the wrapper
cache. | [
"Unregister",
"a",
"wrapper",
"instance",
"when",
"it",
"is",
"castout",
"of",
"the",
"wrapper",
"cache",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java#L472-L483 |
66,829 | OpenLiberty/open-liberty | dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java | WrapperManager.faultOnKey | @Override
public Object faultOnKey(EJBCache cache, Object key)
throws FaultException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "faultOnKey", key);
ByteArray wrapperKey = (ByteArray) key;
EJSWrapperCommon result = null... | java | @Override
public Object faultOnKey(EJBCache cache, Object key)
throws FaultException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
Tr.entry(tc, "faultOnKey", key);
ByteArray wrapperKey = (ByteArray) key;
EJSWrapperCommon result = null... | [
"@",
"Override",
"public",
"Object",
"faultOnKey",
"(",
"EJBCache",
"cache",
",",
"Object",
"key",
")",
"throws",
"FaultException",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"Tr"... | Invoked by the Cache FaultStrategy when an object was not found
and needs to be inserted. We create a new wrapper instance to be
inserted into the cache. The cache package holds the lock on a
bucket when this method is invoked. | [
"Invoked",
"by",
"the",
"Cache",
"FaultStrategy",
"when",
"an",
"object",
"was",
"not",
"found",
"and",
"needs",
"to",
"be",
"inserted",
".",
"We",
"create",
"a",
"new",
"wrapper",
"instance",
"to",
"be",
"inserted",
"into",
"the",
"cache",
".",
"The",
"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/WrapperManager.java#L589-L639 |
66,830 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java | AbstractTokenImpl.isValid | public boolean isValid() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "Checking validity of token " + this.getClass().getName());
if (token != null) {
// return if this token is still valid
long currentTime = System.currentTimeMilli... | java | public boolean isValid() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
Tr.debug(tc, "Checking validity of token " + this.getClass().getName());
if (token != null) {
// return if this token is still valid
long currentTime = System.currentTimeMilli... | [
"public",
"boolean",
"isValid",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"Tr",
".",
"debug",
"(",
"tc",
",",
"\"Checking validity of token \"",
"+",
"this",
".",
"ge... | Validates the token including expiration, signature, etc.
@return boolean | [
"Validates",
"the",
"token",
"including",
"expiration",
"signature",
"etc",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java#L65-L92 |
66,831 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java | AbstractTokenImpl.getPrincipal | public String getPrincipal() {
String[] accessIDArray = getAttributes("u");
if (accessIDArray != null && accessIDArray.length > 0)
return accessIDArray[0];
else
return null;
} | java | public String getPrincipal() {
String[] accessIDArray = getAttributes("u");
if (accessIDArray != null && accessIDArray.length > 0)
return accessIDArray[0];
else
return null;
} | [
"public",
"String",
"getPrincipal",
"(",
")",
"{",
"String",
"[",
"]",
"accessIDArray",
"=",
"getAttributes",
"(",
"\"u\"",
")",
";",
"if",
"(",
"accessIDArray",
"!=",
"null",
"&&",
"accessIDArray",
".",
"length",
">",
"0",
")",
"return",
"accessIDArray",
... | Gets the principal that this Token belongs to. If this is an authorization token,
this principal string must match the authentication token principal string or the
message will be rejected.
@return String | [
"Gets",
"the",
"principal",
"that",
"this",
"Token",
"belongs",
"to",
".",
"If",
"this",
"is",
"an",
"authorization",
"token",
"this",
"principal",
"string",
"must",
"match",
"the",
"authentication",
"token",
"principal",
"string",
"or",
"the",
"message",
"wil... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java#L122-L129 |
66,832 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java | AbstractTokenImpl.getUniqueID | public String getUniqueID() {
// return null so that this token does not change the uniqueness,
// all static attributes from the default tokens.
String[] cacheKeyArray = getAttributes(AttributeNameConstants.WSCREDENTIAL_CACHE_KEY);
if (cacheKeyArray != null && cacheKeyArray[0] != null... | java | public String getUniqueID() {
// return null so that this token does not change the uniqueness,
// all static attributes from the default tokens.
String[] cacheKeyArray = getAttributes(AttributeNameConstants.WSCREDENTIAL_CACHE_KEY);
if (cacheKeyArray != null && cacheKeyArray[0] != null... | [
"public",
"String",
"getUniqueID",
"(",
")",
"{",
"// return null so that this token does not change the uniqueness, ",
"// all static attributes from the default tokens.",
"String",
"[",
"]",
"cacheKeyArray",
"=",
"getAttributes",
"(",
"AttributeNameConstants",
".",
"WSCREDENTIAL_... | Returns a unique identifier of the token based upon information the provider
considers makes this a unique token. This will be used for caching purposes
and may be used in combination with other token unique IDs that are part of
the same Subject.
This method should return null if you want the accessID of the user to r... | [
"Returns",
"a",
"unique",
"identifier",
"of",
"the",
"token",
"based",
"upon",
"information",
"the",
"provider",
"considers",
"makes",
"this",
"a",
"unique",
"token",
".",
"This",
"will",
"be",
"used",
"for",
"caching",
"purposes",
"and",
"may",
"be",
"used"... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java#L142-L156 |
66,833 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java | AbstractTokenImpl.getAttributes | public String[] getAttributes(String key) {
if (token != null)
return token.getAttributes(key);
else
return null;
} | java | public String[] getAttributes(String key) {
if (token != null)
return token.getAttributes(key);
else
return null;
} | [
"public",
"String",
"[",
"]",
"getAttributes",
"(",
"String",
"key",
")",
"{",
"if",
"(",
"token",
"!=",
"null",
")",
"return",
"token",
".",
"getAttributes",
"(",
"key",
")",
";",
"else",
"return",
"null",
";",
"}"
] | Gets the attribute value based on the named value.
@param String key
@return String[] | [
"Gets",
"the",
"attribute",
"value",
"based",
"on",
"the",
"named",
"value",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.token/src/com/ibm/ws/security/token/internal/AbstractTokenImpl.java#L220-L225 |
66,834 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java | MessageItemReference.getMaximumTimeInStore | @Override
public long getMaximumTimeInStore()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getMaximumTimeInStore");
long maxTime = getMessageItem().getMaximumTimeInStore();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled(... | java | @Override
public long getMaximumTimeInStore()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getMaximumTimeInStore");
long maxTime = getMessageItem().getMaximumTimeInStore();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled(... | [
"@",
"Override",
"public",
"long",
"getMaximumTimeInStore",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getMaximumTimeInStore\"",
... | Return the maximum time this reference should spend in a ReferenceStream.
The expiry time of a message reference is always the same as its
referenced item. The referenced item's getMaximumTimeInStore() return
will still be the same as it was when it was originally stored - the store
time only updates when the message ... | [
"Return",
"the",
"maximum",
"time",
"this",
"reference",
"should",
"spend",
"in",
"a",
"ReferenceStream",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java#L326-L338 |
66,835 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java | MessageItemReference.resetEvents | private void resetEvents()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "resetEvents");
// Reset all callbacks
PRE_COMMIT_ADD = null;
PRE_COMMIT_REMOVE = null;
POST_COMMIT_ADD_1 = null;
POST_COMMIT_ADD_2 = null;
... | java | private void resetEvents()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "resetEvents");
// Reset all callbacks
PRE_COMMIT_ADD = null;
PRE_COMMIT_REMOVE = null;
POST_COMMIT_ADD_1 = null;
POST_COMMIT_ADD_2 = null;
... | [
"private",
"void",
"resetEvents",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"resetEvents\"",
")",
";",
"// Reset all callbacks"... | Reset all callbacks to null. | [
"Reset",
"all",
"callbacks",
"to",
"null",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java#L539-L568 |
66,836 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java | MessageItemReference.getProducerConnectionUuid | @Override
public SIBUuid12 getProducerConnectionUuid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getProducerConnectionUuid");
SibTr.exit(tc, "getProducerConnectionUuid");
}
return getMessageItem().getProducerCon... | java | @Override
public SIBUuid12 getProducerConnectionUuid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getProducerConnectionUuid");
SibTr.exit(tc, "getProducerConnectionUuid");
}
return getMessageItem().getProducerCon... | [
"@",
"Override",
"public",
"SIBUuid12",
"getProducerConnectionUuid",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getProduce... | Returns the producerConnectionUuid.
@return SIBUuid12 | [
"Returns",
"the",
"producerConnectionUuid",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java#L725-L735 |
66,837 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java | MessageItemReference.getMessageItem | private MessageItem getMessageItem()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getMessageItem");
MessageItem msg = null;
try
{
msg = (MessageItem) getReferredItem();
} catch (MessageStoreException e)
{... | java | private MessageItem getMessageItem()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getMessageItem");
MessageItem msg = null;
try
{
msg = (MessageItem) getReferredItem();
} catch (MessageStoreException e)
{... | [
"private",
"MessageItem",
"getMessageItem",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"tc",
",",
"\"getMessageItem\"",
")",
";",
"MessageIte... | Returns the referenced message item | [
"Returns",
"the",
"referenced",
"message",
"item"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/store/items/MessageItemReference.java#L816-L849 |
66,838 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/stat/WSStatsHelper.java | WSStatsHelper.setTextInfoTranslationEnabled | public static void setTextInfoTranslationEnabled(boolean textInfoTranslationEnabled, Locale locale) {
com.ibm.ws.pmi.stat.StatsImpl.setEnableNLS(textInfoTranslationEnabled, locale);
} | java | public static void setTextInfoTranslationEnabled(boolean textInfoTranslationEnabled, Locale locale) {
com.ibm.ws.pmi.stat.StatsImpl.setEnableNLS(textInfoTranslationEnabled, locale);
} | [
"public",
"static",
"void",
"setTextInfoTranslationEnabled",
"(",
"boolean",
"textInfoTranslationEnabled",
",",
"Locale",
"locale",
")",
"{",
"com",
".",
"ibm",
".",
"ws",
".",
"pmi",
".",
"stat",
".",
"StatsImpl",
".",
"setEnableNLS",
"(",
"textInfoTranslationEna... | This method allows translation of the textual information.
By default translation is enabled using the default Locale.
@param textInfoTranslationEnabled enable/disable
@param locale Locale to use for translation | [
"This",
"method",
"allows",
"translation",
"of",
"the",
"textual",
"information",
".",
"By",
"default",
"translation",
"is",
"enabled",
"using",
"the",
"default",
"Locale",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/websphere/pmi/stat/WSStatsHelper.java#L61-L63 |
66,839 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/validator/ValidateVisitor.java | ValidateVisitor.ELCheckType | private final static void ELCheckType(final Object obj, final Class<?> type) throws ELException {
if (String.class.equals(type)) {
ELSupport.coerceToString(obj);
}
if (ELArithmetic.isNumberType(type)) {
ELSupport.coerceToNumber(obj, type);
}
if (Character.class.... | java | private final static void ELCheckType(final Object obj, final Class<?> type) throws ELException {
if (String.class.equals(type)) {
ELSupport.coerceToString(obj);
}
if (ELArithmetic.isNumberType(type)) {
ELSupport.coerceToNumber(obj, type);
}
if (Character.class.... | [
"private",
"final",
"static",
"void",
"ELCheckType",
"(",
"final",
"Object",
"obj",
",",
"final",
"Class",
"<",
"?",
">",
"type",
")",
"throws",
"ELException",
"{",
"if",
"(",
"String",
".",
"class",
".",
"equals",
"(",
"type",
")",
")",
"{",
"ELSuppor... | method used to replace ELSupport.checkType | [
"method",
"used",
"to",
"replace",
"ELSupport",
".",
"checkType"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/validator/ValidateVisitor.java#L1772-L1788 |
66,840 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/download/RepositoryDownloadUtil.java | RepositoryDownloadUtil.getProductVersion | public static String getProductVersion(RepositoryResource installResource) {
String resourceVersion = null;
try {
Collection<ProductDefinition> pdList = new ArrayList<ProductDefinition>();
for (ProductInfo pi : ProductInfo.getAllProductInfo().values()) {
pdList.ad... | java | public static String getProductVersion(RepositoryResource installResource) {
String resourceVersion = null;
try {
Collection<ProductDefinition> pdList = new ArrayList<ProductDefinition>();
for (ProductInfo pi : ProductInfo.getAllProductInfo().values()) {
pdList.ad... | [
"public",
"static",
"String",
"getProductVersion",
"(",
"RepositoryResource",
"installResource",
")",
"{",
"String",
"resourceVersion",
"=",
"null",
";",
"try",
"{",
"Collection",
"<",
"ProductDefinition",
">",
"pdList",
"=",
"new",
"ArrayList",
"<",
"ProductDefinit... | Gets the version of the resource using the getAppliesToVersions function.
@param installResource - resource in a repository
@return - the version of installResource | [
"Gets",
"the",
"version",
"of",
"the",
"resource",
"using",
"the",
"getAppliesToVersions",
"function",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/download/RepositoryDownloadUtil.java#L58-L74 |
66,841 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/download/RepositoryDownloadUtil.java | RepositoryDownloadUtil.isPublicAsset | public static boolean isPublicAsset(ResourceType resourceType, RepositoryResource installResource) {
if (resourceType.equals(ResourceType.FEATURE) || resourceType.equals(ResourceType.ADDON)) {
EsaResource esar = ((EsaResource) installResource);
if (esar.getVisibility().equals(Visibility.... | java | public static boolean isPublicAsset(ResourceType resourceType, RepositoryResource installResource) {
if (resourceType.equals(ResourceType.FEATURE) || resourceType.equals(ResourceType.ADDON)) {
EsaResource esar = ((EsaResource) installResource);
if (esar.getVisibility().equals(Visibility.... | [
"public",
"static",
"boolean",
"isPublicAsset",
"(",
"ResourceType",
"resourceType",
",",
"RepositoryResource",
"installResource",
")",
"{",
"if",
"(",
"resourceType",
".",
"equals",
"(",
"ResourceType",
".",
"FEATURE",
")",
"||",
"resourceType",
".",
"equals",
"(... | Checks if Feature or Addon has visibility public or install
OR checks if the resource is a Product sample or open source to see if it is a public asset.
@param resourceType - type of repository
@param installResource - represents a resouce in a repository
@return - true if the resource is visible to the public | [
"Checks",
"if",
"Feature",
"or",
"Addon",
"has",
"visibility",
"public",
"or",
"install",
"OR",
"checks",
"if",
"the",
"resource",
"is",
"a",
"Product",
"sample",
"or",
"open",
"source",
"to",
"see",
"if",
"it",
"is",
"a",
"public",
"asset",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/download/RepositoryDownloadUtil.java#L84-L95 |
66,842 | OpenLiberty/open-liberty | dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/download/RepositoryDownloadUtil.java | RepositoryDownloadUtil.writeResourcesToDiskRepo | public static Map<String, Collection<String>> writeResourcesToDiskRepo(Map<String, Collection<String>> downloaded, File toDir,
Map<String, List<List<RepositoryResource>>> installResources,
... | java | public static Map<String, Collection<String>> writeResourcesToDiskRepo(Map<String, Collection<String>> downloaded, File toDir,
Map<String, List<List<RepositoryResource>>> installResources,
... | [
"public",
"static",
"Map",
"<",
"String",
",",
"Collection",
"<",
"String",
">",
">",
"writeResourcesToDiskRepo",
"(",
"Map",
"<",
"String",
",",
"Collection",
"<",
"String",
">",
">",
"downloaded",
",",
"File",
"toDir",
",",
"Map",
"<",
"String",
",",
"... | The function writes the resources to the downloaded disk repo
@param downloaded - collection of string values
@param toDir - File that represents the destination directory
@param installResources - list of resources in a repository
@param productVersion - string value of the version of the product
@param eventManager ... | [
"The",
"function",
"writes",
"the",
"resources",
"to",
"the",
"downloaded",
"disk",
"repo"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.install/src/com/ibm/ws/install/repository/download/RepositoryDownloadUtil.java#L234-L257 |
66,843 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.jaas.common/src/com/ibm/ws/security/jaas/common/internal/JAASLoginContextEntryImpl.java | JAASLoginContextEntryImpl.setJaasLoginModuleConfig | @Reference(cardinality = ReferenceCardinality.MULTIPLE)
protected void setJaasLoginModuleConfig(JAASLoginModuleConfig lmc, Map<String, Object> props) {
String pid = (String) props.get(KEY_SERVICE_PID);
loginModuleMap.put(pid, lmc);
} | java | @Reference(cardinality = ReferenceCardinality.MULTIPLE)
protected void setJaasLoginModuleConfig(JAASLoginModuleConfig lmc, Map<String, Object> props) {
String pid = (String) props.get(KEY_SERVICE_PID);
loginModuleMap.put(pid, lmc);
} | [
"@",
"Reference",
"(",
"cardinality",
"=",
"ReferenceCardinality",
".",
"MULTIPLE",
")",
"protected",
"void",
"setJaasLoginModuleConfig",
"(",
"JAASLoginModuleConfig",
"lmc",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"props",
")",
"{",
"String",
"pid",
"=",... | SINCE THIS IS A STATIC REFERENCE DS provides enough synchronization so that we don't need to synchronize on the map. | [
"SINCE",
"THIS",
"IS",
"A",
"STATIC",
"REFERENCE",
"DS",
"provides",
"enough",
"synchronization",
"so",
"that",
"we",
"don",
"t",
"need",
"to",
"synchronize",
"on",
"the",
"map",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jaas.common/src/com/ibm/ws/security/jaas/common/internal/JAASLoginContextEntryImpl.java#L55-L59 |
66,844 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/channel/HttpRequestImpl.java | HttpRequestImpl.init | public void init(HttpInboundServiceContext context) {
this.message = context.getRequest();
if (this.useEE7Streams) {
this.body = new HttpInputStreamEE7(context);
} else {
this.body = new HttpInputStreamImpl(context);
}
} | java | public void init(HttpInboundServiceContext context) {
this.message = context.getRequest();
if (this.useEE7Streams) {
this.body = new HttpInputStreamEE7(context);
} else {
this.body = new HttpInputStreamImpl(context);
}
} | [
"public",
"void",
"init",
"(",
"HttpInboundServiceContext",
"context",
")",
"{",
"this",
".",
"message",
"=",
"context",
".",
"getRequest",
"(",
")",
";",
"if",
"(",
"this",
".",
"useEE7Streams",
")",
"{",
"this",
".",
"body",
"=",
"new",
"HttpInputStreamE... | Initialize with a new connection.
@param context | [
"Initialize",
"with",
"a",
"new",
"connection",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/dispatcher/internal/channel/HttpRequestImpl.java#L58-L65 |
66,845 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java | CDIUtils.loadExtension | public static Metadata<Extension> loadExtension(String extensionClass, ClassLoader classloader) {
Class<? extends Extension> serviceClass = loadClass(Extension.class, extensionClass, classloader);
if (serviceClass == null) {
return null;
}
Extension serviceInstance = prepareI... | java | public static Metadata<Extension> loadExtension(String extensionClass, ClassLoader classloader) {
Class<? extends Extension> serviceClass = loadClass(Extension.class, extensionClass, classloader);
if (serviceClass == null) {
return null;
}
Extension serviceInstance = prepareI... | [
"public",
"static",
"Metadata",
"<",
"Extension",
">",
"loadExtension",
"(",
"String",
"extensionClass",
",",
"ClassLoader",
"classloader",
")",
"{",
"Class",
"<",
"?",
"extends",
"Extension",
">",
"serviceClass",
"=",
"loadClass",
"(",
"Extension",
".",
"class"... | Create the extension and return a metadata for the extension
@param extensionClass extension class name
@param classloader the class loader that loads the extension
@return | [
"Create",
"the",
"extension",
"and",
"return",
"a",
"metadata",
"for",
"the",
"extension"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java#L252-L262 |
66,846 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java | CDIUtils.loadClass | public static <S> Class<? extends S> loadClass(Class<S> expectedType, String serviceClassName, ClassLoader classloader) {
Class<?> clazz = null;
Class<? extends S> serviceClass = null;
try {
clazz = classloader.loadClass(serviceClassName);
serviceClass = clazz.asSubclass(... | java | public static <S> Class<? extends S> loadClass(Class<S> expectedType, String serviceClassName, ClassLoader classloader) {
Class<?> clazz = null;
Class<? extends S> serviceClass = null;
try {
clazz = classloader.loadClass(serviceClassName);
serviceClass = clazz.asSubclass(... | [
"public",
"static",
"<",
"S",
">",
"Class",
"<",
"?",
"extends",
"S",
">",
"loadClass",
"(",
"Class",
"<",
"S",
">",
"expectedType",
",",
"String",
"serviceClassName",
",",
"ClassLoader",
"classloader",
")",
"{",
"Class",
"<",
"?",
">",
"clazz",
"=",
"... | load the class and then casts to the specified sub class
@param expectedType the expected return class
@param serviceClassName the service class name
@param classloader the class loader that loads the service class
@return the subclass specified by expectedType | [
"load",
"the",
"class",
"and",
"then",
"casts",
"to",
"the",
"specified",
"sub",
"class"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java#L272-L295 |
66,847 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java | CDIUtils.prepareInstance | public static <S> S prepareInstance(Class<? extends S> serviceClass) {
try {
final Constructor<? extends S> constructor = serviceClass.getDeclaredConstructor();
AccessController.doPrivileged(new PrivilegedAction<Void>() {
@Override
public Void run() {
... | java | public static <S> S prepareInstance(Class<? extends S> serviceClass) {
try {
final Constructor<? extends S> constructor = serviceClass.getDeclaredConstructor();
AccessController.doPrivileged(new PrivilegedAction<Void>() {
@Override
public Void run() {
... | [
"public",
"static",
"<",
"S",
">",
"S",
"prepareInstance",
"(",
"Class",
"<",
"?",
"extends",
"S",
">",
"serviceClass",
")",
"{",
"try",
"{",
"final",
"Constructor",
"<",
"?",
"extends",
"S",
">",
"constructor",
"=",
"serviceClass",
".",
"getDeclaredConstr... | Creates an object of the service class
@param serviceClass the service class
@return the serviceClass object | [
"Creates",
"an",
"object",
"of",
"the",
"service",
"class"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java#L303-L352 |
66,848 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java | CDIUtils.isVisible | private static boolean isVisible(ClassLoader loaderA, ClassLoader loaderB) {
if (loaderB == loaderA || loaderB.getParent() == loaderA) {
return true;
}
return false;
} | java | private static boolean isVisible(ClassLoader loaderA, ClassLoader loaderB) {
if (loaderB == loaderA || loaderB.getParent() == loaderA) {
return true;
}
return false;
} | [
"private",
"static",
"boolean",
"isVisible",
"(",
"ClassLoader",
"loaderA",
",",
"ClassLoader",
"loaderB",
")",
"{",
"if",
"(",
"loaderB",
"==",
"loaderA",
"||",
"loaderB",
".",
"getParent",
"(",
")",
"==",
"loaderA",
")",
"{",
"return",
"true",
";",
"}",
... | return true if loaderA is visible to loaderB | [
"return",
"true",
"if",
"loaderA",
"is",
"visible",
"to",
"loaderB"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java#L369-L374 |
66,849 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java | CDIUtils.getAndSetLoader | public static ClassLoader getAndSetLoader(ClassLoader newCL) {
ThreadContextAccessor tca = ThreadContextAccessor.getThreadContextAccessor();
//This could be a ClassLoader or the special type UNCHANGED.
Object maybeOldCL = tca.pushContextClassLoaderForUnprivileged(newCL);
if (maybeOldCL i... | java | public static ClassLoader getAndSetLoader(ClassLoader newCL) {
ThreadContextAccessor tca = ThreadContextAccessor.getThreadContextAccessor();
//This could be a ClassLoader or the special type UNCHANGED.
Object maybeOldCL = tca.pushContextClassLoaderForUnprivileged(newCL);
if (maybeOldCL i... | [
"public",
"static",
"ClassLoader",
"getAndSetLoader",
"(",
"ClassLoader",
"newCL",
")",
"{",
"ThreadContextAccessor",
"tca",
"=",
"ThreadContextAccessor",
".",
"getThreadContextAccessor",
"(",
")",
";",
"//This could be a ClassLoader or the special type UNCHANGED.",
"Object",
... | This method sets the thread context classloader, and returns whatever was the TCCL before it was updated.
@param newCL the classloader to put on the thread context.
@return the classloader that was origonally on the thread context.
@throws SecurityException if <code>RuntimePermission("getClassLoader")</code> or <code>... | [
"This",
"method",
"sets",
"the",
"thread",
"context",
"classloader",
"and",
"returns",
"whatever",
"was",
"the",
"TCCL",
"before",
"it",
"was",
"updated",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java#L383-L392 |
66,850 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java | CDIUtils.isWeldProxy | public static boolean isWeldProxy(Object obj) {
Class<?> clazz = obj.getClass();
boolean result = isWeldProxy(clazz);
return result;
} | java | public static boolean isWeldProxy(Object obj) {
Class<?> clazz = obj.getClass();
boolean result = isWeldProxy(clazz);
return result;
} | [
"public",
"static",
"boolean",
"isWeldProxy",
"(",
"Object",
"obj",
")",
"{",
"Class",
"<",
"?",
">",
"clazz",
"=",
"obj",
".",
"getClass",
"(",
")",
";",
"boolean",
"result",
"=",
"isWeldProxy",
"(",
"clazz",
")",
";",
"return",
"result",
";",
"}"
] | Return whether the object is a weld proxy
@param obj
@return true if it is a proxy | [
"Return",
"whether",
"the",
"object",
"is",
"a",
"weld",
"proxy"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.internal/src/com/ibm/ws/cdi/internal/interfaces/CDIUtils.java#L411-L415 |
66,851 | OpenLiberty/open-liberty | dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/injection/WebSphereInjectionServicesImpl.java | WebSphereInjectionServicesImpl.aroundInject | @Override
public <T> void aroundInject(final InjectionContext<T> injectionContext) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Annotations: " + injectionContext.getAnnotatedType());
}
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugE... | java | @Override
public <T> void aroundInject(final InjectionContext<T> injectionContext) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Annotations: " + injectionContext.getAnnotatedType());
}
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugE... | [
"@",
"Override",
"public",
"<",
"T",
">",
"void",
"aroundInject",
"(",
"final",
"InjectionContext",
"<",
"T",
">",
"injectionContext",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
... | Perform Injection.
For EE | [
"Perform",
"Injection",
".",
"For",
"EE"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.cdi.weld/src/com/ibm/ws/cdi/impl/weld/injection/WebSphereInjectionServicesImpl.java#L306-L328 |
66,852 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATBifurcatedConsumer.java | CATBifurcatedConsumer.readSet | @Override
public void readSet(int requestNumber, SIMessageHandle[] msgHandles) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "readSet",
new Object[] { requestNumber, msgHandles });
if (TraceComponent.i... | java | @Override
public void readSet(int requestNumber, SIMessageHandle[] msgHandles) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "readSet",
new Object[] { requestNumber, msgHandles });
if (TraceComponent.i... | [
"@",
"Override",
"public",
"void",
"readSet",
"(",
"int",
"requestNumber",
",",
"SIMessageHandle",
"[",
"]",
"msgHandles",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",... | This method will return a set of messages currently locked by the messaging engine.
@param requestNumber
@param msgIds | [
"This",
"method",
"will",
"return",
"a",
"set",
"of",
"messages",
"currently",
"locked",
"by",
"the",
"messaging",
"engine",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATBifurcatedConsumer.java#L195-L259 |
66,853 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATBifurcatedConsumer.java | CATBifurcatedConsumer.readAndDeleteSet | @Override
public void readAndDeleteSet(int requestNumber, SIMessageHandle[] msgHandles, int tran) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "readAndDeleteSet",
new Object[] { requestNumber, msgHandles, tran... | java | @Override
public void readAndDeleteSet(int requestNumber, SIMessageHandle[] msgHandles, int tran) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "readAndDeleteSet",
new Object[] { requestNumber, msgHandles, tran... | [
"@",
"Override",
"public",
"void",
"readAndDeleteSet",
"(",
"int",
"requestNumber",
",",
"SIMessageHandle",
"[",
"]",
"msgHandles",
",",
"int",
"tran",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnable... | This method will return and delete a set of messages currently locked by the messaging
engine.
@param requestNumber
@param msgIds
@param tran | [
"This",
"method",
"will",
"return",
"and",
"delete",
"a",
"set",
"of",
"messages",
"currently",
"locked",
"by",
"the",
"messaging",
"engine",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.server/src/com/ibm/ws/sib/comms/server/clientsupport/CATBifurcatedConsumer.java#L269-L344 |
66,854 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/NoRethrowSecurityManager.java | NoRethrowSecurityManager.getCodeSource | public String getCodeSource(ProtectionDomain pd) {
CodeSource cs = pd.getCodeSource();
String csStr = null;
if (cs == null) {
csStr = "null code source";
} else {
URL url = cs.getLocation();
if (url == null) {
csStr = "null code ... | java | public String getCodeSource(ProtectionDomain pd) {
CodeSource cs = pd.getCodeSource();
String csStr = null;
if (cs == null) {
csStr = "null code source";
} else {
URL url = cs.getLocation();
if (url == null) {
csStr = "null code ... | [
"public",
"String",
"getCodeSource",
"(",
"ProtectionDomain",
"pd",
")",
"{",
"CodeSource",
"cs",
"=",
"pd",
".",
"getCodeSource",
"(",
")",
";",
"String",
"csStr",
"=",
"null",
";",
"if",
"(",
"cs",
"==",
"null",
")",
"{",
"csStr",
"=",
"\"null code sou... | Find the code source based on the protection domain | [
"Find",
"the",
"code",
"source",
"based",
"on",
"the",
"protection",
"domain"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/NoRethrowSecurityManager.java#L213-L237 |
66,855 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/NoRethrowSecurityManager.java | NoRethrowSecurityManager.permissionToString | public String permissionToString(java.security.CodeSource cs, ClassLoader classloaderClass,
PermissionCollection col) {
StringBuffer buf = new StringBuffer("ClassLoader: ");
if (classloaderClass == null) {
buf.append("Primordial Classloader");
}... | java | public String permissionToString(java.security.CodeSource cs, ClassLoader classloaderClass,
PermissionCollection col) {
StringBuffer buf = new StringBuffer("ClassLoader: ");
if (classloaderClass == null) {
buf.append("Primordial Classloader");
}... | [
"public",
"String",
"permissionToString",
"(",
"java",
".",
"security",
".",
"CodeSource",
"cs",
",",
"ClassLoader",
"classloaderClass",
",",
"PermissionCollection",
"col",
")",
"{",
"StringBuffer",
"buf",
"=",
"new",
"StringBuffer",
"(",
"\"ClassLoader: \"",
")",
... | Print out permissions granted to a CodeSource. | [
"Print",
"out",
"permissions",
"granted",
"to",
"a",
"CodeSource",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/NoRethrowSecurityManager.java#L243-L273 |
66,856 | OpenLiberty/open-liberty | dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/NoRethrowSecurityManager.java | NoRethrowSecurityManager.isOffendingClass | boolean isOffendingClass(Class<?>[] classes, int j, ProtectionDomain pd2, Permission inPerm) {
// Return true if ...
return (!classes[j].getName().startsWith("java")) && // as long as not
// starting with
... | java | boolean isOffendingClass(Class<?>[] classes, int j, ProtectionDomain pd2, Permission inPerm) {
// Return true if ...
return (!classes[j].getName().startsWith("java")) && // as long as not
// starting with
... | [
"boolean",
"isOffendingClass",
"(",
"Class",
"<",
"?",
">",
"[",
"]",
"classes",
",",
"int",
"j",
",",
"ProtectionDomain",
"pd2",
",",
"Permission",
"inPerm",
")",
"{",
"// Return true if ...",
"return",
"(",
"!",
"classes",
"[",
"j",
"]",
".",
"getName",
... | isOffendingClass determines the offending class from the classes defined
in the stack. | [
"isOffendingClass",
"determines",
"the",
"offending",
"class",
"from",
"the",
"classes",
"defined",
"in",
"the",
"stack",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.kernel.boot.nested/src/com/ibm/ws/kernel/launch/internal/NoRethrowSecurityManager.java#L280-L295 |
66,857 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaBatchMessageDeletionDispatcher.java | SibRaBatchMessageDeletionDispatcher.cleanup | protected void cleanup() {
final String methodName = "cleanup";
if (TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName);
}
super.cleanup();
if (_successfulMessages.size() > 0) {
try {
deleteMessages(getMessageHandles(_succes... | java | protected void cleanup() {
final String methodName = "cleanup";
if (TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName);
}
super.cleanup();
if (_successfulMessages.size() > 0) {
try {
deleteMessages(getMessageHandles(_succes... | [
"protected",
"void",
"cleanup",
"(",
")",
"{",
"final",
"String",
"methodName",
"=",
"\"cleanup\"",
";",
"if",
"(",
"TRACE",
".",
"isEntryEnabled",
"(",
")",
")",
"{",
"SibTr",
".",
"entry",
"(",
"this",
",",
"TRACE",
",",
"methodName",
")",
";",
"}",
... | Invoked after all messages in the batch have been delivered. Deletes any
successful messages. | [
"Invoked",
"after",
"all",
"messages",
"in",
"the",
"batch",
"have",
"been",
"delivered",
".",
"Deletes",
"any",
"successful",
"messages",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/ra/inbound/impl/SibRaBatchMessageDeletionDispatcher.java#L134-L169 |
66,858 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/context/ExternalContext.java | ExternalContext.getContextName | public String getContextName()
{
ExternalContext ctx = _MyFacesExternalContextHelper.firstInstance.get();
if (ctx == null)
{
throw new UnsupportedOperationException();
}
return ctx.getContextName();
} | java | public String getContextName()
{
ExternalContext ctx = _MyFacesExternalContextHelper.firstInstance.get();
if (ctx == null)
{
throw new UnsupportedOperationException();
}
return ctx.getContextName();
} | [
"public",
"String",
"getContextName",
"(",
")",
"{",
"ExternalContext",
"ctx",
"=",
"_MyFacesExternalContextHelper",
".",
"firstInstance",
".",
"get",
"(",
")",
";",
"if",
"(",
"ctx",
"==",
"null",
")",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
... | Returns the name of the underlying context
@return the name or null
@since 2.0 | [
"Returns",
"the",
"name",
"of",
"the",
"underlying",
"context"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.jsf.2.2/src/javax/faces/context/ExternalContext.java#L156-L166 |
66,859 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java | AppClassLoader.addTransformer | @Override
public boolean addTransformer(final ClassFileTransformer cft) {
transformers.add(cft);
// Also recursively register with parent(s), until a non-AppClassLoader or GlobalSharedLibrary loader is encountered.
if (parent instanceof AppClassLoader) {
if (Util.isGlobalSharedL... | java | @Override
public boolean addTransformer(final ClassFileTransformer cft) {
transformers.add(cft);
// Also recursively register with parent(s), until a non-AppClassLoader or GlobalSharedLibrary loader is encountered.
if (parent instanceof AppClassLoader) {
if (Util.isGlobalSharedL... | [
"@",
"Override",
"public",
"boolean",
"addTransformer",
"(",
"final",
"ClassFileTransformer",
"cft",
")",
"{",
"transformers",
".",
"add",
"(",
"cft",
")",
";",
"// Also recursively register with parent(s), until a non-AppClassLoader or GlobalSharedLibrary loader is encountered."... | Spring method to register the given ClassFileTransformer on this ClassLoader | [
"Spring",
"method",
"to",
"register",
"the",
"given",
"ClassFileTransformer",
"on",
"this",
"ClassLoader"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L135-L150 |
66,860 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java | AppClassLoader.getBundle | @Override
public Bundle getBundle() {
return parent instanceof GatewayClassLoader ? ((GatewayClassLoader) parent).getBundle() : parent instanceof LibertyLoader ? ((LibertyLoader) parent).getBundle() : null;
} | java | @Override
public Bundle getBundle() {
return parent instanceof GatewayClassLoader ? ((GatewayClassLoader) parent).getBundle() : parent instanceof LibertyLoader ? ((LibertyLoader) parent).getBundle() : null;
} | [
"@",
"Override",
"public",
"Bundle",
"getBundle",
"(",
")",
"{",
"return",
"parent",
"instanceof",
"GatewayClassLoader",
"?",
"(",
"(",
"GatewayClassLoader",
")",
"parent",
")",
".",
"getBundle",
"(",
")",
":",
"parent",
"instanceof",
"LibertyLoader",
"?",
"("... | Returns the Bundle of the Top Level class loader | [
"Returns",
"the",
"Bundle",
"of",
"the",
"Top",
"Level",
"class",
"loader"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L242-L245 |
66,861 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java | AppClassLoader.definePackage | @FFDCIgnore(value = { IllegalArgumentException.class })
private void definePackage(ByteResourceInformation byteResourceInformation, String packageName) {
// If the package is in a JAR then we can load the JAR manifest to see what package definitions it's got
Manifest manifest = byteResourceInformati... | java | @FFDCIgnore(value = { IllegalArgumentException.class })
private void definePackage(ByteResourceInformation byteResourceInformation, String packageName) {
// If the package is in a JAR then we can load the JAR manifest to see what package definitions it's got
Manifest manifest = byteResourceInformati... | [
"@",
"FFDCIgnore",
"(",
"value",
"=",
"{",
"IllegalArgumentException",
".",
"class",
"}",
")",
"private",
"void",
"definePackage",
"(",
"ByteResourceInformation",
"byteResourceInformation",
",",
"String",
"packageName",
")",
"{",
"// If the package is in a JAR then we can... | This method will define the package using the byteResourceInformation for a class to get the URL for this package to try to load a manifest. If a manifest can't be loaded
from the URL it will create the package with no package versioning or sealing information.
@param byteResourceInformation The information about the ... | [
"This",
"method",
"will",
"define",
"the",
"package",
"using",
"the",
"byteResourceInformation",
"for",
"a",
"class",
"to",
"get",
"the",
"URL",
"for",
"this",
"package",
"to",
"try",
"to",
"load",
"a",
"manifest",
".",
"If",
"a",
"manifest",
"can",
"t",
... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L439-L455 |
66,862 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java | AppClassLoader.findClassCommonLibraryClassLoaders | @FFDCIgnore(ClassNotFoundException.class)
private Class<?> findClassCommonLibraryClassLoaders(String name) throws ClassNotFoundException {
for (LibertyLoader cl : delegateLoaders) {
try {
return cl.findClass(name);
} catch (ClassNotFoundException e) {
... | java | @FFDCIgnore(ClassNotFoundException.class)
private Class<?> findClassCommonLibraryClassLoaders(String name) throws ClassNotFoundException {
for (LibertyLoader cl : delegateLoaders) {
try {
return cl.findClass(name);
} catch (ClassNotFoundException e) {
... | [
"@",
"FFDCIgnore",
"(",
"ClassNotFoundException",
".",
"class",
")",
"private",
"Class",
"<",
"?",
">",
"findClassCommonLibraryClassLoaders",
"(",
"String",
"name",
")",
"throws",
"ClassNotFoundException",
"{",
"for",
"(",
"LibertyLoader",
"cl",
":",
"delegateLoader... | Search for the class using the common library classloaders.
@param name The class name.
@return The class, if found.
@throws ClassNotFoundException if the class isn't found. | [
"Search",
"for",
"the",
"class",
"using",
"the",
"common",
"library",
"classloaders",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L534-L545 |
66,863 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java | AppClassLoader.findResourceCommonLibraryClassLoaders | private URL findResourceCommonLibraryClassLoaders(String name) {
for (LibertyLoader cl : delegateLoaders) {
URL url = cl.findResource(name);
if (url != null) {
return url;
}
}
// If we reached here, then the resource was not found.
retu... | java | private URL findResourceCommonLibraryClassLoaders(String name) {
for (LibertyLoader cl : delegateLoaders) {
URL url = cl.findResource(name);
if (url != null) {
return url;
}
}
// If we reached here, then the resource was not found.
retu... | [
"private",
"URL",
"findResourceCommonLibraryClassLoaders",
"(",
"String",
"name",
")",
"{",
"for",
"(",
"LibertyLoader",
"cl",
":",
"delegateLoaders",
")",
"{",
"URL",
"url",
"=",
"cl",
".",
"findResource",
"(",
"name",
")",
";",
"if",
"(",
"url",
"!=",
"n... | Search for the resource using the common library classloaders.
@param name The resource name.
@return The resource, if found. Otherwise null. | [
"Search",
"for",
"the",
"resource",
"using",
"the",
"common",
"library",
"classloaders",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L554-L563 |
66,864 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java | AppClassLoader.findResourcesCommonLibraryClassLoaders | private CompositeEnumeration<URL> findResourcesCommonLibraryClassLoaders(String name, CompositeEnumeration<URL> enumerations) throws IOException {
for (LibertyLoader cl : delegateLoaders) {
enumerations.add(cl.findResources(name));
}
return enumerations;
} | java | private CompositeEnumeration<URL> findResourcesCommonLibraryClassLoaders(String name, CompositeEnumeration<URL> enumerations) throws IOException {
for (LibertyLoader cl : delegateLoaders) {
enumerations.add(cl.findResources(name));
}
return enumerations;
} | [
"private",
"CompositeEnumeration",
"<",
"URL",
">",
"findResourcesCommonLibraryClassLoaders",
"(",
"String",
"name",
",",
"CompositeEnumeration",
"<",
"URL",
">",
"enumerations",
")",
"throws",
"IOException",
"{",
"for",
"(",
"LibertyLoader",
"cl",
":",
"delegateLoade... | Search for the resources using the common library classloaders.
@param name The resource name.
@param enumerations A CompositeEnumeration<URL>, which is populated by this method.
@return The enumerations parameter is populated by this method and returned. It contains
all the resources found under all the common libra... | [
"Search",
"for",
"the",
"resources",
"using",
"the",
"common",
"library",
"classloaders",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L574-L579 |
66,865 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java | AppClassLoader.copyLibraryElementsToClasspath | private void copyLibraryElementsToClasspath(Library library) {
Collection<File> files = library.getFiles();
addToClassPath(library.getContainers());
if (files != null && !!!files.isEmpty()) {
for (File file : files) {
nativeLibraryFiles.add(file);
}
... | java | private void copyLibraryElementsToClasspath(Library library) {
Collection<File> files = library.getFiles();
addToClassPath(library.getContainers());
if (files != null && !!!files.isEmpty()) {
for (File file : files) {
nativeLibraryFiles.add(file);
}
... | [
"private",
"void",
"copyLibraryElementsToClasspath",
"(",
"Library",
"library",
")",
"{",
"Collection",
"<",
"File",
">",
"files",
"=",
"library",
".",
"getFiles",
"(",
")",
";",
"addToClassPath",
"(",
"library",
".",
"getContainers",
"(",
")",
")",
";",
"if... | Takes the Files and Folders from the Library
and adds them to the various classloader classpaths
@param library | [
"Takes",
"the",
"Files",
"and",
"Folders",
"from",
"the",
"Library",
"and",
"adds",
"them",
"to",
"the",
"various",
"classloader",
"classpaths"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L597-L613 |
66,866 | OpenLiberty/open-liberty | dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java | AppClassLoader.checkLib | private static boolean checkLib(final File f, String basename) {
boolean fExists = System.getSecurityManager() == null ? f.exists() : AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
@Override
public Boolean run() {
return f.exists();
}
... | java | private static boolean checkLib(final File f, String basename) {
boolean fExists = System.getSecurityManager() == null ? f.exists() : AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
@Override
public Boolean run() {
return f.exists();
}
... | [
"private",
"static",
"boolean",
"checkLib",
"(",
"final",
"File",
"f",
",",
"String",
"basename",
")",
"{",
"boolean",
"fExists",
"=",
"System",
".",
"getSecurityManager",
"(",
")",
"==",
"null",
"?",
"f",
".",
"exists",
"(",
")",
":",
"AccessController",
... | Check if the given file's name matches the given library basename.
@param f The file to check.
@param basename The basename to compare the file against.
@return true if the file exists and its name matches the given basename.
false otherwise. | [
"Check",
"if",
"the",
"given",
"file",
"s",
"name",
"matches",
"the",
"given",
"library",
"basename",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java#L635-L644 |
66,867 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/el/CompositeComponentELUtils.java | CompositeComponentELUtils.removeCompositeComponentForResolver | public static void removeCompositeComponentForResolver(FacesContext facesContext)
{
List<UIComponent> list = (List<UIComponent>) facesContext.getAttributes().get(CURRENT_COMPOSITE_COMPONENT_KEY);
if (list != null)
{
list.remove(list.size()-1);
}
} | java | public static void removeCompositeComponentForResolver(FacesContext facesContext)
{
List<UIComponent> list = (List<UIComponent>) facesContext.getAttributes().get(CURRENT_COMPOSITE_COMPONENT_KEY);
if (list != null)
{
list.remove(list.size()-1);
}
} | [
"public",
"static",
"void",
"removeCompositeComponentForResolver",
"(",
"FacesContext",
"facesContext",
")",
"{",
"List",
"<",
"UIComponent",
">",
"list",
"=",
"(",
"List",
"<",
"UIComponent",
">",
")",
"facesContext",
".",
"getAttributes",
"(",
")",
".",
"get",... | Removes the composite component from the attribute map of the FacesContext.
@param facesContext | [
"Removes",
"the",
"composite",
"component",
"from",
"the",
"attribute",
"map",
"of",
"the",
"FacesContext",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/el/CompositeComponentELUtils.java#L453-L460 |
66,868 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java | HttpEndpointImpl.processHttpChainWork | public void processHttpChainWork(boolean enableEndpoint, boolean isPause) {
if (enableEndpoint) {
// enable the endpoint if it is currently disabled
// it's ok if the endpoint is stopped, the config update will occur @ next start
endpointState.compareAndSet(DISABLED, ENABLED)... | java | public void processHttpChainWork(boolean enableEndpoint, boolean isPause) {
if (enableEndpoint) {
// enable the endpoint if it is currently disabled
// it's ok if the endpoint is stopped, the config update will occur @ next start
endpointState.compareAndSet(DISABLED, ENABLED)... | [
"public",
"void",
"processHttpChainWork",
"(",
"boolean",
"enableEndpoint",
",",
"boolean",
"isPause",
")",
"{",
"if",
"(",
"enableEndpoint",
")",
"{",
"// enable the endpoint if it is currently disabled",
"// it's ok if the endpoint is stopped, the config update will occur @ next ... | Process HTTP chain work.
@param enableEndpoint True to enable the associated HTTP chain. False, to disable it.
@param isPause True if this call is being made for pause endpoint processing. | [
"Process",
"HTTP",
"chain",
"work",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java#L344-L376 |
66,869 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java | HttpEndpointImpl.shutdownFramework | @FFDCIgnore(Exception.class)
final void shutdownFramework() {
Tr.audit(tc, "httpChain.error.shutdown", name);
try {
Bundle bundle = bundleContext.getBundle(Constants.SYSTEM_BUNDLE_LOCATION);
if (bundle != null)
bundle.stop();
} catch (Exception e) {
... | java | @FFDCIgnore(Exception.class)
final void shutdownFramework() {
Tr.audit(tc, "httpChain.error.shutdown", name);
try {
Bundle bundle = bundleContext.getBundle(Constants.SYSTEM_BUNDLE_LOCATION);
if (bundle != null)
bundle.stop();
} catch (Exception e) {
... | [
"@",
"FFDCIgnore",
"(",
"Exception",
".",
"class",
")",
"final",
"void",
"shutdownFramework",
"(",
")",
"{",
"Tr",
".",
"audit",
"(",
"tc",
",",
"\"httpChain.error.shutdown\"",
",",
"name",
")",
";",
"try",
"{",
"Bundle",
"bundle",
"=",
"bundleContext",
".... | When an error occurs during startup and the config variable
fail.on.error.enabled is true,
then this method is used to stop the root bundle thus bringing down the
OSGi framework. | [
"When",
"an",
"error",
"occurs",
"during",
"startup",
"and",
"the",
"config",
"variable",
"fail",
".",
"on",
".",
"error",
".",
"enabled",
"is",
"true",
"then",
"this",
"method",
"is",
"used",
"to",
"stop",
"the",
"root",
"bundle",
"thus",
"bringing",
"d... | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java#L392-L405 |
66,870 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java | HttpEndpointImpl.setSslOptions | @Trivial
@Reference(name = "sslOptions",
service = ChannelConfiguration.class,
policy = ReferencePolicy.DYNAMIC,
policyOption = ReferencePolicyOption.GREEDY,
cardinality = ReferenceCardinality.OPTIONAL)
protected void setSslOptions(ServiceReference<Cha... | java | @Trivial
@Reference(name = "sslOptions",
service = ChannelConfiguration.class,
policy = ReferencePolicy.DYNAMIC,
policyOption = ReferencePolicyOption.GREEDY,
cardinality = ReferenceCardinality.OPTIONAL)
protected void setSslOptions(ServiceReference<Cha... | [
"@",
"Trivial",
"@",
"Reference",
"(",
"name",
"=",
"\"sslOptions\"",
",",
"service",
"=",
"ChannelConfiguration",
".",
"class",
",",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"policyOption",
"=",
"ReferencePolicyOption",
".",
"GREEDY",
",",
"cardin... | The specific sslOptions is selected by a filter set through metatype that matches a specific
user-configured option set or falls back to a default.
@param service | [
"The",
"specific",
"sslOptions",
"is",
"selected",
"by",
"a",
"filter",
"set",
"through",
"metatype",
"that",
"matches",
"a",
"specific",
"user",
"-",
"configured",
"option",
"set",
"or",
"falls",
"back",
"to",
"a",
"default",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java#L496-L510 |
66,871 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java | HttpEndpointImpl.setRemoteIp | @Trivial
@Reference(name = "remoteIp",
service = ChannelConfiguration.class,
policy = ReferencePolicy.DYNAMIC,
policyOption = ReferencePolicyOption.GREEDY,
cardinality = ReferenceCardinality.MANDATORY)
protected void setRemoteIp(ChannelConfiguration co... | java | @Trivial
@Reference(name = "remoteIp",
service = ChannelConfiguration.class,
policy = ReferencePolicy.DYNAMIC,
policyOption = ReferencePolicyOption.GREEDY,
cardinality = ReferenceCardinality.MANDATORY)
protected void setRemoteIp(ChannelConfiguration co... | [
"@",
"Trivial",
"@",
"Reference",
"(",
"name",
"=",
"\"remoteIp\"",
",",
"service",
"=",
"ChannelConfiguration",
".",
"class",
",",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
",",
"policyOption",
"=",
"ReferencePolicyOption",
".",
"GREEDY",
",",
"cardinal... | The specific remoteIpOptions is selected by a filter set through metatype that matches a specific user-configured option set or falls back to a default.
@param service | [
"The",
"specific",
"remoteIpOptions",
"is",
"selected",
"by",
"a",
"filter",
"set",
"through",
"metatype",
"that",
"matches",
"a",
"specific",
"user",
"-",
"configured",
"option",
"set",
"or",
"falls",
"back",
"to",
"a",
"default",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java#L618-L632 |
66,872 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java | HttpEndpointImpl.setExecutorService | @Reference(name = "executorService", service = ExecutorService.class, policy = ReferencePolicy.DYNAMIC)
protected void setExecutorService(ServiceReference<ExecutorService> executorService) {
this.executorService.setReference(executorService);
} | java | @Reference(name = "executorService", service = ExecutorService.class, policy = ReferencePolicy.DYNAMIC)
protected void setExecutorService(ServiceReference<ExecutorService> executorService) {
this.executorService.setReference(executorService);
} | [
"@",
"Reference",
"(",
"name",
"=",
"\"executorService\"",
",",
"service",
"=",
"ExecutorService",
".",
"class",
",",
"policy",
"=",
"ReferencePolicy",
".",
"DYNAMIC",
")",
"protected",
"void",
"setExecutorService",
"(",
"ServiceReference",
"<",
"ExecutorService",
... | DS method for setting the required dynamic executor service reference.
@param bundle | [
"DS",
"method",
"for",
"setting",
"the",
"required",
"dynamic",
"executor",
"service",
"reference",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java#L678-L681 |
66,873 | OpenLiberty/open-liberty | dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java | HttpEndpointImpl.performAction | @Trivial
private void performAction(Runnable action, boolean addToQueue) {
ExecutorService exec = executorService.getService();
if (exec == null) {
// If we can't find the executor service, we have to run it in place.
action.run();
} else {
// If we can f... | java | @Trivial
private void performAction(Runnable action, boolean addToQueue) {
ExecutorService exec = executorService.getService();
if (exec == null) {
// If we can't find the executor service, we have to run it in place.
action.run();
} else {
// If we can f... | [
"@",
"Trivial",
"private",
"void",
"performAction",
"(",
"Runnable",
"action",
",",
"boolean",
"addToQueue",
")",
"{",
"ExecutorService",
"exec",
"=",
"executorService",
".",
"getService",
"(",
")",
";",
"if",
"(",
"exec",
"==",
"null",
")",
"{",
"// If we c... | Schedule an activity to run off the SCR action thread,
if the ExecutorService is available
@param action Runnable action to execute
@param addToQueue Set to false if the action should be scheduled independently of the actionQueue | [
"Schedule",
"an",
"activity",
"to",
"run",
"off",
"the",
"SCR",
"action",
"thread",
"if",
"the",
"ExecutorService",
"is",
"available"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/internal/HttpEndpointImpl.java#L748-L782 |
66,874 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThroughputDistribution.java | ThroughputDistribution.reset | synchronized void reset(double value, int updated) {
ewma = value;
ewmaStddev = value * SINGLE_VALUE_STDDEV;
ewmaVariance = ewmaStddev * ewmaStddev;
consecutiveOutliers = 0;
lastUpdate = updated;
} | java | synchronized void reset(double value, int updated) {
ewma = value;
ewmaStddev = value * SINGLE_VALUE_STDDEV;
ewmaVariance = ewmaStddev * ewmaStddev;
consecutiveOutliers = 0;
lastUpdate = updated;
} | [
"synchronized",
"void",
"reset",
"(",
"double",
"value",
",",
"int",
"updated",
")",
"{",
"ewma",
"=",
"value",
";",
"ewmaStddev",
"=",
"value",
"*",
"SINGLE_VALUE_STDDEV",
";",
"ewmaVariance",
"=",
"ewmaStddev",
"*",
"ewmaStddev",
";",
"consecutiveOutliers",
... | Reset the distribution by throwing away all history and
adding a single data point.
@param value the single data point that makes up the distribution | [
"Reset",
"the",
"distribution",
"by",
"throwing",
"away",
"all",
"history",
"and",
"adding",
"a",
"single",
"data",
"point",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThroughputDistribution.java#L95-L101 |
66,875 | OpenLiberty/open-liberty | dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThroughputDistribution.java | ThroughputDistribution.addDataPoint | synchronized void addDataPoint(double value, int updated) {
// 8/10/2012: Force the standard deviation to 1/3 of the first data point
// 8/11:2012: Force it to 1/6th of the first data point (more accurate)
if (ewmaVariance == Double.NEGATIVE_INFINITY) {
reset(value, updated);
... | java | synchronized void addDataPoint(double value, int updated) {
// 8/10/2012: Force the standard deviation to 1/3 of the first data point
// 8/11:2012: Force it to 1/6th of the first data point (more accurate)
if (ewmaVariance == Double.NEGATIVE_INFINITY) {
reset(value, updated);
... | [
"synchronized",
"void",
"addDataPoint",
"(",
"double",
"value",
",",
"int",
"updated",
")",
"{",
"// 8/10/2012: Force the standard deviation to 1/3 of the first data point",
"// 8/11:2012: Force it to 1/6th of the first data point (more accurate)",
"if",
"(",
"ewmaVariance",
"==",
... | Add a throughput observation to the distribution, setting lastUpdate
@param value the observed throughput | [
"Add",
"a",
"throughput",
"observation",
"to",
"the",
"distribution",
"setting",
"lastUpdate"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.threading/src/com/ibm/ws/threading/internal/ThroughputDistribution.java#L143-L159 |
66,876 | OpenLiberty/open-liberty | dev/com.ibm.websphere.javaee.el.3.0/src/javax/el/Util.java | Util.handleThrowable | static void handleThrowable(Throwable t) {
if (t instanceof ThreadDeath) {
throw (ThreadDeath) t;
}
if (t instanceof VirtualMachineError) {
throw (VirtualMachineError) t;
}
// All other instances of Throwable will be silently swallowed
} | java | static void handleThrowable(Throwable t) {
if (t instanceof ThreadDeath) {
throw (ThreadDeath) t;
}
if (t instanceof VirtualMachineError) {
throw (VirtualMachineError) t;
}
// All other instances of Throwable will be silently swallowed
} | [
"static",
"void",
"handleThrowable",
"(",
"Throwable",
"t",
")",
"{",
"if",
"(",
"t",
"instanceof",
"ThreadDeath",
")",
"{",
"throw",
"(",
"ThreadDeath",
")",
"t",
";",
"}",
"if",
"(",
"t",
"instanceof",
"VirtualMachineError",
")",
"{",
"throw",
"(",
"Vi... | Checks whether the supplied Throwable is one that needs to be
rethrown and swallows all others.
@param t the Throwable to check | [
"Checks",
"whether",
"the",
"supplied",
"Throwable",
"is",
"one",
"that",
"needs",
"to",
"be",
"rethrown",
"and",
"swallows",
"all",
"others",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.websphere.javaee.el.3.0/src/javax/el/Util.java#L48-L56 |
66,877 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/cache/Cache.java | Cache.isEvictionRequired | protected boolean isEvictionRequired() {
boolean evictionRequired = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
int size = primaryTable.size() + secondaryTable.size() + tertiaryTable.size();
Tr.debug(tc, "The current cache size is " + size + "( " + p... | java | protected boolean isEvictionRequired() {
boolean evictionRequired = false;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
int size = primaryTable.size() + secondaryTable.size() + tertiaryTable.size();
Tr.debug(tc, "The current cache size is " + size + "( " + p... | [
"protected",
"boolean",
"isEvictionRequired",
"(",
")",
"{",
"boolean",
"evictionRequired",
"=",
"false",
";",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isDebugEnabled",
"(",
")",
")",
"{",
"int",
"size",
"=",
"prim... | Determine if the cache is "full" and entries need
to be evicted. | [
"Determine",
"if",
"the",
"cache",
"is",
""",
";",
"full"",
";",
"and",
"entries",
"need",
"to",
"be",
"evicted",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.authentication.builtin/src/com/ibm/ws/security/authentication/internal/cache/Cache.java#L190-L209 |
66,878 | OpenLiberty/open-liberty | dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/ee6/MyFacesContainerInitializer.java | MyFacesContainerInitializer.isDelegatedFacesServlet | private boolean isDelegatedFacesServlet(String className)
{
if (className == null)
{
// The class name can be null if this is e.g., a JSP mapped to
// a servlet.
return false;
}
try
{
Class<?> clazz = Class.forName(className);
... | java | private boolean isDelegatedFacesServlet(String className)
{
if (className == null)
{
// The class name can be null if this is e.g., a JSP mapped to
// a servlet.
return false;
}
try
{
Class<?> clazz = Class.forName(className);
... | [
"private",
"boolean",
"isDelegatedFacesServlet",
"(",
"String",
"className",
")",
"{",
"if",
"(",
"className",
"==",
"null",
")",
"{",
"// The class name can be null if this is e.g., a JSP mapped to",
"// a servlet.",
"return",
"false",
";",
"}",
"try",
"{",
"Class",
... | Checks if the class represented by className implements DelegatedFacesServlet.
@param className
@return | [
"Checks",
"if",
"the",
"class",
"represented",
"by",
"className",
"implements",
"DelegatedFacesServlet",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/ee6/MyFacesContainerInitializer.java#L287-L305 |
66,879 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java | PmiRegistry.unregisterModule | public static synchronized void unregisterModule(PmiModule instance) {
if (disabled)
return;
if (instance == null) // || instance.getPath().length<=1) return;
return;
// check if the path has null in it. if a module is unregistered twice
// the path will have nul... | java | public static synchronized void unregisterModule(PmiModule instance) {
if (disabled)
return;
if (instance == null) // || instance.getPath().length<=1) return;
return;
// check if the path has null in it. if a module is unregistered twice
// the path will have nul... | [
"public",
"static",
"synchronized",
"void",
"unregisterModule",
"(",
"PmiModule",
"instance",
")",
"{",
"if",
"(",
"disabled",
")",
"return",
";",
"if",
"(",
"instance",
"==",
"null",
")",
"// || instance.getPath().length<=1) return;",
"return",
";",
"// check if th... | remove module - never remove TYPE_MODULE. | [
"remove",
"module",
"-",
"never",
"remove",
"TYPE_MODULE",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java#L265-L316 |
66,880 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java | PmiRegistry.getModuleAggregate | protected static ModuleAggregate getModuleAggregate(String moduleID) {
ModuleAggregate aggregate = (ModuleAggregate) moduleAggregates.get(moduleID);
if (aggregate != null)
return aggregate;
// need to create it - synchronized
synchronized (moduleAggregates) {
aggr... | java | protected static ModuleAggregate getModuleAggregate(String moduleID) {
ModuleAggregate aggregate = (ModuleAggregate) moduleAggregates.get(moduleID);
if (aggregate != null)
return aggregate;
// need to create it - synchronized
synchronized (moduleAggregates) {
aggr... | [
"protected",
"static",
"ModuleAggregate",
"getModuleAggregate",
"(",
"String",
"moduleID",
")",
"{",
"ModuleAggregate",
"aggregate",
"=",
"(",
"ModuleAggregate",
")",
"moduleAggregates",
".",
"get",
"(",
"moduleID",
")",
";",
"if",
"(",
"aggregate",
"!=",
"null",
... | create it if not there - synchronized | [
"create",
"it",
"if",
"not",
"there",
"-",
"synchronized"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java#L347-L363 |
66,881 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java | PmiRegistry.findModuleItem | public static ModuleItem findModuleItem(String[] path) {
if (disabled)
return null;
if (path == null || path[0].equals(APPSERVER_MODULE)) {
return moduleRoot;
}
return moduleRoot.find(path, 0);
} | java | public static ModuleItem findModuleItem(String[] path) {
if (disabled)
return null;
if (path == null || path[0].equals(APPSERVER_MODULE)) {
return moduleRoot;
}
return moduleRoot.find(path, 0);
} | [
"public",
"static",
"ModuleItem",
"findModuleItem",
"(",
"String",
"[",
"]",
"path",
")",
"{",
"if",
"(",
"disabled",
")",
"return",
"null",
";",
"if",
"(",
"path",
"==",
"null",
"||",
"path",
"[",
"0",
"]",
".",
"equals",
"(",
"APPSERVER_MODULE",
")",... | find a ModuleItem | [
"find",
"a",
"ModuleItem"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java#L411-L418 |
66,882 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java | PmiRegistry.getInstrumentationLevel | public static StatLevelSpec[] getInstrumentationLevel(StatDescriptor sd, boolean recursive) {
if (disabled)
return null;
ModuleItem item = findModuleItem(sd.getPath());
if (item == null) { // wrong moduleName
return null;
} else {
if (!recursive) {
... | java | public static StatLevelSpec[] getInstrumentationLevel(StatDescriptor sd, boolean recursive) {
if (disabled)
return null;
ModuleItem item = findModuleItem(sd.getPath());
if (item == null) { // wrong moduleName
return null;
} else {
if (!recursive) {
... | [
"public",
"static",
"StatLevelSpec",
"[",
"]",
"getInstrumentationLevel",
"(",
"StatDescriptor",
"sd",
",",
"boolean",
"recursive",
")",
"{",
"if",
"(",
"disabled",
")",
"return",
"null",
";",
"ModuleItem",
"item",
"=",
"findModuleItem",
"(",
"sd",
".",
"getPa... | 6.0 API | [
"6",
".",
"0",
"API"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java#L664-L690 |
66,883 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java | PmiRegistry.getInstrumentationLevel | public static int getInstrumentationLevel(String[] path) {
if (disabled)
return LEVEL_UNDEFINED;
DataDescriptor dd = new DataDescriptor(path);
ModuleItem item = findModuleItem(dd);
if (item == null) { // wrong moduleName
return LEVEL_UNDEFINED;
} else {
... | java | public static int getInstrumentationLevel(String[] path) {
if (disabled)
return LEVEL_UNDEFINED;
DataDescriptor dd = new DataDescriptor(path);
ModuleItem item = findModuleItem(dd);
if (item == null) { // wrong moduleName
return LEVEL_UNDEFINED;
} else {
... | [
"public",
"static",
"int",
"getInstrumentationLevel",
"(",
"String",
"[",
"]",
"path",
")",
"{",
"if",
"(",
"disabled",
")",
"return",
"LEVEL_UNDEFINED",
";",
"DataDescriptor",
"dd",
"=",
"new",
"DataDescriptor",
"(",
"path",
")",
";",
"ModuleItem",
"item",
... | get instrumenation level based on the path during runtime | [
"get",
"instrumenation",
"level",
"based",
"on",
"the",
"path",
"during",
"runtime"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java#L819-L829 |
66,884 | OpenLiberty/open-liberty | dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java | PmiRegistry.getInstrumentationLevelString | public static String getInstrumentationLevelString() {
if (disabled)
return null;
Map modules = moduleRoot.children;
if (modules == null) {
return "";
} else {
PerfLevelDescriptor[] plds = new PerfLevelDescriptor[modules.size()];
Iterator v... | java | public static String getInstrumentationLevelString() {
if (disabled)
return null;
Map modules = moduleRoot.children;
if (modules == null) {
return "";
} else {
PerfLevelDescriptor[] plds = new PerfLevelDescriptor[modules.size()];
Iterator v... | [
"public",
"static",
"String",
"getInstrumentationLevelString",
"(",
")",
"{",
"if",
"(",
"disabled",
")",
"return",
"null",
";",
"Map",
"modules",
"=",
"moduleRoot",
".",
"children",
";",
"if",
"(",
"modules",
"==",
"null",
")",
"{",
"return",
"\"\"",
";",... | return the top level modules's PerfLevelDescriptor in String | [
"return",
"the",
"top",
"level",
"modules",
"s",
"PerfLevelDescriptor",
"in",
"String"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.monitor/src/com/ibm/ws/pmi/server/PmiRegistry.java#L845-L863 |
66,885 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java | JwtBuilder.audience | public JwtBuilder audience(List<String> newaudiences)
throws InvalidClaimException {
// this.AUDIENCE
// if (newaudiences != null && !newaudiences.isEmpty()) {
//
// ArrayList<String> audiences = new ArrayList<String>();
// for (String aud... | java | public JwtBuilder audience(List<String> newaudiences)
throws InvalidClaimException {
// this.AUDIENCE
// if (newaudiences != null && !newaudiences.isEmpty()) {
//
// ArrayList<String> audiences = new ArrayList<String>();
// for (String aud... | [
"public",
"JwtBuilder",
"audience",
"(",
"List",
"<",
"String",
">",
"newaudiences",
")",
"throws",
"InvalidClaimException",
"{",
"// this.AUDIENCE",
"// if (newaudiences != null && !newaudiences.isEmpty()) {",
"//",
"// ArrayList<String> audiences = new ArrayList<S... | Sets audience claim. This claim in the JWT identifies the recipients that the token is intended for.
@param newaudiences
This is a list of Strings and will be used to set the "aud" claim in the {@code JwtToken}
@return {@code JwtBuilder} object
@throws InvalidClaimException
Thrown if the newaudiences is {@code null}, ... | [
"Sets",
"audience",
"claim",
".",
"This",
"claim",
"in",
"the",
"JWT",
"identifies",
"the",
"recipients",
"that",
"the",
"token",
"is",
"intended",
"for",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java#L184-L211 |
66,886 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java | JwtBuilder.signWith | public JwtBuilder signWith(String algorithm, Key key) throws KeyException {
builder = builder.signWith(algorithm, key);
return this;
} | java | public JwtBuilder signWith(String algorithm, Key key) throws KeyException {
builder = builder.signWith(algorithm, key);
return this;
} | [
"public",
"JwtBuilder",
"signWith",
"(",
"String",
"algorithm",
",",
"Key",
"key",
")",
"throws",
"KeyException",
"{",
"builder",
"=",
"builder",
".",
"signWith",
"(",
"algorithm",
",",
"key",
")",
";",
"return",
"this",
";",
"}"
] | Signing key and algorithm information.
@param algorithm
This String value represents the signing algorithm. This information will be used
to sign the {@code JwtToken}
@param key
The private key {@code Key} to use for signing JWTs.
@return {@code JwtBuilder} object
@throws KeyException
Thrown if the key is {@code null}... | [
"Signing",
"key",
"and",
"algorithm",
"information",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java#L327-L330 |
66,887 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java | JwtBuilder.claim | public JwtBuilder claim(String name, Object value)
throws InvalidClaimException {
// if (isValidClaim(name, value)) {
// if (name.equals(Claims.AUDIENCE)) {
// if (value instanceof ArrayList) {
// this.audience((ArrayList) v... | java | public JwtBuilder claim(String name, Object value)
throws InvalidClaimException {
// if (isValidClaim(name, value)) {
// if (name.equals(Claims.AUDIENCE)) {
// if (value instanceof ArrayList) {
// this.audience((ArrayList) v... | [
"public",
"JwtBuilder",
"claim",
"(",
"String",
"name",
",",
"Object",
"value",
")",
"throws",
"InvalidClaimException",
"{",
"// if (isValidClaim(name, value)) {",
"// if (name.equals(Claims.AUDIENCE)) {",
"// if (value instanceof ArrayList) {",
"// ... | Sets the specified claim.
@param name
This is a String and represents the name of the claim
@param value
This is an Object and represents the value of the claim
@return {@code JwtBuilder} object
@throws InvalidClaimException
Thrown if the claim is {@code null}, or the value is {@code null} or the value is not the corr... | [
"Sets",
"the",
"specified",
"claim",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java#L364-L437 |
66,888 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java | JwtBuilder.claim | public JwtBuilder claim(Map<String, Object> map)
throws InvalidClaimException {
// if (map == null) {
// String err = Tr.formatMessage(tc, "JWT_INVALID_CLAIMS_ERR");// "JWT_INVALID_CLAIMS_ERR";
// throw new InvalidClaimException(err);
// }
... | java | public JwtBuilder claim(Map<String, Object> map)
throws InvalidClaimException {
// if (map == null) {
// String err = Tr.formatMessage(tc, "JWT_INVALID_CLAIMS_ERR");// "JWT_INVALID_CLAIMS_ERR";
// throw new InvalidClaimException(err);
// }
... | [
"public",
"JwtBuilder",
"claim",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"map",
")",
"throws",
"InvalidClaimException",
"{",
"// if (map == null) {",
"// String err = Tr.formatMessage(tc, \"JWT_INVALID_CLAIMS_ERR\");// \"JWT_INVALID_CLAIMS_ERR\";",
"// ... | Sets the specified claims.
@param map
This is a Map and represents the collection of claim name and claim value pairs to be set in the JWT.
@return {@code JwtBuilder} object
@throws InvalidClaimException
Thrown if the claim is {@code null}, or the value is {@code null} or the value is not the correct type for the
cla... | [
"Sets",
"the",
"specified",
"claims",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java#L451-L462 |
66,889 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java | JwtBuilder.claimFrom | public JwtBuilder claimFrom(String jsonOrJwt, String claim)
throws InvalidClaimException, InvalidTokenException {
// if (JwtUtils.isNullEmpty(claim)) {
// String err = Tr.formatMessage(tc, "JWT_INVALID_CLAIM_ERR",
// new Object[] { claim });
... | java | public JwtBuilder claimFrom(String jsonOrJwt, String claim)
throws InvalidClaimException, InvalidTokenException {
// if (JwtUtils.isNullEmpty(claim)) {
// String err = Tr.formatMessage(tc, "JWT_INVALID_CLAIM_ERR",
// new Object[] { claim });
... | [
"public",
"JwtBuilder",
"claimFrom",
"(",
"String",
"jsonOrJwt",
",",
"String",
"claim",
")",
"throws",
"InvalidClaimException",
",",
"InvalidTokenException",
"{",
"// if (JwtUtils.isNullEmpty(claim)) {",
"// String err = Tr.formatMessage(tc, \"JWT_INVALID_CLAIM_ERR... | Retrieves the specified claim from the given json or jwt string.
@param jsonOrJwt
This is a String and represents either base 64 encoded or decoded JWT payload in the json format or base 64
encoded JWT
@return {@code JwtBuilder} object
@throws InvalidClaimException
Thrown if the claim is {@code null} or empty
@throws... | [
"Retrieves",
"the",
"specified",
"claim",
"from",
"the",
"given",
"json",
"or",
"jwt",
"string",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.jwt/src/com/ibm/websphere/security/jwt/JwtBuilder.java#L542-L584 |
66,890 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java | ReceiveListenerDataReceivedInvocation.getThreadContext | protected Dispatchable getThreadContext()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getThreadContext");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getThreadContext");
return null;
} | java | protected Dispatchable getThreadContext()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getThreadContext");
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "getThreadContext");
return null;
} | [
"protected",
"Dispatchable",
"getThreadContext",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"getThreadContext\"",
"... | Not needed for receive listener data invocations
@return Returns null. | [
"Not",
"needed",
"for",
"receive",
"listener",
"data",
"invocations"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java#L92-L98 |
66,891 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java | ReceiveListenerDataReceivedInvocation.invoke | protected synchronized void invoke()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "invoke");
try
{
// Pass details to implementor's conversation receive listener.
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils... | java | protected synchronized void invoke()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "invoke");
try
{
// Pass details to implementor's conversation receive listener.
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) JFapUtils... | [
"protected",
"synchronized",
"void",
"invoke",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"invoke\"",
")",
";",... | Invokes the dataReceived method. If the callback throws an exception
than the connection associated with it is invalidated. | [
"Invokes",
"the",
"dataReceived",
"method",
".",
"If",
"the",
"callback",
"throws",
"an",
"exception",
"than",
"the",
"connection",
"associated",
"with",
"it",
"is",
"invalidated",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java#L105-L135 |
66,892 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java | ReceiveListenerDataReceivedInvocation.reset | protected synchronized void reset(Connection connection,
ReceiveListener listener,
WsByteBuffer data,
int size,
int segmentType,
int requestNumber,
int priority,
... | java | protected synchronized void reset(Connection connection,
ReceiveListener listener,
WsByteBuffer data,
int size,
int segmentType,
int requestNumber,
int priority,
... | [
"protected",
"synchronized",
"void",
"reset",
"(",
"Connection",
"connection",
",",
"ReceiveListener",
"listener",
",",
"WsByteBuffer",
"data",
",",
"int",
"size",
",",
"int",
"segmentType",
",",
"int",
"requestNumber",
",",
"int",
"priority",
",",
"boolean",
"a... | Resets the state of this invocation object - used by the pooling code. | [
"Resets",
"the",
"state",
"of",
"this",
"invocation",
"object",
"-",
"used",
"by",
"the",
"pooling",
"code",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java#L138-L177 |
66,893 | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java | ReceiveListenerDataReceivedInvocation.repool | protected synchronized void repool()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "repool");
// begin F181705.5
connection = null;
listener = null;
data = null;
conversation = null;
// end F181705.5
owningPool.add(this);
... | java | protected synchronized void repool()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "repool");
// begin F181705.5
connection = null;
listener = null;
data = null;
conversation = null;
// end F181705.5
owningPool.add(this);
... | [
"protected",
"synchronized",
"void",
"repool",
"(",
")",
"{",
"if",
"(",
"TraceComponent",
".",
"isAnyTracingEnabled",
"(",
")",
"&&",
"tc",
".",
"isEntryEnabled",
"(",
")",
")",
"SibTr",
".",
"entry",
"(",
"this",
",",
"tc",
",",
"\"repool\"",
")",
";",... | Returns this object to its associated object pool. | [
"Returns",
"this",
"object",
"to",
"its",
"associated",
"object",
"pool",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.messaging.comms.client/src/com/ibm/ws/sib/jfapchannel/impl/rldispatcher/ReceiveListenerDataReceivedInvocation.java#L180-L194 |
66,894 | OpenLiberty/open-liberty | dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OidcClientUtil.java | OidcClientUtil.setCookieForRequestParameter | public static void setCookieForRequestParameter(HttpServletRequest request, HttpServletResponse response, String id, String state, boolean isHttpsRequest, ConvergedClientConfig clientCfg) {
//OidcClientConfigImpl clientCfg = activatedOidcClientImpl.getOidcClientConfig(request, id);
Map<String, String[]>... | java | public static void setCookieForRequestParameter(HttpServletRequest request, HttpServletResponse response, String id, String state, boolean isHttpsRequest, ConvergedClientConfig clientCfg) {
//OidcClientConfigImpl clientCfg = activatedOidcClientImpl.getOidcClientConfig(request, id);
Map<String, String[]>... | [
"public",
"static",
"void",
"setCookieForRequestParameter",
"(",
"HttpServletRequest",
"request",
",",
"HttpServletResponse",
"response",
",",
"String",
"id",
",",
"String",
"state",
",",
"boolean",
"isHttpsRequest",
",",
"ConvergedClientConfig",
"clientCfg",
")",
"{",
... | set the code cookie during authentication | [
"set",
"the",
"code",
"cookie",
"during",
"authentication"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.security.openidconnect.clients.common/src/com/ibm/ws/security/openidconnect/clients/common/OidcClientUtil.java#L382-L420 |
66,895 | OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/utils/JAXRSUtils.java | JAXRSUtils.getStructuredParams | public static MultivaluedMap<String, String> getStructuredParams(String query,
String sep,
boolean decode,
boolea... | java | public static MultivaluedMap<String, String> getStructuredParams(String query,
String sep,
boolean decode,
boolea... | [
"public",
"static",
"MultivaluedMap",
"<",
"String",
",",
"String",
">",
"getStructuredParams",
"(",
"String",
"query",
",",
"String",
"sep",
",",
"boolean",
"decode",
",",
"boolean",
"decodePlus",
")",
"{",
"MultivaluedMap",
"<",
"String",
",",
"String",
">",... | Retrieve map of query parameters from the passed in message
@param message
@return a Map of query parameters. | [
"Retrieve",
"map",
"of",
"query",
"parameters",
"from",
"the",
"passed",
"in",
"message"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/utils/JAXRSUtils.java#L1285-L1294 |
66,896 | OpenLiberty/open-liberty | dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/utils/JAXRSUtils.java | JAXRSUtils.intersectMimeTypes | public static List<MediaType> intersectMimeTypes(List<MediaType> requiredMediaTypes,
List<MediaType> userMediaTypes,
boolean addRequiredParamsIfPossible) {
return intersectMimeTypes(requiredMediaTypes, user... | java | public static List<MediaType> intersectMimeTypes(List<MediaType> requiredMediaTypes,
List<MediaType> userMediaTypes,
boolean addRequiredParamsIfPossible) {
return intersectMimeTypes(requiredMediaTypes, user... | [
"public",
"static",
"List",
"<",
"MediaType",
">",
"intersectMimeTypes",
"(",
"List",
"<",
"MediaType",
">",
"requiredMediaTypes",
",",
"List",
"<",
"MediaType",
">",
"userMediaTypes",
",",
"boolean",
"addRequiredParamsIfPossible",
")",
"{",
"return",
"intersectMime... | intersect two mime types
@param mimeTypesA
@param mimeTypesB
@return return a list of intersected mime types | [
"intersect",
"two",
"mime",
"types"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.org.apache.cxf.cxf.rt.frontend.jaxrs.3.2/src/org/apache/cxf/jaxrs/utils/JAXRSUtils.java#L1543-L1547 |
66,897 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java | MetricRegistryImpl.addNameToApplicationMap | protected void addNameToApplicationMap(String name) {
String appName = getApplicationName();
// If it is a base metric, the name will be null
if (appName == null)
return;
ConcurrentLinkedQueue<String> list = applicationMap.get(appName);
if (list == null) {
... | java | protected void addNameToApplicationMap(String name) {
String appName = getApplicationName();
// If it is a base metric, the name will be null
if (appName == null)
return;
ConcurrentLinkedQueue<String> list = applicationMap.get(appName);
if (list == null) {
... | [
"protected",
"void",
"addNameToApplicationMap",
"(",
"String",
"name",
")",
"{",
"String",
"appName",
"=",
"getApplicationName",
"(",
")",
";",
"// If it is a base metric, the name will be null",
"if",
"(",
"appName",
"==",
"null",
")",
"return",
";",
"ConcurrentLinke... | Adds the metric name to an application map.
This map is not a complete list of metrics owned by an application,
produced metrics are managed in the MetricsExtension
@param name | [
"Adds",
"the",
"metric",
"name",
"to",
"an",
"application",
"map",
".",
"This",
"map",
"is",
"not",
"a",
"complete",
"list",
"of",
"metrics",
"owned",
"by",
"an",
"application",
"produced",
"metrics",
"are",
"managed",
"in",
"the",
"MetricsExtension"
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java#L180-L194 |
66,898 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java | MetricRegistryImpl.getNames | @Override
public SortedSet<String> getNames() {
return Collections.unmodifiableSortedSet(new TreeSet<String>(metrics.keySet()));
} | java | @Override
public SortedSet<String> getNames() {
return Collections.unmodifiableSortedSet(new TreeSet<String>(metrics.keySet()));
} | [
"@",
"Override",
"public",
"SortedSet",
"<",
"String",
">",
"getNames",
"(",
")",
"{",
"return",
"Collections",
".",
"unmodifiableSortedSet",
"(",
"new",
"TreeSet",
"<",
"String",
">",
"(",
"metrics",
".",
"keySet",
"(",
")",
")",
")",
";",
"}"
] | Returns a set of the names of all the metrics in the registry.
@return the names of all the metrics | [
"Returns",
"a",
"set",
"of",
"the",
"names",
"of",
"all",
"the",
"metrics",
"in",
"the",
"registry",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java#L319-L322 |
66,899 | OpenLiberty/open-liberty | dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java | MetricRegistryImpl.getCounters | @Override
public SortedMap<String, Counter> getCounters(MetricFilter filter) {
return getMetrics(Counter.class, filter);
} | java | @Override
public SortedMap<String, Counter> getCounters(MetricFilter filter) {
return getMetrics(Counter.class, filter);
} | [
"@",
"Override",
"public",
"SortedMap",
"<",
"String",
",",
"Counter",
">",
"getCounters",
"(",
"MetricFilter",
"filter",
")",
"{",
"return",
"getMetrics",
"(",
"Counter",
".",
"class",
",",
"filter",
")",
";",
"}"
] | Returns a map of all the counters in the registry and their names which match the given
filter.
@param filter the metric filter to match
@return all the counters in the registry | [
"Returns",
"a",
"map",
"of",
"all",
"the",
"counters",
"in",
"the",
"registry",
"and",
"their",
"names",
"which",
"match",
"the",
"given",
"filter",
"."
] | ca725d9903e63645018f9fa8cbda25f60af83a5d | https://github.com/OpenLiberty/open-liberty/blob/ca725d9903e63645018f9fa8cbda25f60af83a5d/dev/com.ibm.ws.microprofile.metrics/src/com/ibm/ws/microprofile/metrics/impl/MetricRegistryImpl.java#L362-L365 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.