|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.decorator.SimpleDecoratorFactory
TODO
| Constructor Summary | |
SimpleDecoratorFactory()
|
|
| 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. The created session decorator will return the given repository (decorator) instance from the 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);
|
Workspace |
getWorkspaceDecorator(Session session,
Workspace workspace)
Creates a workspace decorator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleDecoratorFactory()
| Method Detail |
public Repository getRepositoryDecorator(Repository repository)
getRepositoryDecorator in interface DecoratorFactoryrepository - 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);
getSessionDecorator in interface DecoratorFactoryrepository - the repository (decorator) instance used to create
the session decoratorsession - the underlying session instance
public Workspace getWorkspaceDecorator(Session session,
Workspace workspace)
getWorkspaceDecorator in interface DecoratorFactorysession - the session (decorator) instance used to create the
workspace decoratorworkspace - the underlying workspace instance
public Node getNodeDecorator(Session session,
Node node)
getNodeDecorator in interface DecoratorFactorysession - the session (decorator) instance used to create the
node decoratornode - the underlying node instance
public Property getPropertyDecorator(Session session,
Property property)
getPropertyDecorator in interface DecoratorFactorysession - the session (decorator) instance used to create the
property decoratorproperty - the underlying property instance
public Item getItemDecorator(Session session,
Item item)
getItemDecorator in interface DecoratorFactorysession - the session (decorator) instance used to create the
item decoratoritem - the underlying item instance
public Lock getLockDecorator(Node node,
Lock lock)
DecoratorFactory
getLockDecorator in interface DecoratorFactorynode - 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 | ||||||||||