Source
stringclasses
1 value
Date
int32
2.01k
2.01k
Text
stringlengths
3
15.9M
Token_count
int32
1
2.44M
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2009-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
650
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
2,628
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2008-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
1,555
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2008-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
488
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
1,919
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
4,179
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2008-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
826
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2011 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
2,435
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2011 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
985
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
6,857
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
2,372
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
1,028
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2008-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
1,644
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
1,191
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2008-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
1,059
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2008-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
4,784
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
992
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
959
github-java-corpus
2,012
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2011 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
831
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit; import com.rackspace.repose.service.limits.schema.RateLimitList; import com.rackspace.repose.service.ratelimit.exception.OverLimitException; import java.util.List; public interface RateLimitingService { RateLimitList queryLimits(String user, List<String> groups); ...
96
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit; import com.rackspace.repose.service.limits.schema.HttpMethod; import com.rackspace.repose.service.limits.schema.RateLimit; import com.rackspace.repose.service.limits.schema.RateLimitList; import com.rackspace.repose.service.limits.schema.ResourceRateLimits; import com.ra...
1,070
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.exception; import java.util.Date; public class OverLimitException extends Exception { private final String user; private final Date nextAvailableTime; private final int currentLimitAmount; private final String configuredLimit; public OverLimitException(...
182
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.exception; public class CacheException extends RuntimeException { public CacheException(String message, Throwable t) { super(message, t); } }
40
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.util; import java.util.regex.Pattern; public final class StringUtilities { private StringUtilities() { } private static final Pattern IS_BLANK_PATTERN = Pattern.compile("[\\s]*"); public static boolean isEmpty(String st) { return st == null || st.len...
102
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit; import com.rackspace.repose.service.limits.schema.HttpMethod; import com.rackspace.repose.service.ratelimit.cache.NextAvailableResponse; import com.rackspace.repose.service.ratelimit.cache.RateLimitCache; import com.rackspace.repose.service.ratelimit.config.ConfiguredRa...
387
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit; import org.slf4j.Logger; import java.util.regex.Matcher; public class LimitKey { private static final Logger LOG = org.slf4j.LoggerFactory.getLogger(LimitKey.class); public LimitKey() { } public String getLimitKey(String uri, Matcher uriMatcher) { ...
272
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.cache; import java.io.Serializable; import java.util.UUID; public class LoggedRequest implements Serializable { private final UUID id; private final Long timestamp; public LoggedRequest(Long timestamp) { this.timestamp = timestamp; id = UUI...
204
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.cache.util; import java.io.*; public final class ObjectSerializer { private static final ObjectSerializer INSTANCE = new ObjectSerializer(); public static ObjectSerializer instance() { return INSTANCE; } private ObjectSerializer() { } ...
107
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.cache.util; import java.util.concurrent.TimeUnit; /** * * @author jhopper */ public final class TimeUnitConverter { private static final int DAY_UNIT = 24; private static final int HOUR_UNIT = 60; private static final int MINUTE_UNIT = 60; private static f...
273
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.cache; import java.util.Date; /** * @author jhopper */ public class NextAvailableResponse { private final boolean hasRequests; private final Date resetTime; private final int currentLimitAmount; public NextAvailableResponse(boolean hasRequests, Date rese...
149
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.cache; import com.rackspace.repose.service.ratelimit.cache.util.ObjectSerializer; import com.rackspace.repose.service.ratelimit.config.ConfiguredRatelimit; import com.rackspace.repose.service.ratelimit.cache.util.TimeUnitConverter; import com.rackspace.repose.service.lim...
512
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.cache; import com.rackspace.repose.service.limits.schema.HttpMethod; import com.rackspace.repose.service.ratelimit.config.ConfiguredRatelimit; import java.io.IOException; import java.util.Map; /** * * @author jhopper */ public interface RateLimitCache { Map<Stri...
114
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.cache; import com.rackspace.repose.service.limits.schema.HttpMethod; import com.rackspace.repose.service.limits.schema.TimeUnit; import com.rackspace.repose.service.ratelimit.cache.util.TimeUnitConverter; import java.io.Serializable; import java.util.EnumMap; import java...
526
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit; import com.rackspace.repose.service.ratelimit.cache.RateLimitCache; import com.rackspace.repose.service.ratelimit.config.RateLimitingConfiguration; public final class RateLimitingServiceFactory { private RateLimitingServiceFactory() { } public static RateLimi...
112
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit; import com.rackspace.repose.service.limits.schema.HttpMethod; import com.rackspace.repose.service.limits.schema.RateLimitList; import com.rackspace.repose.service.ratelimit.config.*; import com.rackspace.repose.service.ratelimit.util.StringUtilities; import com.rackspace...
718
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.config; import org.slf4j.Logger; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class RateLimitingConfigHelper { private static final Logger LOG = org.slf4j.LoggerFactory.getLogger(RateLimitingConfigHelper.class); private ...
737
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.config; import com.rackspace.repose.service.limits.schema.HttpMethod; import com.rackspace.repose.service.limits.schema.TimeUnit; import java.util.List; import java.util.regex.Pattern; public class ConfiguredRateLimitWrapper extends ConfiguredRatelimit { private fin...
579
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit; import com.rackspace.repose.service.limits.schema.HttpMethod; import com.rackspace.repose.service.limits.schema.Limits; import com.rackspace.repose.service.limits.schema.RateLimitList; import com.rackspace.repose.service.ratelimit.cache.CachedRateLimit; import com.racksp...
566
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit; import com.rackspace.repose.service.limits.schema.HttpMethod; import com.rackspace.repose.service.ratelimit.cache.NextAvailableResponse; import com.rackspace.repose.service.ratelimit.cache.RateLimitCache; import com.rackspace.repose.service.ratelimit.config.ConfiguredRat...
625
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit; import com.rackspace.repose.service.limits.schema.HttpMethod; import com.rackspace.repose.service.limits.schema.TimeUnit; import com.rackspace.repose.service.ratelimit.cache.CachedRateLimit; import com.rackspace.repose.service.ratelimit.config.ConfiguredRatelimit; publi...
309
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.util; import org.junit.Test; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; @RunWith(Enclosed.class) public class StringUtilitiesTest { public st...
309
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.cache; import com.rackspace.repose.service.limits.schema.HttpMethod; import com.rackspace.repose.service.limits.schema.TimeUnit; import org.junit.Test; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith; import static org.junit.Assert.assert...
438
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.cache.util; import com.rackspace.repose.service.limits.schema.TimeUnit; import org.junit.Test; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith; import static org.junit.Assert.assertEquals; /** * * @author jhopper */ @RunWith(Enclosed....
208
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit.cache; import com.rackspace.repose.service.ratelimit.cache.util.ObjectSerializer; import com.rackspace.repose.service.limits.schema.HttpMethod; import com.rackspace.repose.service.limits.schema.TimeUnit; import com.rackspace.repose.service.ratelimit.config.ConfiguredRatel...
838
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit; import com.rackspace.repose.service.limits.schema.HttpMethod; import com.rackspace.repose.service.limits.schema.TimeUnit; import com.rackspace.repose.service.ratelimit.config.ConfiguredLimitGroup; import com.rackspace.repose.service.ratelimit.config.ConfiguredRatelimit; ...
1,014
github-java-corpus
2,012
package com.rackspace.repose.service.ratelimit; import com.rackspace.repose.service.ratelimit.config.ConfiguredLimitGroup; import com.rackspace.repose.service.ratelimit.config.RateLimitingConfigHelper; import com.rackspace.repose.service.ratelimit.config.RateLimitingConfiguration; import org.junit.Test; import org.jun...
253
github-java-corpus
2,012
package org.openrepose.components.apivalidator.filter; import com.rackspace.com.papi.components.checker.handler.ResultHandler; import com.rackspace.com.papi.components.checker.servlet.CheckerServletRequest; import com.rackspace.com.papi.components.checker.servlet.CheckerServletResponse; import com.rackspace.com.papi.c...
238
github-java-corpus
2,012
package org.openrepose.components.apivalidator.filter; import com.rackspace.com.papi.components.checker.Validator; import com.rackspace.papi.commons.util.http.HttpStatusCode; import com.rackspace.papi.commons.util.http.OpenStackServiceHeader; import com.rackspace.papi.commons.util.http.header.HeaderValue; import com.r...
636
github-java-corpus
2,012
package org.openrepose.components.apivalidator.filter; import com.rackspace.com.papi.components.checker.Config; import com.rackspace.com.papi.components.checker.handler.ResultHandler; import com.rackspace.com.papi.components.checker.handler.SaveDotHandler; import com.rackspace.com.papi.components.checker.handler.Servl...
1,571
github-java-corpus
2,012
package org.openrepose.components.apivalidator.filter; import com.rackspace.papi.filter.FilterConfigHelper; import com.rackspace.papi.filter.logic.impl.FilterLogicHandlerDelegate; import com.rackspace.papi.service.config.ConfigurationService; import com.rackspace.papi.service.context.ServletContextHelper; import com.r...
413
github-java-corpus
2,012
package org.openrepose.components.apivalidator.filter; import com.rackspace.com.papi.components.checker.Config; import com.rackspace.com.papi.components.checker.Validator; import javax.xml.transform.sax.SAXSource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.xml.sax.InputSource; public class Va...
342
github-java-corpus
2,012
package org.openrepose.components.apivalidator.filter; import org.openrepose.components.apivalidator.filter.ValidatorInfo; import org.openrepose.components.apivalidator.filter.ApiValidatorHandler; import com.rackspace.com.papi.components.checker.Validator; import com.rackspace.papi.commons.util.http.HttpStatusCode; im...
1,047
github-java-corpus
2,012
package org.openrepose.components.apivalidator.filter; import org.openrepose.components.apivalidator.filter.DispatchHandler; import com.rackspace.com.papi.components.checker.handler.ResultHandler; import com.rackspace.com.papi.components.checker.servlet.CheckerServletRequest; import com.rackspace.com.papi.components.c...
466
github-java-corpus
2,012
package org.openrepose.components.apivalidator.filter; import com.rackspace.papi.commons.config.parser.generic.GenericResourceConfigurationParser; import com.rackspace.papi.commons.config.resource.ConfigurationResource; import com.rackspace.papi.commons.util.http.header.HeaderValue; import com.rackspace.papi.commons.u...
1,144
github-java-corpus
2,012
package org.openrepose.components.apivalidator.filter; import org.openrepose.components.apivalidator.filter.ValidatorInfo; import org.openrepose.components.apivalidator.filter.DispatchHandler; import com.rackspace.com.papi.components.checker.Config; import com.rackspace.com.papi.components.checker.Validator; import co...
447
github-java-corpus
2,012
package com.rackspace.papi.commons.util.plugin.archive; import com.rackspace.papi.commons.util.StringUtilities; import com.rackspace.papi.commons.util.io.OutputStreamSplitter; import com.rackspace.papi.commons.util.io.RawInputStreamReader; import com.rackspace.papi.commons.util.plugin.archive.jar.DirectoryHelper; impo...
674
github-java-corpus
2,012
package com.rackspace.papi.commons.util.plugin.archive; import java.util.jar.Manifest; public interface ArchiveEntryHelper { EntryAction nextJarEntry(ArchiveEntryDescriptor je); void newJarManifest(ArchiveEntryDescriptor name, Manifest manifest); void newClass(ArchiveEntryDescriptor name, byte[] cl...
82
github-java-corpus
2,012
package com.rackspace.papi.commons.util.plugin.archive; public class ArchiveEntryDescriptor { public static final String ROOT_ARCHIVE = "ROOT"; private final String entryName, entryPrefix, simpleName, extension, archiveName; public ArchiveEntryDescriptor(String archiveName, String entryName, String entryPre...
201
github-java-corpus
2,012
package com.rackspace.papi.commons.util.plugin.archive; import java.util.jar.JarInputStream; import java.util.jar.Manifest; public final class ManifestProcessor { public static final String MANIFEST_PATH = "META-INF/MANIFEST.MF"; private ManifestProcessor() { } public static void processManifest(Archiv...
116
github-java-corpus
2,012
package com.rackspace.papi.commons.util.plugin.archive.jar; /** * @author fran */ public class DirectoryPermissionsException extends RuntimeException { public DirectoryPermissionsException(String message) { super(message); } }
44
github-java-corpus
2,012
package com.rackspace.papi.commons.util.plugin.archive.jar; import java.io.File; /** * This class creates the directory into which Power API artifacts will be deployed (target directory). First the class * checks to ensure the root deployment directory exists, is writable, and executable. Next the class creates the...
219
github-java-corpus
2,012
package com.rackspace.papi.commons.util.plugin.archive; import com.rackspace.papi.commons.util.StringUtilities; public final class ArchiveEntryDescriptorBuilder { private ArchiveEntryDescriptorBuilder() { } public static ArchiveEntryDescriptor build(String archiveName, String entryName) { final Strin...
293
github-java-corpus
2,012
package com.rackspace.papi.commons.util.plugin.archive; public enum ProcessingAction { PROCESS_AS_CLASS, PROCESS_AS_RESOURCE, DESCEND_INTO_JAR_FORMAT_ARCHIVE, SKIP }
41
github-java-corpus
2,012
package com.rackspace.papi.commons.util.plugin.archive; import java.util.jar.JarInputStream; public class ArchiveStackElement { private final JarInputStream inputStreamReference; private final String archiveName; public ArchiveStackElement(JarInputStream inputStreamReference, String archiveName) { th...
107
github-java-corpus
2,012
package com.rackspace.papi.commons.util.plugin.archive; public enum DeploymentAction { UNPACK_ENTRY, DO_NOT_UNPACK_ENTRY; public static DeploymentAction defaultAction() { return UNPACK_ENTRY; } }
47
github-java-corpus
2,012
package com.rackspace.papi.commons.util.plugin.archive; public class EntryAction { public static final EntryAction SKIP = new EntryAction(); private final ProcessingAction processingAction; private final DeploymentAction packagingAction; private EntryAction() { this(ProcessingAction.SKIP, Deploymen...
133
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader; import java.util.Map; import java.util.TreeMap; public class ResourceIdentityTree implements ResourceRegistry, Cloneable { private final Map<String, ResourceDescriptor> classPathIdentityTree; public ResourceIdentityTree() { classPathIdentityTree = new...
376
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader; import com.rackspace.papi.commons.util.plugin.archive.ArchiveEntryDescriptor; import java.util.Arrays; public class ResourceDescriptor { private final ArchiveEntryDescriptor descriptor; private final byte[] digestBytes; public ResourceDescriptor(Archive...
139
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader; public interface ResourceRegistry extends Cloneable { /** * * @param classPath Class path definition should be delimited by '/' instead of '.' * @return ResourceDescriptor */ ResourceDescriptor getDescriptorForResource(String classPath); b...
88
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader.ear; public class EarProcessingException extends RuntimeException { public static final String ERROR_MESSAGE = "Unexpected error caught while attempting to read archive descriptor"; public EarProcessingException(Throwable cause) { super(ERROR_MESSAGE, c...
60
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader.ear; public interface EarClassLoaderContext { EarDescriptor getEarDescriptor(); EarClassLoader getClassLoader(); }
34
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader.ear; import com.rackspace.papi.commons.util.plugin.archive.ArchiveEntryDescriptor; import java.io.File; public class SimpleEarClassLoaderContext implements EarClassLoaderContext { private final EarClassLoader childContext, parentContext; private final EarD...
268
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader.ear; import com.rackspace.papi.commons.util.StringUtilities; import com.rackspace.papi.commons.util.classloader.ResourceDescriptor; import com.rackspace.papi.commons.util.classloader.ResourceIdentityTree; import org.slf4j.Logger; import org.slf4j.LoggerFactory; impo...
1,121
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader.ear; import com.oracle.javaee6.ApplicationType; import com.oracle.javaee6.FilterType; import com.oracle.javaee6.ObjectFactory; import com.oracle.javaee6.WebFragmentType; import com.rackspace.papi.commons.config.parser.common.ConfigurationParser; import com.rackspace....
1,449
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader.ear; import com.rackspace.papi.commons.util.plugin.archive.ArchiveEntryHelper; public interface EarArchiveEntryHelper extends ArchiveEntryHelper { EarClassLoaderContext getClassLoaderContext(); }
50
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader.ear; import com.oracle.javaee6.FilterType; import java.util.Collections; import java.util.HashMap; import java.util.Map; public class EarDescriptor { private final Map<String, FilterType> registeredFilters; private String applicationName; public EarDescr...
168
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader.ear; import com.rackspace.papi.commons.util.SystemUtils; import com.rackspace.papi.commons.util.plugin.archive.*; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Stack; import java.util.UU...
536
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader.digest; import com.rackspace.papi.commons.util.pooling.*; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; /** * * */ public final class Sha1Digester { public static final String DEFAULT_DIGEST_SPEC = "SHA1"; priv...
238
github-java-corpus
2,012
package com.rackspace.papi.commons.util.plugin.archive; import org.junit.Test; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith; import java.io.File; import java.io.IOException; import java.util.jar.JarInputStream; import static org.junit.Assert.assertEquals; import static org.junit.As...
555
github-java-corpus
2,012
package com.rackspace.papi.commons.util.plugin.archive; import org.junit.Test; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith; import java.util.jar.JarInputStream; import java.util.jar.Manifest; import static org.mockito.Mockito.*; /** * @author fran */ @RunWith(Enclosed.class) pu...
325
github-java-corpus
2,012
package com.rackspace.papi.commons.util.plugin.archive; import org.junit.Test; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith; import java.util.jar.JarEntry; import static org.junit.Assert.assertEquals; /** * @author fran */ @RunWith(Enclosed.class) public class ArchiveEntryDescri...
416
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader; import com.rackspace.papi.commons.util.plugin.archive.ArchiveEntryDescriptor; import org.junit.Before; import org.junit.Test; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith; import static org.junit.Assert.assertFalse; import static ...
788
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader.jar.test; /** * * */ public class EmptyClass { public EmptyClass() { System.exit(100); } }
38
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader.ear; import com.rackspace.papi.commons.util.plugin.archive.ArchiveEntryDescriptor; import org.junit.Ignore; import org.junit.Test; import org.junit.experimental.runners.Enclosed; import org.junit.runner.RunWith; import java.io.File; import java.net.MalformedURLExcep...
219
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader.ear; import com.rackspace.papi.commons.util.classloader.EarTestSupport; import com.rackspace.papi.commons.util.classloader.jar.test.EmptyClass; import org.junit.Ignore; import org.junit.Test; import org.junit.experimental.runners.Enclosed; import org.junit.runner.Run...
522
github-java-corpus
2,012
package com.rackspace.papi.commons.util.classloader; import com.rackspace.papi.commons.util.classloader.ear.DefaultEarArchiveEntryHelper; import com.rackspace.papi.commons.util.classloader.ear.EarClassLoader; import com.rackspace.papi.commons.util.classloader.jar.test.EmptyClass; import org.junit.After; import org.jun...
997
github-java-corpus
2,012
package com.rackspace.papi.commons.config.resource; public interface ConfigurationResourceResolver { ConfigurationResource resolve(String resourceName) throws ResourceResolutionException; }
31
github-java-corpus
2,012
package com.rackspace.papi.commons.config.resource.impl; import com.rackspace.papi.commons.config.resource.ConfigurationResource; import com.rackspace.papi.commons.util.ArrayUtilities; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; public class ByteArrayConfigurationReso...
191
github-java-corpus
2,012
package com.rackspace.papi.commons.config.resource.impl; import com.rackspace.papi.commons.config.resource.ConfigurationResource; import com.rackspace.papi.commons.config.resource.ConfigurationResourceResolver; import com.rackspace.papi.commons.config.resource.ResourceResolutionException; import com.rackspace.papi.com...
274
github-java-corpus
2,012
package com.rackspace.papi.commons.config.resource.impl; import com.rackspace.papi.commons.config.ConfigurationResourceException; import com.rackspace.papi.commons.config.resource.ConfigurationResource; import com.rackspace.papi.commons.util.arrays.ByteArrayComparator; import com.rackspace.papi.commons.util.io.ByteBuf...
665
github-java-corpus
2,012
package com.rackspace.papi.commons.config.resource; import java.io.IOException; import java.io.InputStream; public interface ConfigurationResource<T extends ConfigurationResource> { boolean updated() throws IOException; boolean exists() throws IOException; String name(); InputStream newInputStream...
58
github-java-corpus
2,012
package com.rackspace.papi.commons.config.resource; public class ResourceResolutionException extends RuntimeException { public ResourceResolutionException(String message, Throwable cause) { super(message, cause); } }
40
github-java-corpus
2,012
package com.rackspace.papi.commons.config; public class ConfigurationResourceException extends RuntimeException { public ConfigurationResourceException(String string) { super(string); } public ConfigurationResourceException(String string, Throwable thrwbl) { super(string, thrwbl); } }
58
github-java-corpus
2,012
package com.rackspace.papi.commons.config.manager; import com.rackspace.papi.commons.util.thread.KeyedStackLock; /** * User: joshualockwood * Date: 6/13/11 * Time: 1:49 PM */ public abstract class LockedConfigurationUpdater<T> implements UpdateListener<T> { private final KeyedStackLock updateLock; private...
181
github-java-corpus
2,012
package com.rackspace.papi.commons.config.manager; import com.rackspace.papi.commons.config.parser.common.ConfigurationParser; import com.rackspace.papi.commons.config.resource.ConfigurationResource; import com.rackspace.papi.commons.util.Destroyable; public interface ConfigurationUpdateManager extends Destroyable { ...
102
github-java-corpus
2,012
package com.rackspace.papi.commons.config.manager; public interface UpdateListener<T> { void configurationUpdated(T configurationObject); }
27
github-java-corpus
2,012
package com.rackspace.papi.commons.config.parser.jaxb; import com.rackspace.papi.commons.util.pooling.ConstructionStrategy; import com.rackspace.papi.commons.util.pooling.ResourceConstructionException; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; public ...
175
github-java-corpus
2,012
package com.rackspace.papi.commons.config.parser.jaxb; import com.rackspace.papi.commons.config.resource.ConfigurationResource; import com.rackspace.papi.commons.util.pooling.ResourceContext; import com.rackspace.papi.commons.util.pooling.ResourceContextException; import javax.xml.bind.JAXBException; import javax.xml...
317
github-java-corpus
2,012
package com.rackspace.papi.commons.config.parser.jaxb; import com.rackspace.papi.commons.config.parser.common.AbstractConfigurationObjectParser; import com.rackspace.papi.commons.config.resource.ConfigurationResource; import com.rackspace.papi.commons.util.pooling.GenericBlockingResourcePool; import com.rackspace.papi...
314
github-java-corpus
2,012
package com.rackspace.papi.commons.config.parser.inputstream; import com.rackspace.papi.commons.config.parser.common.AbstractConfigurationObjectParser; import com.rackspace.papi.commons.config.resource.ConfigurationResource; import com.rackspace.papi.commons.config.resource.ResourceResolutionException; import java.io...
149