This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package javasplitter; | |
| import java.util.Iterator; | |
| import java.util.NavigableSet; | |
| import java.util.TreeSet; | |
| public class AuditableInvoker { | |
| private final Auditable[] invokeables; | |
| private final NavigableSet<AuditableLifecycleListener> listeners; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package javasplitter; | |
| import com.google.common.cache.CacheBuilder; | |
| import com.google.common.cache.CacheLoader; | |
| import com.google.common.cache.LoadingCache; | |
| import java.util.concurrent.ExecutionException; | |
| public class ExecutionTimingAuditableLifecycleListener implements AuditableLifecycleListener { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ChangeAwareDynamicProperty extends DynamicProperty { | |
| // current value of property. May be null, if the value has never been fetched | |
| private volatile String currentVersion; | |
| private final ConcurrentMap<String, Long> changedVersion = new ConcurrentHashMap<String, Long>(); | |
| @Override | |
| public String toString() { | |
| final String version = super.toString(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <plugin> | |
| <groupId>org.mortbay.jetty</groupId> | |
| <artifactId>maven-jetty-plugin</artifactId> | |
| <version>6.1.26</version> | |
| <configuration> | |
| <scanIntervalSeconds>10</scanIntervalSeconds> | |
| <stopKey>foo</stopKey> | |
| <stopPort>9999</stopPort> | |
| <contextPath>/</contextPath> | |
| <webApp> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @RunWith(ParallelRunner.class) | |
| public class Base64EncoderTest { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // create a cyclic iterator | |
| final Iterator<Element> cycle = Iterators.cycle(elements); | |
| while (cycle.hasNext()) { | |
| final Element e = cycle.next(); | |
| // do stuff with e | |
| cycle.remove(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A aspect which has the same functionality as the ServletRequestCleanupFilter. The {@link NonServletRequestCleanupAspect} | |
| * is useful when code is executed which is not wrapped by the servlet filter, i.e. the handling of events in the | |
| * thread pools. | |
| * | |
| * @author reik, 4/19/12 | |
| */ | |
| @Aspect | |
| public class NonServletRequestCleanupAspect { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| make amd64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pip install distribute==0.6.25 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifdef __CYGWIN__ | |
| #ifndef SA_ONSTACK | |
| #define SA_ONSTACK 0x08000000 | |
| #endif | |
| #endif |
OlderNewer