@Service public class DomainObjectReader extends Object
| Constructor and Description |
|---|
DomainObjectReader()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getById(long id) |
Object |
readObject(String line)
Converts a line from the log to an object.
|
void |
registerMessageListener(LogtoolContext listener,
Class<?> type)
Registers the given LogtoolContext as a messageListener.
|
void |
registerNewObjectListener(NewObjectListener listener,
Class<?> type)
Registers a NewObjectListener.
|
public void registerNewObjectListener(NewObjectListener listener, Class<?> type)
public void registerMessageListener(LogtoolContext listener, Class<?> type)
public Object readObject(String line) throws MissingDomainObject
ms:class::id::method{::arg}*
Note that some objects cannot be resolved in the order they appear
in a logfile, because they have forward dependencies. This means
that a failure to resolve an object does not necessarily mean it's bogus,
but could mean that it could be resolved at a later time, typically
within one or a very few input lines.MissingDomainObjectpublic Object getById(long id)
Copyright © 2017 Power TAC. All rights reserved.