|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Factory interface for creating decorator instances. The decorator classes create new decorator instances using a factory to make it easier to customize the behaviour of a decorator layer.
Method Summary | |
Item |
getItemDecorator(Session session,
Item item)
Creates an item decorator. |
Lock |
getLockDecorator(Node node,
Lock lock)
Creates a lock decorator. |
Node |
getNodeDecorator(Session session,
Node node)
Creates a node decorator. |
Property |
getPropertyDecorator(Session session,
Property property)
Creates a property decorator. |
Repository |
getRepositoryDecorator(Repository repository)
Creates a repository decorator. |
Session |
getSessionDecorator(Repository repository,
Session session)
Creates a session decorator. |
Workspace |
getWorkspaceDecorator(Session session,
Workspace workspace)
Creates a workspace decorator. |
Method Detail |
public Repository getRepositoryDecorator(Repository repository)
repository
- the underlying repository instance
public Session getSessionDecorator(Repository repository, Session session)
getRepository()
method to avoid
breaking the decorator layer.
The following example code illustrates how this method should be used to implement the repository login methods.
DecoratorFactory factory = ...; // The decorator factory Session session = ...; // The underlying session instance return factory.getSessionDecorator(this, session);
repository
- the repository (decorator) instance used to create
the session decoratorsession
- the underlying session instance
public Workspace getWorkspaceDecorator(Session session, Workspace workspace)
session
- the session (decorator) instance used to create the
workspace decoratorworkspace
- the underlying workspace instance
public Node getNodeDecorator(Session session, Node node)
session
- the session (decorator) instance used to create the
node decoratornode
- the underlying node instance
public Property getPropertyDecorator(Session session, Property property)
session
- the session (decorator) instance used to create the
property decoratorproperty
- the underlying property instance
public Item getItemDecorator(Session session, Item item)
session
- the session (decorator) instance used to create the
item decoratoritem
- the underlying item instance
public Lock getLockDecorator(Node node, Lock lock)
node
- the node (decorator) instance to which the lock is boundlock
- the underlying lock instance
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |