net.sourceforge.openutils.mgnlmedia.media.lifecycle
Class MediaModule

java.lang.Object
  extended by net.sourceforge.openutils.mgnlmedia.media.lifecycle.MediaModule
All Implemented Interfaces:
info.magnolia.module.ModuleLifecycle

public class MediaModule
extends Object
implements info.magnolia.module.ModuleLifecycle

Media module lifecycle manager

Author:
molaschi

Field Summary
static String NAME
          Media module name.
static String REPO
          Media repository name.
 
Constructor Summary
MediaModule()
          Constructor
 
Method Summary
 String getPlayer()
           
 String getVersion()
          Returns the version.
 boolean isAutoactivate()
          Deprecated. use singleinstance
 boolean isSingleinstance()
          If the singleinstance flag is set, the media module expect that no activation is needed (usually it means the media repository is shared between the author and public instances).
 void setAutoactivate(boolean autoactivate)
          Deprecated. use singleinstance
 void setPlayer(String player)
           
 void setSingleinstance(boolean singleinstance)
          If the singleinstance flag is set, the media module expect that no activation is needed (usually it means the media repository is shared between the author and public instances).
 void start(info.magnolia.module.ModuleLifecycleContext ctx)
          
 void stop(info.magnolia.module.ModuleLifecycleContext ctx)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
Media module name.

See Also:
Constant Field Values

REPO

public static final String REPO
Media repository name.

See Also:
Constant Field Values
Constructor Detail

MediaModule

public MediaModule()
Constructor

Method Detail

start

public void start(info.magnolia.module.ModuleLifecycleContext ctx)

Specified by:
start in interface info.magnolia.module.ModuleLifecycle

stop

public void stop(info.magnolia.module.ModuleLifecycleContext ctx)

Specified by:
stop in interface info.magnolia.module.ModuleLifecycle

isAutoactivate

@Deprecated
public boolean isAutoactivate()
Deprecated. use singleinstance


setAutoactivate

@Deprecated
public void setAutoactivate(boolean autoactivate)
Deprecated. use singleinstance


isSingleinstance

public boolean isSingleinstance()
If the singleinstance flag is set, the media module expect that no activation is needed (usually it means the media repository is shared between the author and public instances).

Returns:
the value of the singleinstance property

setSingleinstance

public void setSingleinstance(boolean singleinstance)
If the singleinstance flag is set, the media module expect that no activation is needed (usually it means the media repository is shared between the author and public instances).

Parameters:
singleinstance - true if no activation should be performed

getPlayer

public String getPlayer()

setPlayer

public void setPlayer(String player)

getVersion

public String getVersion()
Returns the version.

Returns:
the version


Copyright © 2008-2010 Openmind. All Rights Reserved.