Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.aop.metadata
Class SimpleMetaData

    java.lang.Object
      org.jboss.aop.metadata.SimpleMetaData

All Implemented Interfaces:
  Externalizable, MetaDataResolver, Serializable

public class SimpleMetaData
extends Object
implements MetaDataResolver, Externalizable

Version:
  $Revision: 1.11 $
Author:
  Bill Burke
See Also:
  Serialized Form

Nested Class Summary
`class` | `SimpleMetaData.MetaDataValue`

Field Summary
`protected HashMap` | `metaData`

Fields inherited from interface org.jboss.aop.metadata.MetaDataResolver
`EMPTY_TAG`

Constructor Summary
`SimpleMetaData()`

Method Summary
`void` | `addMetaData(Object tag, Object attr, Object value)`
`void` | `addMetaData(Object tag, Object attr, Object value, PayloadKey type)`
`void` | `clear()`
`SimpleMetaData` | `getAllMetaData(Invocation invocation)` Get all metadata that belong with the context of this invocation
`Object` | `getMetaData(Object tag, Object attr)`
`boolean` | `hasTag(String name)`
`void` | `mergeIn(SimpleMetaData data)` merges incoming data.
`void` | `readExternal(ObjectInput in)`
`void` | `removeGroupData(Object group)`
`void` | `removeMetaData(Object tag, Object attr)`
`Object` | `resolve(Invocation invocation, Object tag, Object attr)`
`int` | `size()`
`void` | `tag(Object tag)` Tag metadata to structure.
`HashMap` | `tag(String name)`
`HashSet` | `tags()`
`String` | `toString()`
`void` | `writeExternal(ObjectOutput out)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### metaData

    protected HashMap metaData

Constructor Detail

### SimpleMetaData

    public SimpleMetaData()

Method Detail

### size

    public int size()

### tags

    public HashSet tags()

### tag

    public HashMap tag(String name)

### hasTag

    public boolean hasTag(String name)

### tag

    public void tag(Object tag)

  Tag metadata to structure. Use for tags with no attributes i.e. @Singleton, etc...

### addMetaData

    public void addMetaData(Object tag,
                            Object attr,
                            Object value)

### addMetaData

    public void addMetaData(Object tag,
                            Object attr,
                            Object value,
                            PayloadKey type)

### getMetaData

    public Object getMetaData(Object tag,
                              Object attr)

### removeMetaData

    public void removeMetaData(Object tag,
                               Object attr)

### removeGroupData

    public void removeGroupData(Object group)

### clear

    public void clear()

### mergeIn

    public void mergeIn(SimpleMetaData data)

  merges incoming data. Incoming data overrides existing data

### resolve

    public Object resolve(Invocation invocation,
                          Object tag,
                          Object attr)

  Specified by:
    `resolve` in interface `MetaDataResolver`

### getAllMetaData

    public SimpleMetaData getAllMetaData(Invocation invocation)

  Description copied from interface: `MetaDataResolver`
  Get all metadata that belong with the context of this invocation

  Specified by:
    `getAllMetaData` in interface `MetaDataResolver`

### writeExternal

    public void writeExternal(ObjectOutput out)
                       throws IOException

  Specified by:
    `writeExternal` in interface `Externalizable`
  Throws:
    `IOException`

### readExternal

    public void readExternal(ObjectInput in)
                      throws IOException,
                             ClassNotFoundException

  Specified by:
    `readExternal` in interface `Externalizable`
  Throws:
    `IOException`
    `ClassNotFoundException`

### toString

    public String toString()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 JBoss Inc. All Rights Reserved.