|
||||||||||
| PREV LETTER NEXT LETTER | FRAMES NO FRAMES | |||||||||
accessible flag of the given AccessibleObject to the given boolean value.
accessible en el AccessibleObject
ignorando excepciones
SimpleMarshallerBase haciendo que la instancia de MarshallerMappings
que contiene la definición de mapeos sea una referencia al SINGLETON custodiado por GUICE, es decir,
se REUTILIZA el mapeo, o lo que es lo mismo, se CACHEASimpleMarshallerBase haciendo que la instancia de MarshallerMappings
que contiene la definición de mapeos sea una referencia una NUEVA INSTANCIA inyectadaor GUICE, es decir,
se NO SE REUTILIZA el mapeo, o lo que es lo mismo, NO se CACHEA
// obtener una instancia del marshaller
Marshaller marshaller = new SimpleMarshallerFactory().create().addBeans(mapFile);
// Pasar de objetos a XML
MyObj myObjInstance = marshaller.beanFrom(xml);
// Pasar del XML a objetos
String xml = marshaller.xmlFrom(myObjInstance);
[CASO 2]: La definición del mapeo se carga desde un fichero XML de mapeo
// obtener una instancia del marshaller
Marshaller marshaller = new SimpleMarshallerFactory().addBeans(MyClass.class);
// Pasar de objetos a XML
MyObj myObjInstance = marshaller.beanFrom(xml);
// Pasar del XML a objetos
String xml = marshaller.xmlFrom(myObjInstance);
Para inicializar el Marshaller es necesario un XML de definición de cómo hacer las transformaciones
hay detalles de cómo configurar el XML de definición en MarshallerMappingsFromXMLLoaderMarshallerMappingsFromXMLLoader)
- Desde anotaciones en las clases java (ver MarshallerMappingsFromAnnotationsLoader)
IMPORTANTE!!Guice que el Marshaller
a inyectar es el JaxbMarshaller
- SingleUseSimpleMarshaller - Annotation Type in r01f.marshalling.annotations
- Anotación que permite especificar a
Guice que el Marshaller
a inyectar es el SimpleMarshaller
- size() -
Method in class r01f.types.collections.SoftHashMap.EntrySet
-
- size() -
Method in class r01f.types.collections.SoftHashMap.KeySet
-
- size() -
Method in class r01f.types.collections.SoftHashMap
-
- size() -
Method in class r01f.types.collections.SoftHashMap.Values
-
- SoftHashMap<K,V> - Class in r01f.types.collections
- Cache de objetos respaldada por un mapa de objetos SoftReference
IMPORTANTE: Diferencia entre objetos StrongReference, WeakReference y SoftReference
- Una StrongReference es una referencia java "normal":
StringBuffer sb = new StringBuffer("");
sb es una StrongReference al StringBuffer recien creado
Si un objeto es "alcanzable" por una cadena de StrongReferences, entonces NO es procesado por el GC
OJO!!
- SoftHashMap() -
Constructor for class r01f.types.collections.SoftHashMap
- Constructor por defecto
- SoftHashMap(int, float) -
Constructor for class r01f.types.collections.SoftHashMap
- Constructor en base a la capacidad inicial y el factor de carga
- SoftHashMap(int) -
Constructor for class r01f.types.collections.SoftHashMap
- Constructor en base a la capacidad incial
- SoftHashMap(Map<? extends K, ? extends V>) -
Constructor for class r01f.types.collections.SoftHashMap
- Constructor en base a un mapa de entradas.
- SoftHashMap.Entry<K,V> - Class in r01f.types.collections
- Encapsula un Map.Entry en un SoftReference
- SoftHashMap.Entry(K, V, ReferenceQueue<K>, int, SoftHashMap.Entry<K, V>) -
Constructor for class r01f.types.collections.SoftHashMap.Entry
-
- SoftHashMap.EntryIterator - Class in r01f.types.collections
-
- SoftHashMap.EntryIterator() -
Constructor for class r01f.types.collections.SoftHashMap.EntryIterator
-
- SoftHashMap.EntrySet - Class in r01f.types.collections
-
- SoftHashMap.EntrySet() -
Constructor for class r01f.types.collections.SoftHashMap.EntrySet
-
- SoftHashMap.HashIterator<T> - Class in r01f.types.collections
-
- SoftHashMap.HashIterator() -
Constructor for class r01f.types.collections.SoftHashMap.HashIterator
-
- SoftHashMap.KeyIterator - Class in r01f.types.collections
-
- SoftHashMap.KeyIterator() -
Constructor for class r01f.types.collections.SoftHashMap.KeyIterator
-
- SoftHashMap.KeySet - Class in r01f.types.collections
-
- SoftHashMap.KeySet() -
Constructor for class r01f.types.collections.SoftHashMap.KeySet
-
- SoftHashMap.SimpleEntry<K,V> - Class in r01f.types.collections
-
- SoftHashMap.SimpleEntry(K, V) -
Constructor for class r01f.types.collections.SoftHashMap.SimpleEntry
-
- SoftHashMap.SimpleEntry(Map.Entry<K, V>) -
Constructor for class r01f.types.collections.SoftHashMap.SimpleEntry
-
- SoftHashMap.ValueIterator - Class in r01f.types.collections
-
- SoftHashMap.ValueIterator() -
Constructor for class r01f.types.collections.SoftHashMap.ValueIterator
-
- SoftHashMap.Values - Class in r01f.types.collections
-
- SoftHashMap.Values() -
Constructor for class r01f.types.collections.SoftHashMap.Values
-
- sort() -
Method in class r01f.types.collections.ListsWrappers.WrappedSortableList
-
- sort(Locale) -
Method in class r01f.types.collections.ListsWrappers.WrappedSortableList
-
- sort(String) -
Method in class r01f.types.collections.ListsWrappers.WrappedSortableList
-
- sort(Collator) -
Method in class r01f.types.collections.ListsWrappers.WrappedSortableList
-
- sort(Comparator<T>) -
Method in class r01f.types.collections.ListsWrappers.WrappedSortableList
-
- split() -
Method in class r01f.util.types.Strings.SplitterWrapper
- Ejecuta el troceado
- splitter(int) -
Method in class r01f.util.types.Strings.StringWrapper
- Devuelve un splitter que trocea la cadena en trozos iguales del tamaño que se pasa
(el último trozo obviamente puede ser de menor tamaño)
- splitter(char) -
Method in class r01f.util.types.Strings.StringWrapper
- Devuelve un splitter sobre la cadena en base al caracter que se pasa
- splitter(CharMatcher) -
Method in class r01f.util.types.Strings.StringWrapper
- Devuelve un splitter sobre la cadena en base a cualquier caracter que cumpla el matcher
- splitter(String) -
Method in class r01f.util.types.Strings.StringWrapper
- Devuelve un splitter sobre la cadena en base a la cadena que se pasaq
- splitter(Pattern) -
Method in class r01f.util.types.Strings.StringWrapper
- Devuelve un splitter sobre la cadena en base a cualquier cadena que cumpla el patron
- SSLTunnelSocketFactory - Class in r01f.httpclient
- Esta clase se utilizará cada vez que se quiera conectar a una url https através de Proxy.
- SSLTunnelSocketFactory(String, String, String, String) -
Constructor for class r01f.httpclient.SSLTunnelSocketFactory
-
- startCDATA() -
Method in class r01f.marshalling.simple.ObjsFromXMLBuilder.ObjsFromXMLLoader
-
- startConstructorAccess() -
Static method in class r01f.reflection.fluent.ConstructorReflection
-
- startDocument() -
Method in class r01f.marshalling.simple.MarshallerMappingsFromXMLLoader
- Principio del documento XML
- startDocument() -
Method in class r01f.marshalling.simple.ObjsFromXMLBuilder.ObjsFromXMLLoader
-
- startDTD(String, String, String) -
Method in class r01f.marshalling.simple.ObjsFromXMLBuilder.ObjsFromXMLLoader
-
- startElement(String, String, String, Attributes) -
Method in class r01f.marshalling.simple.MarshallerMappingsFromXMLLoader
- Principio de un elemento XML
- startElement(String, String, String, Attributes) -
Method in class r01f.marshalling.simple.ObjsFromXMLBuilder.ObjsFromXMLLoader
-
- startEntity(String) -
Method in class r01f.marshalling.simple.ObjsFromXMLBuilder.ObjsFromXMLLoader
-
- startFieldAccess(String) -
Static method in class r01f.reflection.fluent.FieldReflection
- Creates a new
FieldReflection: the starting point of the fluent interface for accessing fields using Java Reflection.
- startMethodAccess(String) -
Static method in class r01f.reflection.fluent.MethodReflection
- Creates a new
MethodReflection: the starting point of the fluent interface for accessing methods using Java Reflection.
- startPropertyAccess(String) -
Static method in class r01f.reflection.fluent.PropertyReflection
- Creates a new
PropertyReflection: the starting point of the fluent interface for accessing properties using Bean Introspection.
- startStaticFieldAccess(String) -
Static method in class r01f.reflection.fluent.StaticFieldReflection
- Creates a new
StaticFieldReflection: the starting point of the fluent interface for accessing static fields using Java Reflection.
- startStaticInnerClassAccess(String) -
Static method in class r01f.reflection.fluent.StaticInnerClassReflection
- Creates a new
StaticInnerClassReflection .
StaticMethodReflection: the starting point of the fluent interface for accessing static methods using Java Reflection.
TypeReflection: the starting point of the fluent interface for loading classes dynamically.
Jedi, which contains two static inner classes: Master and Padawan.
Strings.of("this is a string").encodeUTF8().save("/usr/sampler/string.txt");
Tambien se pueden "activar" funciones específicas para cadenas XML
Strings.load("/usr/sampler/theXml.xml").asXml().encodeUTF8();
|
||||||||||
| PREV LETTER NEXT LETTER | FRAMES NO FRAMES | |||||||||