Index
All Classes and Interfaces|All Packages
A
- areEqual(String, String) - Static method in class org.ocpsoft.common.util.Strings
- areEqualTrimmed(String, String) - Static method in class org.ocpsoft.common.util.Strings
- asList(Iterable<T>) - Static method in class org.ocpsoft.common.util.Iterators
- asList(Iterator<T>) - Static method in class org.ocpsoft.common.util.Iterators
- Assert - Class in org.ocpsoft.common.util
-
Utility methods for making precondition/postcondition assertions.
- assertFalse(boolean, String) - Static method in class org.ocpsoft.common.util.Assert
-
Throw an exception if the given value is not false.
- assertTrue(boolean, String) - Static method in class org.ocpsoft.common.util.Assert
-
Throw an exception if the given value is not true.
- asSet(Iterable<T>) - Static method in class org.ocpsoft.common.util.Iterators
- asSet(Iterator<T>) - Static method in class org.ocpsoft.common.util.Iterators
C
- capitalize(String) - Static method in class org.ocpsoft.common.util.Strings
-
Capitalize the given
String: "input" -> "Input" - closeQuietly(Closeable) - Static method in class org.ocpsoft.common.util.Streams
-
Close the given
Closeablewithout throwing exceptions on failure. - compare(Weighted, Weighted) - Method in class org.ocpsoft.common.pattern.WeightedComparator
- copy(InputStream, OutputStream) - Static method in class org.ocpsoft.common.util.Streams
-
Copy all contents from the
InputStreamto theOutputStream, using a buffer of size 2048. - copy(InputStream, OutputStream, int) - Static method in class org.ocpsoft.common.util.Streams
-
Copy all contents from the
InputStreamto theOutputStream, using a buffer of the given size.
E
- enrich(T) - Method in interface org.ocpsoft.common.spi.ServiceEnricher
-
Enrich an instantiated instance of the given service type.
F
- fromString(String) - Static method in class org.ocpsoft.common.util.Streams
-
Create an
InputStreamfrom the givenString.
G
- getServices(Class<T>) - Method in interface org.ocpsoft.common.services.ServiceProvider
H
- handles(T) - Method in interface org.ocpsoft.common.pattern.Specialized
-
Returns true if this object is appropriate for the given payload.
I
- isNull(Object, String) - Static method in class org.ocpsoft.common.util.Assert
-
Throw an exception if the given
Objectis not null. - isNullOrEmpty(String) - Static method in class org.ocpsoft.common.util.Strings
-
Return true if the given
Stringis null or is empty. - isTrue(String) - Static method in class org.ocpsoft.common.util.Strings
-
Return true if the given
Stringequals "true", case insensitive; otherwise return false. - iterator() - Method in class org.ocpsoft.common.services.ServiceLoader
-
Lazily loads the available providers of this loader's service.
- Iterators - Class in org.ocpsoft.common.util
- Iterators() - Constructor for class org.ocpsoft.common.util.Iterators
J
- join(Collection<?>, String) - Static method in class org.ocpsoft.common.util.Strings
-
Join a
CollectionofStringinstances using the given delimiter.
L
- load(Class<S>) - Static method in class org.ocpsoft.common.services.ServiceLoader
-
Creates a new service loader for the given service type, using the current thread's context class loader.
- load(Class<S>, ClassLoader) - Static method in class org.ocpsoft.common.services.ServiceLoader
-
Creates a new service loader for the given service type and class loader.
- loadEnriched(Class<T>) - Static method in class org.ocpsoft.common.services.ServiceLoader
-
Obtain a
Classinstance and attempt enrichment using any providedServiceEnricherclasses. - loadTypesafe(Class<S>) - Static method in class org.ocpsoft.common.services.ServiceLoader
-
Creates a new service loader for the given service type, using the current thread's context class loader.
- locate(Class<T>) - Method in interface org.ocpsoft.common.spi.ServiceLocator
-
Locate additional class types of which can be produced by this
ServiceLocator.
N
- NonEnriching - Interface in org.ocpsoft.common.services
-
Marker interface declaring that a particular service implementation will not be enriched when loaded via
ServiceLoader - notNull(Object, String) - Static method in class org.ocpsoft.common.util.Assert
-
Throw an exception if the given
Objectis null.
O
- org.ocpsoft.common.pattern - package org.ocpsoft.common.pattern
- org.ocpsoft.common.services - package org.ocpsoft.common.services
- org.ocpsoft.common.spi - package org.ocpsoft.common.spi
- org.ocpsoft.common.util - package org.ocpsoft.common.util
P
- priority() - Method in interface org.ocpsoft.common.pattern.Weighted
- produce(Class<T>) - Method in interface org.ocpsoft.common.spi.ServiceEnricher
-
Produce a
Collectionof enriched services of the given type.
R
- reload() - Method in class org.ocpsoft.common.services.ServiceLoader
-
Clear this loader's provider cache so that all providers will be reloaded.
S
- ServiceEnricher - Interface in org.ocpsoft.common.spi
-
Provides enriching for services loaded with
ServiceLoader - ServiceLoader<S> - Class in org.ocpsoft.common.services
-
This class handles looking up service providers on the class path.
- ServiceLocator - Interface in org.ocpsoft.common.spi
-
Locates additional service implementation classes to be instantiated by the
ServiceLoader - ServiceProvider - Interface in org.ocpsoft.common.services
-
Used to provide provide pre-enriched services to the
ServiceLoaderas an alternate method of - Specialized<T> - Interface in org.ocpsoft.common.pattern
- Streams - Class in org.ocpsoft.common.util
-
Utility methods for working with
InputStreamandOutputStreaminstances. - Streams() - Constructor for class org.ocpsoft.common.util.Streams
- Strings - Class in org.ocpsoft.common.util
-
Utility methods for manipulating
Stringinstances - Strings() - Constructor for class org.ocpsoft.common.util.Strings
T
- toString() - Method in class org.ocpsoft.common.services.ServiceLoader
-
Returns a string describing this service.
- toString(InputStream) - Static method in class org.ocpsoft.common.util.Streams
-
Return a
Stringcontaining the contents of the givenInputStream
U
- uncapitalize(String) - Static method in class org.ocpsoft.common.util.Strings
-
Uncapitalize the given
String.
W
- Weighted - Interface in org.ocpsoft.common.pattern
-
Defines a class as having a weight for ordering.
- WeightedComparator - Class in org.ocpsoft.common.pattern
-
Compares
Weightedobjects. - WeightedComparator() - Constructor for class org.ocpsoft.common.pattern.WeightedComparator
All Classes and Interfaces|All Packages