code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
@GET
@Path("/verifyInjectedOptionalCustomMissing")
@Produces(MediaType.APPLICATION_JSON)
public JsonObject verifyInjectedOptionalCustomMissing() {
boolean pass = false;
String msg;
// custom-missing
Optional<Long> customValue = custom.getValue();
if(customValue == nul... | java |
public static void addExtendedProperty(String propName, String dataType, boolean multiValued, Object defaultValue) {
if (dataType == null || "null".equalsIgnoreCase(dataType))
return;
if (extendedPropertiesDataType.containsKey(propName)) {
Tr.warning(tc, WIMMessageKey.DUPLICATE_... | java |
private static String depluralize(String s) {
if (s.endsWith("ies")) {
return s.substring(0, s.length() - 3) + 'y';
}
if (s.endsWith("s")) {
return s.substring(0, s.length() - 1);
}
return s;
} | java |
private static String hyphenatedToCamelCase(String s) {
Matcher m = Pattern.compile("(?:^|-)([a-z])").matcher(s);
StringBuilder b = new StringBuilder();
int last = 0;
for (; m.find(); last = m.end()) {
b.append(s, last, m.start()).append(Character.toUpperCase(m.group(1).charA... | java |
private static String upperCaseFirstChar(String s) {
return Character.toUpperCase(s.charAt(0)) + s.substring(1);
} | java |
private static List<TypeMirror> getAnnotationClassValues(Element member, Annotation annotation, String annotationMemberName) {
for (AnnotationMirror annotationMirror : member.getAnnotationMirrors()) {
if (((TypeElement) annotationMirror.getAnnotationType().asElement()).getQualifiedName().contentEqua... | java |
public ViewScopeContextualStorage getContextualStorage(
BeanManager beanManager, String viewScopeId)
{
ViewScopeContextualStorage contextualStorage = storageMap.get(viewScopeId);
if (contextualStorage == null)
{
synchronized (this)
{
... | java |
public AuthConfigProvider setProvider(ProviderService providerService) {
AuthConfigProvider authConfigProvider = null;
if (providerService != null) {
authConfigProvider = providerService.getAuthConfigProvider(this);
registerConfigProvider(authConfigProvider, null, null, null);
... | java |
protected BeanO doActivation(EJBThreadData threadData, ContainerTx tx, BeanId beanId,
boolean takeInvocationRef)
throws RemoteException
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, "doActivation",
... | java |
@Override
public Entry<BatchPartitionWorkUnit, Future<?>> startPartition(PartitionPlanConfig partitionPlanConfig,
Step step,
PartitionReplyQueue partitionReplyQueue,
... | java |
protected void setConversation(Conversation conversation)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setConversation", conversation);
con = conversation;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setConversa... | java |
protected CommsByteBuffer jfapExchange(CommsByteBuffer buffer,
int sendSegmentType,
int priority,
boolean canPoolOnReceive)
throws SIConnectionDroppedException, SIConnectionLostException
... | java |
protected void jfapSend(CommsByteBuffer buffer,
int sendSegType,
int priority,
boolean canPoolOnReceive,
ThrottlingPolicy throttlingPolicy)
throws SIConnectionDroppedException,
SIConnectionLost... | java |
private short getClientCapabilities()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getClientCapabilities");
short capabilities = CommsConstants.CAPABILITIES_DEFAULT;
// Allow the use of a runtime property to alter the capability that we req... | java |
public void defaultChecker(CommsByteBuffer buffer, short exceptionCode)
throws SIErrorException
{
if (exceptionCode != CommsConstants.SI_NO_EXCEPTION)
{
throw new SIErrorException(buffer.getException(con));
}
} | java |
protected void invalidateConnection(boolean notifyPeer, Throwable throwable, String debugReason)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "invalidateConnection", new Object[]{new Boolean(notifyPeer),
... | java |
SibRaListener createListener(final SIDestinationAddress destination, MessageEndpointFactory messageEndpointFactory)
throws ResourceException {
final String methodName = "createListener";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(th... | java |
SibRaDispatcher createDispatcher(final AbstractConsumerSession session,
final Reliability unrecoveredReliability,
final int maxFailedDeliveries,
final int sequentialFailureThreshold)
throws... | java |
void closeDispatcher(final SibRaDispatcher dispatcher) {
final String methodName = "closeDispatcher";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName);
}
dispatcher.close();
_dispatcherCount.decrementAndGet()... | java |
void close() {
final String methodName = "close";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName);
}
close(false);
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.exit... | java |
void close(boolean alreadyClosed) {
final String methodName = "close";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName, alreadyClosed);
}
_closed = true;
/*
* 238811:
* Stop all of the list... | java |
SICoreConnection createConnection(SICoreConnectionFactory factory, String name, String password, Map properties, String busName)
throws SIException, SIErrorException, Exception {
final String methodName = "createConnection";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntry... | java |
private String getUnavailableServices() {
StringBuilder missingServices = new StringBuilder();
if (tokenService.getReference() == null) {
missingServices.append("tokenService, ");
}
if (tokenManager.getReference() == null) {
missingServices.append("tokenManager, "... | java |
private void updateSecurityReadyState() {
if (!activated) {
return;
}
String unavailableServices = getUnavailableServices();
if (unavailableServices == null) {
Tr.info(tc, "SECURITY_SERVICE_READY");
securityReady = true;
Dictionary<String... | java |
private void parseDirectoryFiles(WsResource directory, ServerConfiguration configuration) throws ConfigParserException, ConfigValidationException {
if (directory != null) {
File[] defaultFiles = getChildXMLFiles(directory);
if (defaultFiles == null)
return;
A... | java |
public ServletContext findContext(String path) {
WebGroup g = (WebGroup) requestMapper.map(path);
if (g != null)
return g.getContext();
else
return null;
} | java |
private void addWlpInformation(Asset asset) {
WlpInformation wlpInfo = asset.getWlpInformation();
if (wlpInfo == null) {
wlpInfo = new WlpInformation();
asset.setWlpInformation(wlpInfo);
}
if (wlpInfo.getAppliesToFilterInfo() == null) {
wlpInfo.setAppl... | java |
public Discriminator getDiscriminator() {
if (tc.isEntryEnabled())
SibTr.entry(this, tc, "getDiscriminator");
if (tc.isEntryEnabled())
SibTr.exit(this, tc, "getDiscriminator", discriminator);
return discriminator;
} | java |
private Object getResult() throws InterruptedException, ExecutionException {
if (ivCancelled) { // F743-11774
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.exit(tc, "getResult: throwing CancellationException");
}
throw new CancellationE... | java |
private Object getResult(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
if (ivCancelled) { // F743-11774
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.exit(tc, "getResult: throwing CancellationException");
... | java |
@Override
public boolean isCancelled() {
//F743-609CodRev - read volatile variable only once
boolean cancelled = ivCancelled;
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "isCancelled: " + cancelled + " Future object: " + this);
}
... | 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... | 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
... | java |
public Object saveState(FacesContext context)
{
if (!initialStateMarked())
{
Object values[] = new Object[2];
values[0] = _maximum;
values[1] = _minimum;
return values;
}
return null;
} | 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");
}
} | java |
public void setMessagingAuthenticationService(
MessagingAuthenticationService messagingAuthenticationService) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
SibTr.entry(tc, CLASS_NAME + "setMessagingAuthenticationService",
messagingAuthenticationService);
}
this.messagingAuthentic... | java |
public void deactivate(ComponentContext cc) throws IOException {
ConfigProviderResolver.setInstance(null);
shutdown();
scheduledExecutorServiceRef.deactivate(cc);
} | 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... | 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) {
... | 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));
}
}... | java |
@Override
public SICoreConnection getSICoreConnection() throws IllegalStateException {
if (connectionClosed) {
throw new IllegalStateException(NLS.getFormattedMessage(
("ILLEGAL_STATE_CWSJR1086"),
... | java |
@Override
synchronized public void close() throws SIConnectionLostException,
SIIncorrectCallException, SIResourceException, SIErrorException,
SIConnectionDroppedException, SIConnectionUnavailableException {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEna... | 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... | java |
private static final Object getCurrentUOWCoord() {
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(TRACE, "getCurrentUOWCoord");
}
Object currentUOW = null;
if (isRunningInWAS()) {
currentUOW = EmbeddableTransactionManagerFactory... | java |
private PostCreateAction listenForLibraryChanges(final String libid) {
return new PostCreateAction() {
@Override
public void invoke(AppClassLoader acl) {
listenForLibraryChanges(libid, acl);
}
};
} | 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() {
... | 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:
... | 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."))
... | 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... | 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... | 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... | 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... | 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... | java |
public synchronized void clearAllEntries() {
tertiaryTable.putAll(primaryTable);
tertiaryTable.putAll(secondaryTable);
primaryTable.clear();
secondaryTable.clear();
evictStaleEntries();
} | java |
public static WebSphereBeanDeploymentArchive createBDA(WebSphereCDIDeployment deployment,
ExtensionArchive extensionArchive,
CDIRuntime cdiRuntime) throws CDIException {
Set<String> additionalC... | java |
public void setWrapperCacheSize(int cacheSize)
{
wrapperCache.setCachePreferredMaxSize(cacheSize);
int updatedCacheSize = getBeanIdCacheSize(cacheSize);
beanIdCache.setSize(updatedCacheSize);
} | 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;
} | 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... | 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
... | 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... | 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... | 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... | java |
public String getPrincipal() {
String[] accessIDArray = getAttributes("u");
if (accessIDArray != null && accessIDArray.length > 0)
return accessIDArray[0];
else
return 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... | java |
public String[] getAttributes(String key) {
if (token != null)
return token.getAttributes(key);
else
return null;
} | java |
@Override
public long getMaximumTimeInStore()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getMaximumTimeInStore");
long maxTime = getMessageItem().getMaximumTimeInStore();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled(... | 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;
... | java |
@Override
public SIBUuid12 getProducerConnectionUuid()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
{
SibTr.entry(tc, "getProducerConnectionUuid");
SibTr.exit(tc, "getProducerConnectionUuid");
}
return getMessageItem().getProducerCon... | java |
private MessageItem getMessageItem()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getMessageItem");
MessageItem msg = null;
try
{
msg = (MessageItem) getReferredItem();
} catch (MessageStoreException e)
{... | java |
public static void setTextInfoTranslationEnabled(boolean textInfoTranslationEnabled, Locale locale) {
com.ibm.ws.pmi.stat.StatsImpl.setEnableNLS(textInfoTranslationEnabled, locale);
} | 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.... | 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... | 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.... | java |
public static Map<String, Collection<String>> writeResourcesToDiskRepo(Map<String, Collection<String>> downloaded, File toDir,
Map<String, List<List<RepositoryResource>>> installResources,
... | 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);
} | java |
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 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 <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> S prepareInstance(Class<? extends S> serviceClass) {
try {
final Constructor<? extends S> constructor = serviceClass.getDeclaredConstructor();
AccessController.doPrivileged(new PrivilegedAction<Void>() {
@Override
public Void run() {
... | java |
private static boolean isVisible(ClassLoader loaderA, ClassLoader loaderB) {
if (loaderB == loaderA || loaderB.getParent() == loaderA) {
return true;
}
return false;
} | 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... | java |
public static boolean isWeldProxy(Object obj) {
Class<?> clazz = obj.getClass();
boolean result = isWeldProxy(clazz);
return result;
} | 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... | 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... | 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... | 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 ... | java |
public String permissionToString(java.security.CodeSource cs, ClassLoader classloaderClass,
PermissionCollection col) {
StringBuffer buf = new StringBuffer("ClassLoader: ");
if (classloaderClass == null) {
buf.append("Primordial Classloader");
}... | 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
... | 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... | java |
public String getContextName()
{
ExternalContext ctx = _MyFacesExternalContextHelper.firstInstance.get();
if (ctx == null)
{
throw new UnsupportedOperationException();
}
return ctx.getContextName();
} | 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... | java |
@Override
public Bundle getBundle() {
return parent instanceof GatewayClassLoader ? ((GatewayClassLoader) parent).getBundle() : parent instanceof LibertyLoader ? ((LibertyLoader) parent).getBundle() : null;
} | 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... | java |
@FFDCIgnore(ClassNotFoundException.class)
private Class<?> findClassCommonLibraryClassLoaders(String name) throws ClassNotFoundException {
for (LibertyLoader cl : delegateLoaders) {
try {
return cl.findClass(name);
} catch (ClassNotFoundException e) {
... | 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... | java |
private CompositeEnumeration<URL> findResourcesCommonLibraryClassLoaders(String name, CompositeEnumeration<URL> enumerations) throws IOException {
for (LibertyLoader cl : delegateLoaders) {
enumerations.add(cl.findResources(name));
}
return enumerations;
} | 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);
}
... | 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();
}
... | 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);
}
} | 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)... | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.