public class IOObjectFactory extends AbstractNurseryService implements ObjectFactory
GenericService.StartCommand, GenericService.StopCommand
CLASS_VERSION
mLogger, state
Constructor and Description |
---|
IOObjectFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
AgreementInfo |
createAgreementInfo()
Deprecated.
|
Article |
createArticle()
Deprecated.
Create an article object
|
ListPool |
createInbox()
Deprecated.
Creates an inbox
|
IndexPage |
createIndexPage()
Deprecated.
Creates an index page
|
Layout |
createlayout()
Deprecated.
Create a layout object
|
ListPool |
createList()
Deprecated.
Creates a list
|
Person |
createPerson()
Deprecated.
Create a person object
|
Pool |
createPool()
Deprecated.
Create a Pool object
|
Publication |
createPublication()
Deprecated.
Create a publication object
|
Section |
createSection()
Deprecated.
Create a section object
|
User |
createUser()
Deprecated.
Create a user object
|
UserGroup |
createUserGroup()
Deprecated.
Create a usergroup object
|
protected void |
startService()
Deprecated.
Is called by
AbstractNurseryService.doStartService() when the NurseryService is being started. |
protected void |
stopService()
Deprecated.
Is called by
AbstractNurseryService.doStopService() when the service is being shut down. |
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
protected void startService() throws Exception
AbstractNurseryService
Is called by AbstractNurseryService.doStartService()
when the NurseryService
is being started. Exceptions thrown by this
method are logged by AbstractNurseryService.doStartService()
.
Subclasses must implement this method to bootstrap the service.
startService
in class AbstractNurseryService
Exception
- when something goes wrong during startup. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will return true
.IllegalArgumentException
- when the configuration of the service
is invalid. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will return true
.IllegalStateException
- when this service is in the wrong state for startup. Used to signal to AbstractNurseryService.doStartService()
that it is OK to try to starting
this service
later. GenericService.isServiceRunning()
returns false
and GenericService.isServiceIdle()
returns true
.AbstractNurseryService.doStartService()
protected void stopService() throws Exception
AbstractNurseryService
Is called by AbstractNurseryService.doStopService()
when the service
is being shut down. Exceptions thrown by this
method are logged by AbstractNurseryService.doStopService()
.
Subclasses must implement this method to shut down the service.
stopService
in class AbstractNurseryService
IllegalStateException
- when this service is in the wrong state for shutdown. Used to signal to AbstractNurseryService.doStopService()
that
it is OK to try stopping this service
later. GenericService.isServiceRunning()
returns true
.Exception
- when something goes during shutdown. GenericService.isServiceRunning()
returns false
and
GenericService.isServiceShutdownFailed()
returns true
.AbstractNurseryService.doStopService()
public Article createArticle()
ObjectFactory
createArticle
in interface ObjectFactory
public Layout createlayout()
ObjectFactory
createlayout
in interface ObjectFactory
public AgreementInfo createAgreementInfo()
createAgreementInfo
in interface ObjectFactory
public Person createPerson()
ObjectFactory
createPerson
in interface ObjectFactory
public User createUser()
ObjectFactory
createUser
in interface ObjectFactory
public Pool createPool()
ObjectFactory
createPool
in interface ObjectFactory
public Publication createPublication()
ObjectFactory
createPublication
in interface ObjectFactory
public Section createSection()
ObjectFactory
createSection
in interface ObjectFactory
public UserGroup createUserGroup()
ObjectFactory
createUserGroup
in interface ObjectFactory
public IndexPage createIndexPage()
ObjectFactory
createIndexPage
in interface ObjectFactory
public ListPool createInbox()
ObjectFactory
createInbox
in interface ObjectFactory
public ListPool createList()
ObjectFactory
createList
in interface ObjectFactory
© 1998- 2018 Stibo DX